Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-03-17

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:02 debian112 joined #salt
00:11 debian1121 joined #salt
00:15 woodtablet left #salt
00:19 debian112 joined #salt
00:22 debian1121 joined #salt
00:25 debian112 joined #salt
00:26 MTecknology I just learned about :set paste in vim...
00:27 MTecknology today was a good day
00:28 debian112 joined #salt
00:31 whytewolf wait ... you didn't know about set paste??? how in the world did you survive with pasting large contents with out disabling smart indention?
00:32 eprice joined #salt
00:33 whytewolf esp. since g=GG really wouldn't reflow that well in python or yaml
00:34 debian1121 joined #salt
00:34 MTecknology cat, usually
00:34 MTecknology or other painful methods
00:34 whytewolf ouch..
00:34 whytewolf such harsh
00:34 gableroux joined #salt
00:36 MTecknology actually, outside of sls files, I usually suffice with just :set noautoindent
00:37 whytewolf ahh. so turning off indenting ...
00:38 whytewolf salt -G 'os:windows' pkg.refresh_db
00:38 whytewolf sorry wrong paste buffer
00:38 whytewolf set pastetoggle=<F4>
00:39 whytewolf actually, my crappy vimrc https://github.com/whytewolf/dotfiles/blob/master/vim/vimrc needs a lot of work. but i have been lazy latly
00:40 debian112 joined #salt
00:43 debian112 joined #salt
00:45 shoemonkey joined #salt
00:49 debian1121 joined #salt
00:50 MTecknology my .vimrc - http://dpaste.com/1572S9Z
01:05 justan0theruser joined #salt
01:15 djgerm whytewolf: turned out to be like this http://paste.debian.net/921440/
01:17 whytewolf humm. kewl. glad you got it figured out.
01:17 djgerm yeah! thanks for you help. I wouldnt  have figured it out without see the other mappings between state and aws syntax
01:18 Praematura joined #salt
01:19 nZac_ joined #salt
01:19 debian112 joined #salt
01:27 debian112 joined #salt
01:32 Nahual joined #salt
01:32 debian112 joined #salt
01:33 shoemonkey joined #salt
01:35 sp0097 joined #salt
01:36 debian1121 joined #salt
01:41 debian112 joined #salt
01:43 debian112 joined #salt
01:46 debian1121 joined #salt
01:47 brousch__ joined #salt
01:49 debian112 joined #salt
01:53 debian112 joined #salt
01:55 brakkisath joined #salt
01:55 debian1121 joined #salt
02:07 debian112 joined #salt
02:10 debian1121 joined #salt
02:12 DEger joined #salt
02:15 debian112 joined #salt
02:18 debian1121 joined #salt
02:22 hemebond joined #salt
02:24 debian112 joined #salt
02:26 masber joined #salt
02:27 brakkisath joined #salt
02:30 dunz0r joined #salt
02:31 brakkisath joined #salt
02:35 debian112 joined #salt
02:40 debian112 joined #salt
02:41 mavhq joined #salt
02:46 scsinutz joined #salt
02:46 ArunThekkiniyath joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.5, 2016.11.3 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ (please don't multiline paste into channel) <+> See also: #salt-devel, #salt-offtopic <+> Ask with patience as we are volunteers and may not have immediate answers
02:49 debian1122 joined #salt
02:51 debian112 joined #salt
02:51 rem5 joined #salt
02:52 Tanta joined #salt
02:53 debian112 joined #salt
03:02 debian112 joined #salt
03:07 debian112 joined #salt
03:09 debian1121 joined #salt
03:13 scsinutz joined #salt
03:14 debian112 joined #salt
03:17 debian1121 joined #salt
03:19 shoemonkey joined #salt
03:20 eprice joined #salt
03:20 debian112 joined #salt
03:20 Praematura joined #salt
03:22 evle joined #salt
03:23 debian112 joined #salt
03:23 scsinutz joined #salt
03:25 ckonstanski joined #salt
03:32 vegasq joined #salt
03:32 debian1121 joined #salt
03:33 debian1121 joined #salt
03:33 euidzero joined #salt
03:38 debian112 joined #salt
03:41 debian112 joined #salt
03:46 debian1121 joined #salt
03:50 catpig joined #salt
03:53 jauz_ joined #salt
03:58 armyriad joined #salt
04:00 netcho_ joined #salt
04:02 debian112 joined #salt
04:02 cyborg-one joined #salt
04:03 cyteen joined #salt
04:04 debian112 joined #salt
04:07 debian112 joined #salt
04:10 jdipierro joined #salt
04:13 debian1121 joined #salt
04:22 justanotheruser joined #salt
04:22 Klaus_Dieter joined #salt
04:27 debian112 joined #salt
04:29 Praematura joined #salt
04:29 Klaus_Dieter joined #salt
04:32 debian112 joined #salt
04:35 debian1121 joined #salt
04:37 debian112 joined #salt
04:41 debian112 joined #salt
04:45 debian112 joined #salt
04:48 debian112 joined #salt
04:52 NightMonkey joined #salt
04:55 debian1121 joined #salt
04:58 antpa joined #salt
04:59 antpa joined #salt
04:59 debian112 joined #salt
05:03 debian1121 joined #salt
05:06 DEger joined #salt
05:09 debian112 joined #salt
05:11 Praematura joined #salt
05:14 bocaneri joined #salt
05:15 antpa joined #salt
05:19 debian1121 joined #salt
05:27 debian112 joined #salt
05:28 debian112 joined #salt
05:29 candyman88 joined #salt
05:32 impi joined #salt
05:32 antpa joined #salt
05:34 sh123124213 joined #salt
05:36 PatrolDoom joined #salt
05:39 preludedrew joined #salt
05:40 debian112 joined #salt
05:42 debian1121 joined #salt
05:46 debian112 joined #salt
05:49 debian112 joined #salt
05:52 debian112 joined #salt
05:55 tom[] joined #salt
06:00 debian112 joined #salt
06:01 netcho_ joined #salt
06:06 cemmurphy joined #salt
06:09 debian1121 joined #salt
06:10 cemmurphy joined #salt
06:11 debian1121 joined #salt
06:18 debian112 joined #salt
06:22 tom[] joined #salt
06:22 debian112 joined #salt
06:26 fracklen joined #salt
06:28 paant joined #salt
06:28 felskrone joined #salt
06:33 debian1121 joined #salt
06:36 debian112 joined #salt
06:40 debian1121 joined #salt
06:48 debian112 joined #salt
06:54 debian1121 joined #salt
06:54 rpb joined #salt
07:02 debian112 joined #salt
07:15 debian112 joined #salt
07:22 debian1121 joined #salt
07:25 teclator joined #salt
07:28 fracklen joined #salt
07:29 debian112 joined #salt
07:36 sh123124213 joined #salt
07:36 debian1121 joined #salt
07:40 cb joined #salt
07:40 debian112 joined #salt
07:49 debian1121 joined #salt
07:50 debian112 joined #salt
07:54 impi joined #salt
07:56 debian1121 joined #salt
07:58 Klaus_D1eter_ joined #salt
08:00 k_sze[work] cron.absent seems to fail if the command (i.e. the state id) contains spaces.
08:01 k_sze[work] I mean, salt will way that cron.absent is successful and the cronjob is removed, but the cronjob is actually still in the crontab.
08:01 k_sze[work] This is using SaltStack 2016.11.3 on Debian Jessie.
08:03 Ricardo1000 joined #salt
08:03 fracklen joined #salt
08:05 rewbycraft joined #salt
08:06 debian112 joined #salt
08:08 debian112 joined #salt
08:08 sh123124213 joined #salt
08:10 debian112 joined #salt
08:12 debian1121 joined #salt
08:16 haam3r k_sze: Maybe open an issue?
08:16 debian112 joined #salt
08:18 mbologna joined #salt
08:19 sh123124213 joined #salt
08:20 cyteen joined #salt
08:20 debian112 joined #salt
08:28 debian112 joined #salt
08:29 debian1121 joined #salt
08:34 Inveracity joined #salt
08:35 debian112 joined #salt
08:38 debian1121 joined #salt
08:38 darioleidi joined #salt
08:40 debian1122 joined #salt
08:40 PhilA joined #salt
08:42 debian112 joined #salt
08:44 debian112 joined #salt
08:44 fracklen joined #salt
08:45 fracklen joined #salt
08:46 debian1121 joined #salt
08:47 Rumbles joined #salt
08:47 honestly repo.saltstack.com, wat are you doang?
08:49 honestly "503 Service Unavailable"
08:49 honestly it broke itself :(
08:54 sh123124213 joined #salt
08:55 Banshee_ joined #salt
08:55 Inveracity oh no :<
08:56 Banshee_ Is it me or http://repo.saltstack.com/apt/debian/8/ either not responding or very slow or gets 504?
08:56 Reverend joined #salt
08:57 Banshee_ I see from the logs - not only me
08:59 JohnnyRun joined #salt
09:04 honestly yup
09:05 debian112 joined #salt
09:07 DEger joined #salt
09:08 debian112 joined #salt
09:08 Grok joined #salt
09:09 babilen wfm
09:09 q1x hmm, could someone help me understand how I can solve this issue? I'm getting a "failed: Conflicting ID 'include'" error on this sls: https://gist.github.com/q1x/8aaf100bb46e2fc1961712e3c1aa60a1
09:10 q1x it works file until I set the root password
09:10 debian112 joined #salt
09:11 q1x apparently it can't handle multiple include statements
09:11 q1x (in the same sls)
09:14 debian112 joined #salt
09:15 jesusaur joined #salt
09:15 Banshee_ from what I understand - yes, only one include.
09:16 Banshee_ So I am using jinja include for other template if I need multiple - {% include 'some/path/template.sls' %}
09:17 debian1121 joined #salt
09:17 Ricardo1000 joined #salt
09:18 q1x Banshee_: you mean you build the include list in jinja and then parse it into the salt include statement?
09:18 Banshee_ no, I just include jinja template into exisitng template.
09:18 q1x ah!
09:19 Banshee_ http://jinja.pocoo.org/docs/2.9/templates/#include
09:20 theblazehen joined #salt
09:20 q1x Banshee_: ok, I think I can solve it like this: https://gist.github.com/q1x/8aaf100bb46e2fc1961712e3c1aa60a1#gistcomment-2030020
09:21 q1x although that is not very attractive to look at
09:21 debian112 joined #salt
09:21 q1x Banshee_: I don't think I can use your method as the other states reside in an external gitfs state
09:21 antpa joined #salt
09:22 debian112 joined #salt
09:24 sh123124213 joined #salt
09:25 s_kunk joined #salt
09:27 debian1121 joined #salt
09:29 Banshee_ well, they do have some kind of a mounted path in your environment? I am using pure gitfs, although only one repo  and couple of environments and it works fine
09:29 Banshee_ And yes, it is ugly.
09:29 debian112 joined #salt
09:30 Banshee_ like, you have your roots and the path is relative to your root, not to fs.
09:31 Banshee_ In your particular case you can actually use
09:32 Banshee_ Oh, yes, you can do it like this - https://gist.github.com/q1x/8aaf100bb46e2fc1961712e3c1aa60a1#gistcomment-2030020
09:32 debian1122 joined #salt
09:32 Banshee_ It looks better than my suggestion.
09:34 debian1121 joined #salt
09:35 debian112 joined #salt
09:41 impi joined #salt
09:41 antpa joined #salt
09:42 debian1121 joined #salt
09:44 debian112 joined #salt
09:47 teclator joined #salt
09:47 debian112 joined #salt
09:51 sh123124213 joined #salt
09:55 ArunThekkiniyath joined #salt
09:57 Fabbe_ joined #salt
09:58 sh123124213 joined #salt
09:58 debian1121 joined #salt
10:00 debian112 joined #salt
10:04 debian1121 joined #salt
10:05 antpa joined #salt
10:08 Trevor28 joined #salt
10:08 debian112 joined #salt
10:08 Trevor28 left #salt
10:10 ronnix joined #salt
10:11 sh123124213 joined #salt
10:14 jdipierro joined #salt
10:20 candyman89 joined #salt
10:22 peters-tx joined #salt
10:22 debian1121 joined #salt
10:27 Praematura joined #salt
10:27 debian112 joined #salt
10:31 podstava joined #salt
10:33 debian112 joined #salt
10:34 antpa joined #salt
10:34 podstava hi guys. I`m trying to amke automated dploying with salt-cloud on azure. I`m running command "salt-cloud -l debug -p azure-ubuntu azure-ubuntu" but getting an error - http://pastebin.com/nc2XHFex
10:34 podstava Can anyone help me?
10:35 hemebond podstava: I don't have Azure but could it be a problem in your profile?
10:36 stooj joined #salt
10:37 podstava here my profile settings http://pastebin.com/0wbcdncR
10:38 podstava I`m not sure, but i think if it was a profile error, it crashed earlier
10:41 hemebond What is that network property in your profile? Where is that documented?
10:42 podstava I`m creating it via azure sdk
10:43 podstava I think there is a problem in salt/utils/msazure.py in object_to_dict() method
10:44 debian1121 joined #salt
10:44 antpa joined #salt
10:45 podstava Beacause when i`m doing salt-cloud -l debug --list-sizes azure-arm (azure-arm) i`m getting the same error but 'VirtualMachineSize' object has no attribute 'get'
10:45 podstava here full traceback http://pastebin.com/RSeU3Wum
10:46 debian1122 joined #salt
10:46 podstava my provider configs: http://pastebin.com/67N64FQv
10:47 hemebond Did you have a look at other open Azure issues?
10:48 debian112 joined #salt
10:50 dendazen joined #salt
10:51 debian112 joined #salt
10:53 podstava Yes, but not found same error
10:53 hemebond Afraid I can't help any further as I have no way to test.
10:54 podstava Anyway thanks for reply
10:58 sh123124213 joined #salt
10:59 netcho_ joined #salt
10:59 debian112 joined #salt
11:00 mavhq joined #salt
11:05 debian1121 joined #salt
11:09 kleszcz joined #salt
11:13 antpa joined #salt
11:17 sh123124213 joined #salt
11:20 debian112 joined #salt
11:21 ronnix joined #salt
11:24 JohnnyRun joined #salt
11:30 debian112 joined #salt
11:32 lasseknudsen joined #salt
11:33 antpa joined #salt
11:33 sh123124213 joined #salt
11:36 debian1121 joined #salt
11:38 debian112 joined #salt
11:44 debian1121 joined #salt
11:47 antpa joined #salt
11:54 debian112 joined #salt
11:56 debian1121 joined #salt
11:58 _Cyclone_ joined #salt
11:58 debian1122 joined #salt
11:59 debian112 joined #salt
12:00 johnkeates joined #salt
12:02 lasseknudsen joined #salt
12:02 shambat I have a state that I want to add a file watch to, so that when the file changes, the state check will restart a service. Thing is, I want this file to come from a command, and not a specific source. How can I define a file and then run the command to set its content
12:03 OliverMT I have a .sh file that I create with salt that I want to run a sed command on once and only once
12:03 Mogget joined #salt
12:04 debian112 joined #salt
12:04 OliverMT it has to run on the host because I need to set some hostname derived variables in there
12:04 OliverMT how do I specify to run it only when the .sh is created?
12:04 OliverMT I have it as a file.managed
12:04 babilen Wouldn't the resulting content be the same?
12:04 OliverMT what do you mean?
12:04 sh123124213 joined #salt
12:05 OliverMT the .sh is just a simple .sh file I copy over using file.managed with a salt source
12:05 OliverMT should I be using a template to generate the file on a per host basis instead?
12:05 babilen Ah .. sorry, you want to circumvent the ping-pong effect of having two states that make alternating changes to the same file?
12:05 debian1121 joined #salt
12:05 OliverMT yes
12:05 OliverMT or, I havent tested, I just assumed it would ping pong
12:05 OliverMT I wonder if I should just have the .sh itself calculate the host specific stuff on the fly
12:05 babilen You can either use a proper template (I'd prefer that) or define the "sed" state as onchanges
12:06 ronnix joined #salt
12:07 babilen shambat: If you have a state that runs that command couldn't you hook the mod_watch into that state? (assuming it only runs when there are changes)
12:11 shambat babilen: https://bpaste.net/show/e96cbb762856 can I do this?
12:11 shambat or something like it?
12:12 sp0097 joined #salt
12:13 debian112 joined #salt
12:17 debian1121 joined #salt
12:18 babilen shambat: Yes, but that would trigger every time
12:18 babilen brb
12:20 debian112 joined #salt
12:24 sh123124213 joined #salt
12:26 fujexo[m] joined #salt
12:29 Praematura joined #salt
12:36 shambat babilen: would it be better to do this: https://bpaste.net/show/13fd69626f23 ? But don't I have to define the file as a state somewhere?
12:37 dendazen joined #salt
12:43 numkem joined #salt
12:46 salty_ joined #salt
12:47 salty_ May I compare an enviroment variable and a jinja variable in unless condition ??
12:47 salty_ something like this
12:47 ssplatt joined #salt
12:47 salty_ `    - unless: [ "$ConsulVersion" == "{{ consul.version }}" ]`
12:47 salty_ can I do that ?
12:47 WKNiGHT joined #salt
12:47 Deliant joined #salt
12:48 shambat babilen: sorry, maybe like this: https://bpaste.net/show/5ca96f97455c
12:50 rem5 joined #salt
12:50 babilen shambat: Yeah, you'd have to define the file state somewhere
12:51 babilen (which you don't have as you run a command to manage it)
12:53 cdunklau how do you folks handle pillar data? do you version it?
12:59 muxdaemon joined #salt
13:04 Fabbe_ Hi! Is it possible to get the salt master to send a mail locally from the master (or run a script locally on the master) after running a formula that setup an instance?
13:06 cryptolukas joined #salt
13:08 cryptolukas Hey guys, is there any way to say salt please exec. the following state as last? My problem: I use check_mk and deploy the apt update check plugin. the plugin will be deployed. the apt checks runs and my highstate failed because apt is locked from the check_mk plugin...
13:09 DEger joined #salt
13:11 Rumbles joined #salt
13:13 impi joined #salt
13:15 dev_tea cryptolukas: check out the "order: last" option https://docs.saltstack.com/en/latest/ref/states/ordering.html#the-order-option
13:16 cryptolukas YES! That is what i need :D
13:18 eldad joined #salt
13:20 dRiN joined #salt
13:20 oaken_chris joined #salt
13:22 brokensyntax joined #salt
13:22 aldevar joined #salt
13:22 nZac joined #salt
13:23 catpig joined #salt
13:25 muxdaemon joined #salt
13:25 shambat babilen: I'm so confused by this :) What I really want is: I have some servers with services that use certificates. The certificates are obtained using an IPA-command. What I want is for the IPA-command to request the certificates periodically, and for the services to restart when the certificate files change.
13:26 shambat I figure the salt highstate period is good enough of a periodical check
13:33 ssplatt it would be sweet if it were possible to set standard settings for Nodegroups, like batch size, so clusters never restart services at the same time even if you do a full \* state.highstate
13:36 aric49 joined #salt
13:40 gableroux joined #salt
13:40 mirko joined #salt
13:40 mirko joined #salt
13:41 DEger joined #salt
13:43 Rumbles joined #salt
13:44 numkem joined #salt
13:45 arount joined #salt
13:45 sh123124213 joined #salt
13:46 arount I wrote a customer returner, add it in my extension_modules but logs tell me it can not be loaded
13:46 arount is there somebody succeed to create a custom returner ?
13:49 Rumbles joined #salt
13:49 CrummyGummy joined #salt
13:51 brakkisath joined #salt
13:59 sh123124213 joined #salt
13:59 babilen shambat: The problem is that your "download the file" state will have changes every time it runs and there is no "no-op" state to watch a file for changes.
14:00 babilen shambat: One way to solve this would be to either: 1. Use a file.managed state that gets the file contents from pillars of from a http.query call (or something comparable) in the state so that you actually have changes
14:00 babilen 2. Setup an inotify beacon that watches the file in question, triggers an event that you listen to with reactors to trigger the service restart
14:00 o1e9 joined #salt
14:01 babilen My feeling is that the first would be easier to setup
14:02 aldevar joined #salt
14:06 jdipierro joined #salt
14:08 vegasq joined #salt
14:12 eldad Is there a method to download files form minion to master using Salt python API? I looked for SCP module to run over salt runner/caller but it seem there is no such thing
14:13 eldad any pointers?
14:14 johnkeates use copy
14:14 johnkeates anyone here using pillarstack?
14:17 eldad you mean salt-cp? does it work when the remote machine has no minion and accessible over ssh only?
14:19 eldad I'm using salt's SSHClient.cmd to run commands on it
14:20 q1x Can I use pillar data in a reactor sls?
14:22 shambat babilen: the beacon option sounds interesting, I'll take a look at it. Thank you.
14:23 brakkisath joined #salt
14:24 johnkeates bacon
14:24 ronnix joined #salt
14:24 numkem joined #salt
14:28 colttt hello
14:30 cyborg-one joined #salt
14:30 colttt I've a short question, I've configured gitfs and 'salt-run fileserver.update -l debug 2>&1' run without erros, but when I run 'salt -vvv 'test* cp.list_master'  I don't see any files..
14:34 mpanetta joined #salt
14:39 Ch3LL try running `salt-run fileserver.list_files backend=git` and see if anything shows up there. (i think thats the syntax)
14:40 Tanta joined #salt
14:42 ThomasJ joined #salt
14:45 evle joined #salt
14:50 bgdnlp joined #salt
15:09 sh123124213 joined #salt
15:13 ronnix joined #salt
15:14 Kelsar joined #salt
15:21 Kelsar joined #salt
15:26 antpa joined #salt
15:31 cryptolukas left #salt
15:38 q1x anyone here using https://github.com/saltstack-formulas/mysql-formula and setting some custom innodb settings?
15:40 q1x I don't see how I can do it, how would you solve this?
15:41 evle2 joined #salt
15:44 sh123124213 joined #salt
15:44 sikander hey. is someone able to help me out with setting up a wireguard network with salt? im not well versed in networking, so im not sure how to proceed with this. the guide im basing my setup on is this: https://www.vultr.com/docs/create-a-secure-connection-between-two-servers-using-wireguard-on-ubuntu
15:46 pcn I have some questions about engines.
15:47 toastedpenguin joined #salt
15:48 pcn Actually, I'm going to think about my questions a bit more, sorry to bother everyone
15:53 eldad I'm using salt's caller client to add my own grains data: "caller.cmd("grains.set","key","value")" locally ( on master only ), but when I'm calling state.apply with a file.managed state that uses jinja template It seems that my grains are missing: "Unable to manage file: Jinja variable 'dict object' has no attribute 'MY_ATTRIBUTE'"
15:53 eldad is it possible to use grains that way?
15:54 candyman88 joined #salt
15:55 eldad Is salt rendering the file template locally with the grains known to the the master or remotely using grains that only the minion has?
15:56 podstava <Ch3LL> hi, could you help me with salt-cloud and azurearm? I writed in issue #40084 on github about my errors
15:58 babilen q1x: https://github.com/saltstack-formulas/mysql-formula/blob/master/pillar.example#L27
15:58 babilen Just put it in there
15:58 babilen (or in a suitable section)
15:58 babilen my.cnf is completely rendered from data
15:59 teclator joined #salt
16:02 scsinutz joined #salt
16:03 onlyanegg joined #salt
16:10 nikdatrix joined #salt
16:11 jdipierro joined #salt
16:12 muxdaemon joined #salt
16:12 raspado joined #salt
16:18 beardedeagle joined #salt
16:19 sh123124213 joined #salt
16:21 jauz Has anyone here been through the Pluralsight course on Salt by Floyd May? Curious if anyone had opinions on it. -- Sep 2016 course.
16:22 source47 joined #salt
16:23 source47 hi guys, i am having my gitfs not going through to the salt minion. any ideas how i can resolve this? my master file is as follows - https://gist.github.com/developerinlondon/7364d78f2376d22c989b12345dc8c304
16:25 source47 anyone here?
16:25 sp0097 joined #salt
16:28 babilen source47: Could you suffix those entries with .git (as per GH) -- I also wouldn't directly refererence the GH repos as that, essentially, gives everyone root on your infrastructure that can push to those repos
16:28 babilen Also make sure you have gitpython/pygit2 installed and configured (restarted services?)
16:32 cdunklau man i wish the salt docs didn't even show that
16:32 ecdhe joined #salt
16:32 ecdhe joined #salt
16:32 source47 babilen, yes i have gitpython/pygit2 installed
16:33 cdunklau it would just require part of the instruction to be "fork the repo, use https://github.com/youruser/apache-formula.git as the gitfs_remote"
16:33 muxdaemo_ joined #salt
16:35 source47 @babilen adding .git didn't make a difference. i added some outputs https://gist.github.com/developerinlondon/7364d78f2376d22c989b12345dc8c304
16:36 sikander does anyone have a good guide on setting up openvpn with salts? server and clients
16:36 sikander salt*
16:37 cdunklau source47: so what's the actual problem?
16:37 Reverend sikander: no, but it doesn't sound -that- difficult.
16:37 cdunklau source47: it sure looks like the minion is seeing apache and memcached...
16:38 jdipierro joined #salt
16:38 source47 my salt-minion doesn't find the modules in gitfs. i added the output on the last part of this gist - https://gist.github.com/developerinlondon/7364d78f2376d22c989b12345dc8c304
16:39 sikander reverend: well. i try to set it up, but i dont know enough about openvpn to understand how it works. and the formula isnt helping in making it understandable... :/
16:39 source47 cdunklau its seeing it, but the minion cache doesn't have it and it can't find apache.
16:39 muxdaemon joined #salt
16:39 Reverend sikander: first thing with any salt set up, especially if you've not set it up before, is to do it manually and keep a record of what you need to fix / change to make it work
16:40 Reverend sikander: then convert it to salt and bugfix your states.
16:40 sikander hmm. okay. i will have to keep digging then :)
16:40 Reverend my advice is to do exactly that. run the entire set up manually and then saltify it :)
16:40 cdunklau source47: what's your highstate.sls
16:40 sikander reverend: ill give it a few more shots ^^
16:41 Reverend =]
16:42 source47 @cdunklau don't have a highstate.sls but here is top.sls at the bottom https://gist.github.com/developerinlondon/7364d78f2376d22c989b12345dc8c304
16:44 sh123124213 joined #salt
16:44 Straphka joined #salt
16:48 Rumbles joined #salt
16:50 scsinutz1 joined #salt
16:51 raspado is there such thing as a dynamic inventory for salt?
16:52 rick_ joined #salt
16:52 raspado looking to see if we can get data from mongo
16:53 raspado oh looks like we can for pillar data
16:53 Edgan joined #salt
16:54 rick_ Hi all, i'm trying to use the salt-formula from https://github.com/saltstack-formulas/salt-formula to bootstrap minions using the salt.minion state.  I've been able to apply the state using salt-ssh, but what i can't figure out is how to properly configure my minion using a pillar (?) so that i can feed it the right salt hostname in the minion config.  I'm struggling to figure out how to make the connection between the formulas and a p
16:55 rick_ the salt-formulas readme is a little light towards the bottom on using the formulas
16:56 rick_ to clarify, i'm trying to manage the salt-master hostname in the salt-minion config
16:56 prg3 joined #salt
16:58 sh123124213 joined #salt
17:00 wattwood joined #salt
17:02 mkillebrew is it possible to have a file populated by contents_pillar, but nested in that pillar in like foo:bar:baz GPG data, that's rendered properly on the minion and decrypted?
17:03 mkillebrew or does contents_pillar with GPG'd data only work if the entire pillar is encrypted
17:03 wattwood I'm missing something when it comes to Formulas.   I have the apache formula installed.  The pillar.example shows all of the settings, down to vhosts.  I have a number of systems, organized by product.  Each product goes on a cluster of servers, so the apache configuration is by product.  Do I need to create pillars for the product->cluster with all configuration, or do I do the generic apache: in the pillar top.sls then put the remai
17:03 wattwood my salt states?
17:03 cemmurphy joined #salt
17:04 wattwood I'm missing the connection, since pillars, per what I've read, are for encrypted data, instead of full configuration such as apache down to vhosts
17:04 cscf wattwood, pillars are for all variable config, including but not limited to, secrets
17:06 wattwood Thanks cscf.  With a formula, can I configure the basics in pillars, then continue the remaining configuration in my salt state?  Trying to sort out folder organization for individual product.
17:06 cscf wattwood, if you have some configs which will be for all servers, and some cluster-specific, you can have a global Pillar file, say apache_servers.sls, and a cluster-specific one for each, and merge them
17:07 cscf In theory the formula should do whatever you want it to do, just by filling out the pillar.
17:07 gareth_ joined #salt
17:09 prg3 joined #salt
17:10 wattwood I'm working to identify what connection I am missing between pillars, states, and formulas.  The formula configuration will be based on grains; can I pull grains into the pillars, or do I need to extend the formula in states?
17:12 cscf wattwood, what config would you be basing on grains?
17:12 cscf Also, formulas are just a name for a state that is standalone and meant to be used in many places
17:14 wattwood I'm trying not to modify the state, it's the public one from github.  We set grains on each server to specify the product, the environment, application role, etc.   Working to automate apache, php configuration, installation, then automate monitoring into Sensu based on the application role (webserver.apache).
17:15 wattwood based on environment, product, will determine which vhosts to configure, pull in, and how to configure modules, settings.
17:15 wattwood I'm coming from an Ansible background, trying to switch over to how saltstack handles everything.
17:16 ronnix joined #salt
17:17 pipps joined #salt
17:18 prg3 joined #salt
17:19 rick_ it's a little tough for a beginner. for instance the salt-minion formula uses a relatively complex set of jinja scripts as well as default yml files.  It's hard to follow the path to where it would bootstrap the minion/master configuration
17:22 wattwood hmmm.
17:24 rick_ i think i need to study the pillar documents better, which i'm doing
17:25 wattwood It's the logical connection between them that I'm missing; the process in which each falls into place and how to extend each and how the relationship happens between each.
17:29 sh123124213 joined #salt
17:29 wattwood Can I pull grains into pillars?
17:29 wattwood or can I extend a formula in other states?
17:30 whytewolf well your second question is maybe. depends on how the formula was written. honestly. I don't touch formulas.
17:32 wattwood If I can't pull grains into pillars, it kind of blows up using the public formula efficiently
17:33 whytewolf what do you mean by pull grains into pillars?
17:34 whytewolf btw, you can access grains from pillar. it is the cached grains that the master has from the minion.
17:34 wattwood Apache formula has pillar.example, which steps through setting up apache and associated vhosts.   In order to know which vhosts to configure on servers, I need to pull in the Product grain, the Application Role grain, and the Environment grain.   If it's Environment: Development, that switches which vhosts I want to setup.
17:35 whytewolf well, enviroment isn't a grain
17:35 whytewolf unless you are adding one
17:35 wattwood Yes, these are custom grains
17:36 whytewolf but yes you can use jinja in pillars and that jinja has access to grains
17:36 wattwood good good
17:38 wattwood I'll use salt states to configure monitoring options, and pillars to do apache, php configuration, modules, etc.
17:38 wattwood rather, I can do it all in pillars, and use salt states just for generic formulas.
17:39 whytewolf salt states are just the driving force. pillars are just data that you use in states to do configuration, and used for determining logic
17:39 muxdaemon joined #salt
17:39 whytewolf pillar doesn't do anything on it's own other then look pretty
17:40 wattwood That's where my confusion sets in.  As of now, I'm looking at doing logic and configuration in pillars to drive what the formula(state) does.
17:40 whytewolf you can use logic in pillar to determine what pillars go where.
17:41 whytewolf formulas are just a set of predefined states.
17:42 wattwood Can I extend a formula in another state?
17:42 whytewolf personally i don't use formulas because they don't fit my needs and the logic work outs needed to get them to fit my goals is just not worth my time. i use my own states which tend to be a lot more streamlined for my own needs.
17:44 scsinutz joined #salt
17:44 wattwood Gotcha
17:44 whytewolf in ways. you can use _in methods to add requirsites to some of them. again it really depends on how they were written
17:47 Sarphram joined #salt
17:49 pipps joined #salt
17:50 scsinutz1 joined #salt
17:51 prg3 joined #salt
17:52 Gareth_ joined #salt
17:52 dRiN joined #salt
17:53 fracklen joined #salt
17:59 sh123124213 joined #salt
18:02 wattwood When it comes to managing salt in git, for developers, ops, etc, what's a good method in handling dev, test, stage, prod and making sure that developers can't push changes to production?  Do you split up repositories then merge into different branches, while having both a dev/test salt master, then a stage/prod salt master, each on a different branch, with minions setup to listen to a specific master?
18:03 q1x babilen: thanks
18:05 q1x babilen: however, I don't see any reference to what parameters to use in https://github.com/saltstack-formulas/mysql-formula/blob/master/mysql/defaults.yaml
18:06 q1x for instance, there is no set default of innodb buffer pool size, so how could I override it?
18:07 hasues joined #salt
18:07 q1x or is it clever enough to figure out I want a "new", undefined parameter?
18:08 whytewolf wattwood: i tend to use a seperate master for each enviroment. to enforce a hard line between dev/test/qa/prod
18:09 sh123124213 joined #salt
18:09 whytewolf i do use branches though. and a github like setup with PR needed to get changes to a master
18:10 bmcorser left #salt
18:12 wattwood Thanks whytewolf.
18:14 sh123124213 joined #salt
18:15 q1x babilen: ah! indeed, it just places the new var in the section. Awesome!
18:15 pipps joined #salt
18:16 whytewolf q1x: was just about to respond to you about that. looking at the code for server.cnf [which is the source file for my.cnf] it does look like it will just loop though the settings and add what ever if there
18:17 whytewolf after doing a ton of merging between three different places
18:18 hasues left #salt
18:18 scoates joined #salt
18:21 sh123124213 joined #salt
18:24 jauz How long will files stay in the minion-side salt\var\cache\salt\minion\extrn_files\...  ?
18:29 Laladila joined #salt
18:30 Trauma joined #salt
18:38 catpig joined #salt
18:38 cscf Is it a bad idea to push large (>100MB) files with salt:// source?
18:41 whytewolf generally yes it is a bad idea
18:45 rem5 joined #salt
18:46 brakkisa_ joined #salt
18:48 MTecknology cscf: salt-cp or http
18:57 numkem joined #salt
18:59 IRCFReAK joined #salt
18:59 mecavity joined #salt
19:00 sh123124213 joined #salt
19:00 rem5 joined #salt
19:06 jauz I'm using the c.get_url to grab larger files to send to minions so far.
19:06 IRCFReAK joined #salt
19:06 jauz cp.get_url*
19:07 cscf MTecknology, I thought salt-cp used salt:// sources?
19:08 cscf Salt copy is only intended for use with small files (< 100KB)
19:08 cscf ^ https://docs.saltstack.com/en/latest/ref/cli/salt-cp.html
19:09 IRCFReAK joined #salt
19:09 cscf Is get_url with a salt:// source any better, or should I use http?
19:10 brakkisath joined #salt
19:10 cscf I have a 177MB tar.gz lxc image
19:15 sh123124213 joined #salt
19:15 IRCFReAK joined #salt
19:17 MTecknology cscf: I've, in the past, needed to get a large file from a salt master to many windows minions. I already had a place on the file system that was in file_roots (because salt was managing distribution of windows printer drivers) so I just dropped the big file there and used salt-cp. It's not ideal and it /can/ cause issues, but in one-off situations, it's worked well for me.
19:22 MTecknology cscf: is it something you want managed by salt or is it one-off?
19:23 cscf MTecknology, I want all IAAS hosts to have this container image available as part of the iaas.lxc state
19:23 cscf But for now I'm working on getting the template running, so it can wait
19:23 brakkisath joined #salt
19:24 bob97 joined #salt
19:25 cscf I just want the  'download --release xenial' template, but with the salt repo installed and updated
19:26 cyborg-one joined #salt
19:27 MTecknology don't those templates usually come with some cloudinit thingy for that kinda thing?
19:27 bob97 Hi.  It seems like to matter what I try file.managed bypasses the salt cache when source: https.... Is this a known issue or am I doing something wrong.  Code is posted in this gist: https://gist.github.com/anonymous/780cdfa2cdb707e22bfc7533e687de37
19:28 MTecknology either way, I'd definitely not want to host those files with salt://
19:28 cscf MTecknology, yeah, they do, but two problems: 1, I'd rather install salt-minion once rather than every container spawn. 2, cloud-init uses DHCP, and we have MAC-filtered DHCP
19:29 cscf MTecknology, currently, we have an old script that generates a static /etc/network/interfaces in the container, and it works, but it's based on the 'ubuntu' template, which doesn't support unpriv containers
19:29 cscf So it looks like I should make a template that just calls 'download' then changes a few files after.
19:30 ChubYann joined #salt
19:31 sh123124213 joined #salt
19:32 meca joined #salt
19:38 pipps joined #salt
19:40 prg3 joined #salt
19:41 cscf bob97, https://github.com/saltstack/salt/pull/39762
19:41 saltstackbot [#39762][MERGED] Fix regression in file.get_managed | https://github.com/saltstack/salt/pull/39438 broke file.get_managed when ``skip_verify=True``....
19:41 cscf This may be relevant
19:41 bob97 Thanks cscf.  I'll have a look.
19:49 sh123124213 joined #salt
19:53 sh123124213 joined #salt
19:54 brakkisath joined #salt
19:55 bob97 Seems close but I'm not using skip_verify.  In my case it is like cache_refetch  is always set to True.
20:02 nikdatrix joined #salt
20:03 pipps99 joined #salt
20:04 fracklen joined #salt
20:04 xet7 joined #salt
20:09 brakkisath joined #salt
20:09 IRCFReAK joined #salt
20:13 bob97 Tried changing from md5 to sha256.  The file is still downloaded even though the correct version is cached.
20:14 sh123124213 joined #salt
20:27 ahrs joined #salt
20:27 Trauma_ joined #salt
20:27 PatrolDoom joined #salt
20:28 Flying_Panda Hi Guys trying to use the f5 runner however I keep getting 'f5' __virtual__ returned False
20:28 Flying_Panda does anyone know what this is actually reffering to
20:29 ahrs joined #salt
20:30 IRCFReAK joined #salt
20:30 whytewolf __virtual__ is a funtion in modules/runners/ect that defines if a module should load. normally returning false if requirments are not met
20:31 whytewolf such as pycontrol not installed
20:31 Flying_Panda ahh
20:32 Flying_Panda is there a dependency list somewhere ?
20:32 Flying_Panda for the runners
20:32 gtmanfred usually on the runners doc page
20:32 gtmanfred it should print out the requirement now on the commandline if it returns false
20:32 gtmanfred but i think there are some modules that still don't have that added
20:32 whytewolf https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.f5.html
20:32 Flying_Panda does not mention anything on the docs :(
20:33 Flying_Panda oh wait
20:33 whytewolf i think a lot of them don't have that setup yet
20:33 Flying_Panda i seee it silly me
20:34 gtmanfred there is usually a `:depends: modulename` in most docs
20:34 gtmanfred now*
20:34 gtmanfred that used to not be the case
20:34 gtmanfred you can always look at the code
20:35 IRCFReAK joined #salt
20:36 sh123124213 joined #salt
20:40 IRCFReAK joined #salt
20:42 Flying_Panda does the f5 runner module support partions I know the state one had issues with it
20:43 Flying_Panda but could overcome it with ~partion~servername
20:43 IRCFReAK joined #salt
20:47 pipps joined #salt
20:48 IRCFReAK joined #salt
20:53 dendazen joined #salt
20:54 sh123124213 joined #salt
20:57 IRCFReAK joined #salt
20:58 catpig joined #salt
21:02 IRCFReAK joined #salt
21:05 pipps joined #salt
21:08 givemeparttt2000 joined #salt
21:09 foundatron joined #salt
21:13 tehsufn joined #salt
21:14 givemeparttt2000 joined #salt
21:14 sh123124213 joined #salt
21:16 Flying_Panda joined #salt
21:17 PatrolDoom joined #salt
21:19 sh123124213 joined #salt
21:19 givemeparttt2000 joined #salt
21:20 bocaneri joined #salt
21:24 bocaneri joined #salt
21:30 scsinutz joined #salt
21:32 rem5 joined #salt
21:32 swa_work joined #salt
21:35 _JZ_ joined #salt
21:37 pipps joined #salt
21:38 IRCFrEAK joined #salt
21:41 rem5 joined #salt
21:53 osm joined #salt
21:55 PatrolDoom joined #salt
21:56 jauz Any problems if I wanted to install Salt on a "minimal" CentOS?
21:58 Flying_Panda nope might need an dependancy or 2 for certain modules but no reason not to do it
21:59 Flying_Panda the salt repo contains all the dependancys for salts itself so you should be fine
22:00 jauz Thanks. :)
22:03 Flying_Panda get ready to get your midn blown by salt :P
22:03 nikdatrix joined #salt
22:17 osm Is salt ignoring http proxy setting in .gitconfig when running git.latest remotly?
22:17 osm salt-call is working for me but not salt '*'
22:17 catpigger joined #salt
22:24 dober joined #salt
22:24 dober joined #salt
22:26 pipps joined #salt
22:26 AndreasLutro osm: I would guess that's because some environment variable is set in your shell that affects the salt-call process
22:28 IRCFrEAK joined #salt
22:33 osm hmm and looks like setting http proxy in /etc/profile doesnt help either, any advise?
22:36 IRCFrEAK joined #salt
22:40 leonkatz joined #salt
22:41 leonkatz is it possible to use two top files for the same environment if i have two gitfs repos and to merge them?
22:47 scsinutz joined #salt
22:49 scsinutz joined #salt
22:56 pipps joined #salt
23:00 IRCFrEAK joined #salt
23:06 pipps joined #salt
23:12 Gareth joined #salt
23:15 Edgan joined #salt
23:18 DEger joined #salt
23:25 IRCFrEAK joined #salt
23:27 vegasq_ joined #salt
23:33 dendazen joined #salt
23:34 Laladila joined #salt
23:35 Gareth joined #salt
23:36 DEger joined #salt
23:43 speedosasquatch joined #salt
23:44 ssplatt joined #salt
23:44 speedosasquatch looking for anyone w/ exp with mac minions
23:55 MTecknology Am I missing an option or something? I want salt to manage the user and user attributes, but I don't want it trying to manage the home directory. I'd assumed -createhome:False would make salt not to try to manage it.

| Channels | #salt index | Today | | Search | Google Search | Plain-Text | summary