Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-12-23

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

All times shown according to UTC.

Time Nick Message
00:02 stooj joined #salt
00:03 madboxs joined #salt
00:05 bekks So using saltstack - is there a web based management UI?
00:05 whytewolf there is if you buy it....
00:05 whytewolf salt stack enterprise
00:05 bekks Hmm, ok.
00:06 jrgochan left #salt
00:15 justanotheruser joined #salt
00:16 stooj joined #salt
00:18 madboxs joined #salt
00:33 stooj joined #salt
00:34 madboxs joined #salt
00:50 madboxs joined #salt
00:54 stooj joined #salt
00:56 92AAAST61 joined #salt
00:56 dxiri joined #salt
01:01 sh123124213 joined #salt
01:03 edrocks joined #salt
01:06 madboxs joined #salt
01:16 DEger joined #salt
01:33 madboxs joined #salt
01:34 DEger joined #salt
01:35 stooj joined #salt
01:45 j4son joined #salt
01:49 stooj joined #salt
02:00 johnkeates joined #salt
02:01 bfrog joined #salt
02:03 sh123124213 joined #salt
02:27 evle joined #salt
02:33 stooj joined #salt
02:37 DEger joined #salt
02:39 jeddi joined #salt
02:40 stooj joined #salt
02:40 sebastian-w_ joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.0 <+> 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:51 Nahual joined #salt
02:54 catpiggest joined #salt
03:02 blu__ joined #salt
03:06 edrocks joined #salt
03:10 chadhs joined #salt
03:33 sp0097 joined #salt
03:52 bastiandg joined #salt
04:03 dxiri joined #salt
04:04 sh123124213 joined #salt
04:09 icebal joined #salt
04:27 DEger joined #salt
04:27 mavhq joined #salt
04:39 Vaelater1 joined #salt
04:39 mk-fg joined #salt
04:54 rdas joined #salt
05:08 amcorreia joined #salt
05:12 londo joined #salt
06:02 madboxs_ joined #salt
06:05 sh123124213 joined #salt
06:07 edrocks joined #salt
06:08 onlyanegg joined #salt
06:13 bocaneri joined #salt
06:13 ivanjaros joined #salt
06:33 rai_ joined #salt
06:35 stooj joined #salt
06:40 mk-fg joined #salt
06:53 mschiff joined #salt
06:53 mschiff joined #salt
06:58 teclator joined #salt
07:05 dxiri joined #salt
07:06 yash joined #salt
07:07 Guest63857 Hi , I am having issues installing salt on my CentOS virtual Machine
07:08 jeddi joined #salt
07:08 ivanjaros3916 joined #salt
07:11 mk-fg joined #salt
07:17 ivanjaros joined #salt
07:26 fzxi joined #salt
07:28 nidr0x joined #salt
07:31 JohnnyRun joined #salt
07:34 colttt joined #salt
07:45 samodid joined #salt
07:53 colttt joined #salt
08:04 flyboy joined #salt
08:10 edrocks joined #salt
08:14 colttt_ joined #salt
08:19 fracklen joined #salt
08:22 mavhq joined #salt
08:22 fracklen joined #salt
08:22 fracklen_ joined #salt
08:32 samodid joined #salt
08:34 samodid joined #salt
08:41 jeddi joined #salt
08:45 preludedrew joined #salt
09:10 teclator joined #salt
09:11 Rumbles joined #salt
09:15 keimlink joined #salt
09:20 keimlink joined #salt
09:28 fracklen joined #salt
09:52 Kelsar joined #salt
10:02 dxiri joined #salt
10:12 felskrone joined #salt
10:22 xmj can you be more precise?
10:24 Reverend kek
10:29 felskrone joined #salt
10:30 teclator joined #salt
10:33 sh123124213 joined #salt
10:44 colttt joined #salt
10:47 sh123124213 joined #salt
11:11 sh123124213 joined #salt
11:11 madboxs joined #salt
11:12 edrocks joined #salt
11:20 abednarik joined #salt
11:25 sh123124213 joined #salt
11:32 sgo_ joined #salt
11:37 WKNiGHT joined #salt
11:38 eThaD joined #salt
11:41 abednarik joined #salt
11:49 DEger joined #salt
11:51 sh123124213 joined #salt
11:51 Mandorath joined #salt
11:54 sh123124213 joined #salt
11:55 sh123124213 joined #salt
12:01 keimlink joined #salt
12:05 CeBe_ joined #salt
12:06 mikecmpbll joined #salt
12:06 CeBe joined #salt
12:12 sh123124213 joined #salt
12:12 madboxs joined #salt
12:14 Reverend have a grand christmas / new years everyone - cya in the new year :)
12:14 Reverend imo off now untilt he 3rd... so speak soon xD
12:15 Reverend xxx <3
12:15 Reverend left #salt
12:16 cyteen joined #salt
12:17 oida joined #salt
12:18 abednarik joined #salt
12:22 colegatron joined #salt
12:23 eThaD joined #salt
12:25 mikecmpbll joined #salt
12:28 necronian Can anyone help me figure out what connect_spec I need to use ldap.managed? I have http://pastebin.com/XZiBUQMh but get an error having to do with ldap3.connect
12:31 aUSER_ joined #salt
12:38 numkem joined #salt
12:40 sh123124213 joined #salt
12:45 cryptolukas joined #salt
12:49 _Cyclone_ joined #salt
12:50 sh123124213 joined #salt
12:56 sh123124213 joined #salt
13:01 Mandorath joined #salt
13:14 sh123124213 joined #salt
13:14 saintpablo joined #salt
13:21 cyteen_ joined #salt
13:21 oida joined #salt
13:30 JohnnyRun joined #salt
13:34 teclator joined #salt
13:36 amontalban joined #salt
13:41 scarcry joined #salt
13:44 writtenoff joined #salt
13:47 numkem joined #salt
13:48 edrocks joined #salt
13:49 edrocks joined #salt
13:53 DEger joined #salt
13:55 johnkeates joined #salt
13:56 sjorge joined #salt
13:56 sjorge joined #salt
13:59 numkem joined #salt
14:03 dxiri joined #salt
14:03 promorphus joined #salt
14:04 andi- joined #salt
14:05 eThaD joined #salt
14:13 UForgotten joined #salt
14:24 sagerdearia joined #salt
14:25 chadhs joined #salt
14:28 promorphus joined #salt
14:28 stooj joined #salt
14:29 sh123124213 joined #salt
14:32 teclator joined #salt
14:40 _JZ_ joined #salt
14:42 sgo_ joined #salt
14:45 abednarik joined #salt
14:50 Led_Zeppelin joined #salt
14:50 Led_Zeppelin hello.
14:50 promorphus joined #salt
14:50 Led_Zeppelin making a lot of progress with saltstack
14:56 chadhs joined #salt
14:58 Led_Zeppelin if on one of my minion I already have a service installed. How can I check if its installed then skip and do other things? if not installed, go ahead and install
14:59 keimlink joined #salt
15:11 eThaD joined #salt
15:14 madboxs joined #salt
15:14 dxiri joined #salt
15:16 kbaikov joined #salt
15:19 cyborg-one joined #salt
15:20 teclator joined #salt
15:22 sh123124213 joined #salt
15:23 sh123124213 joined #salt
15:26 gableroux joined #salt
15:26 sh123124213 joined #salt
15:26 numkem joined #salt
15:34 cryptolukas How can I use pkg.latest with debian package that interrupt the install with a menu to choose a option?
15:40 sh123124213 joined #salt
15:44 abednarik joined #salt
15:48 cscf How can I tell file.comment to succeed if the line doesn't exist?
15:49 numkem joined #salt
15:57 dxiri joined #salt
15:58 abednarik joined #salt
16:02 pcn cryptolukas: dpkg packages should allow for a response file that lets you provide the answers to those questions non-interactively
16:03 Rumbles joined #salt
16:04 fracklen joined #salt
16:07 pcn Led_Zeppelin: if something is installed then  it should not be re-installed unless  you do extra work to re-install it.
16:09 DEger joined #salt
16:10 cryptolukas pcn: have you expierence in answer files for deb packages?
16:13 dxiri joined #salt
16:14 dxiri joined #salt
16:15 madboxs joined #salt
16:17 cscf I personally don't think that installing packages should ask questions.  It should just print "run x-setup wizard to configure" or something
16:17 eThaD joined #salt
16:20 mcspiff joined #salt
16:21 filippos joined #salt
16:21 cyteen joined #salt
16:22 CrummyGummy joined #salt
16:27 pcn cryptolukas: I've done that in the past.  Usually when salt runs it'll use flags that suppress asking questions and I'll just do whatever i need though.
16:29 pcn This has a good summary of the options: http://www.microhowto.info/howto/perform_an_unattended_installation_of_a_debian_package.html
16:30 anotherzero joined #salt
16:30 s_kunk joined #salt
16:35 ponyofdeath anyone can help me trouble shoot why pillar targeting is not working on a host? does pillar only match first occurance of the host?
16:38 nidr0x joined #salt
16:43 stooj joined #salt
16:46 cscf ponyofdeath, it should match all occurrences in top.sls.  Read /var/log/salt/master
16:49 mavhq joined #salt
16:50 onlyanegg joined #salt
17:12 promorphus joined #salt
17:14 onlyanegg joined #salt
17:16 madboxs joined #salt
17:19 eThaD joined #salt
17:20 Edgan joined #salt
17:23 onlyanegg joined #salt
17:26 abednarik joined #salt
17:28 gqgunhed joined #salt
17:28 iggy Led_Zeppelin: as was already mentioned, that's how SaltStack works by default... Salt states are meant to describe the way your system should look, not how to get to that state
17:29 oida joined #salt
17:30 iggy Led_Zeppelin: hence states like service.running vs service.start or pkg.installed vs pkg.install
17:32 mavhq joined #salt
17:34 sjorge joined #salt
17:34 sjorge joined #salt
17:37 nicerobot[m] joined #salt
17:37 tharkun joined #salt
17:41 onlyanegg joined #salt
17:42 dxiri joined #salt
17:50 Salander27 joined #salt
17:51 samodid joined #salt
18:06 parafly joined #salt
18:08 sarcasticadmin joined #salt
18:12 DoomPatrol joined #salt
18:16 Edgan iggy: unlike modules which are do this thing now and don't worry about state
18:17 Edgan and states are just wrapper around modules to check if the condition is already true, if so, skip, if not, do
18:24 Kelsar joined #salt
18:24 anotherzero joined #salt
18:29 CampusD joined #salt
18:30 keimlink joined #salt
18:30 MTecknology I got an email warning me that my saltstack cert will expire in a few months.
18:31 MTecknology It was a weird email that looked legitimate but felt like spam.   ... Then I woke up. :S
18:32 CampusD Hi guys, I had a quick question about the local salt client on windows, I get an error when running a command with some flags but none with other flags. I am thinking escaping quotes, maybe?
18:32 CampusD https://gist.github.com/UtahCampusD/18ad7a2cca514a9a98fe25f6bbcfdadc
18:33 CampusD on the non-working one, I get "ERROR:" when I do a print
18:40 Tech01x joined #salt
18:42 * brontide is cleaning all the things
18:42 brontide Gotta love it ...
18:42 brontide [root@hostname ~]# rpm -qa --last | head -n 5
18:42 brontide mkinitrd-5.1.19.6-71.0.6.el5                  Thu 04 Aug 2011 10:53:53 AM EDT
18:43 brontide Sorry... wrong channel!
18:49 DoomPatrol is it possible to do a "if in $set" in a state/pillar, (i think i've seen an example of that somewhere)
18:49 Tech01x salt-ssh performance for me is pretty abysmal... it seems that the salt-state.tgz is massive... any way to make that more efficient?
18:49 brontide joined #salt
18:50 ivanjaros joined #salt
18:50 DoomPatrol i have a service that requires a network interface to be set, thus i'm thinking something like, "interfaces = (eth1, eth2, eth3)" & then if the proper pillar is applied, set interface in config
18:51 ekristen joined #salt
18:51 DoomPatrol ah found it, good ole google
18:51 Edgan Tech01x: Even worse in my experience is that caching will bite you. You need --refresh-cache  and ssh_wipe: True in Saltfile to make it reliable. Which will make it even slower.
18:52 DoomPatrol dang salt-ssh that bad? i was hoping to use it soon for a few things
18:52 Edgan I use it for testing salt code pre-commit, and deploys via jenkins.
18:53 Edgan Tech01x: It will also help if you run it from the same LAN, and not across VPNs/from your laptop.
18:54 yidhra joined #salt
18:54 Edgan Tech01x: salt-ssh is a wrapper around salt-call(masterless mode). It has to transport a full copy of all the salt code, formulas, pillars, and files you need to execute.
18:55 Edgan If you have a 300mb deb it needs, that 300mb has to be pushed to the remote server.
18:56 Tech01x reliability hasn't been a problem
18:56 Edgan It is basically Saltstack's answer to Ansible, but it isn't as polished as the rest of salt. Ansible has like speed issues, but probably isn't quite as bad.
18:56 Edgan Tech01x: try changing versions, adding new patches to fix bugs, etc
18:56 Tech01x I am running it because the minions cannot, for security reasons, talk to the deployment server
18:57 Tech01x I'm running 2016.11.1
18:57 Tech01x had to run a 2016.11 version for archive.extract to work the way I wanted
18:57 Edgan Tech01x: I am running 2016.11.1 with one patch, and on 2016.3.3 I was at like five patches.
18:57 Tech01x I was just hoping that the push of the salt-state was more, well, discerning about what to push
18:58 Tech01x it seems to push too much that the minion already has
18:59 Tech01x I'm not even sure that's really my problem
18:59 Edgan Tech01x: One thing to know
18:59 Tech01x the salt_state.tgz is pushed... about 1 GB
18:59 brontide joined #salt
19:00 Edgan Tech01x: salt in general, and even worse with salt-ssh, doesn't always return non-zero return codes on failure. So scripting/jenkins usage is less than ideal.
19:00 Edgan Tech01x: You must have something big in your deploy. Mine isn't that big. Let me look.
19:02 Tech01x I've got a slew of archives... .tar.gz's and a file.recurse
19:02 Tech01x oh, strange, on this minion the /var/tmp/.<whatever> is nuked
19:03 Edgan ssh-wipe: True   is the thing to nuke it on exit
19:03 pipps joined #salt
19:04 Tech01x where is that?
19:04 mavhq joined #salt
19:04 Tech01x ah, Saltfile
19:04 Edgan https://paste.fedoraproject.org/511688/48251988/
19:05 Edgan I have found it also unreliable in the past without setting max_procs: 1   It would sometimes work, and other times throw cache errors
19:05 Edgan Tech01x: There is also the issue with map.jinjas and needing to use extra_filerefs: to make sure they are included int the tgz
19:06 Tech01x yeah, I have a slew of extra_filerefs
19:06 Tech01x that took a long time to debug
19:06 Edgan https://github.com/saltstack/salt/issues/created_by/edgan
19:06 Edgan Tech01x: I think I am one of the heaviest salt-ssh users and have hit most of the corner cases
19:07 Tech01x cool... I'm still just getting started
19:07 Tech01x I have to sling about 25 GB of stuff between deployment to various servers
19:07 Tech01x I'd rather not copy to much
19:08 Edgan Tech01x: Also debugging salt-ssh can get really hairy sometimes. You end up having to run -l trace, get the exact salt-call command, and then run it with -l trace on the actual server to get the error message
19:09 Edgan Tech01x: An alternative would be put them up on http/https urls and give those to salt.
19:09 Tech01x yeah, I ran into that... the trace on the server wasn't that useful
19:09 Tech01x wouldn't that force a fetch each time?
19:09 Tech01x I'm using the souce_hash_update to avoid that
19:09 Tech01x source_hash_update rather
19:09 Edgan Tech01x: yes, but you wouldn't have to transfer from the salt-ssh machine and it would be opportunistic
19:10 Tech01x so I fetch once to the deployment server, and based on source_hash_update, then send or not send to minions
19:10 Tech01x pulling out of jenkins
19:10 Tech01x for git repositories, I'm using the file.recurse
19:11 Edgan Tech01x: I use artifactory, jenkins pulls the debs in, and drops them in an artifacts directory, then rewrite pillars with the filenames, and run salt-ssh
19:11 Tech01x hmm... so you basically deploy deb packages
19:11 Tech01x I thought about that
19:12 Edgan Tech01x: this is for our code stuff
19:12 Edgan Tech01x: I use fpm to make the debs
19:12 Tech01x I was wondering if I don't just use rsync like we used to
19:12 Tech01x we would basically build a fake root
19:12 Tech01x and rsync it out
19:12 Edgan Tech01x: There is a rsync module, but it doesn't work the way you think it does
19:12 Tech01x oh, I bet minion rsync's
19:13 Edgan Tech01x: it is rsync from the minions perspective
19:13 Tech01x yeah
19:13 Tech01x basically, I want salt-ssh to rsync the state over to the minion
19:13 Tech01x some differential copy
19:13 Edgan Tech01x: it technically uses scp with caching
19:14 Edgan Tech01x: but the caching is only about 95% safe
19:14 Tech01x so I think with ssh-wipe on I was nuking the cache which made it worse
19:14 Tech01x but it has been very reliable
19:14 Edgan yeah, it helps
19:14 mikea joined #salt
19:14 Tech01x but it's way, way too slow now
19:14 Edgan ssh-wipe is about 4% of the 5%, and --refresh-cache is the last 1%
19:15 mikea getting NameError: name '__opts__' is not defined when trying to use a runner stored in salt://_runners/ any ideas?
19:15 Edgan Tech01x: and I think that is even only 99%. I have still had to wipe the /var/cache directory locally sometimes
19:16 mikea the default runners all reference __opts__ and work fine. I don't see them importing anything specifically that would include that dictionary
19:17 Tech01x Edgan: it hasn't been nearly that bad for me, thankfully
19:18 Tech01x Edgan: I do occasionally get a strange directory already exists message that doesn't seem to affect anything
19:18 Edgan Tech01x: https://github.com/saltstack/salt/pull/36577
19:18 saltstackbot [#36577][OPEN] Feature retcode passthrough exitstatus.4 | What does this PR do?...
19:19 Tech01x I don't like that exclude_pat does double duty... excludes on minion side for the clean, and excludes on the copy
19:19 DoomPatrol pfft, weird i can see the pillar i need via pillar.items, however pillar.get yields nothing. this makes my template fail
19:19 Tech01x why not just create exclude_clean_pat
19:20 Tech01x to separate them
19:20 Edgan Tech01x: you could make a PR :)
19:20 promorphus hey folks, i've got a module that's supposed to run when a minion starts up to determine the saltmaster (master_type: func, master: module.funcname). The module itself works, but I can't figure out exactly where to put it (in terms of directory structure) on the minion server so that it can automatically locate it when the salt-minion starts up for the first time. I've tried putting it in /srv/salt/_modules, but that doesn't seem to work. Anyone have
19:20 promorphus any ideas?
19:20 Edgan DoomPatrol: You doing some jinja magic that might be conflicting? code?
19:21 eThaD joined #salt
19:21 Tech01x Edgan: :) still getting my feet wet... I do think that the salt-formulas are very up and down... some of them are hardly worth it, others are so generic that you are basically translating the entire config file into YAML
19:21 Tech01x or whatever that syntax is
19:21 Edgan Tech01x: I think they are a good reference but worthless. I have my own style and like keeping it consistent.
19:22 * DoomPatrol re-reads state & jinja again
19:22 Tech01x I've been trying to use the apache formula at least... and we use the keepalived formula, but that's hardly a formula
19:23 Edgan DoomPatrol: An example, most likely unrelated:   yes, no, true, false will get converted to True/False in some cases unless you put quotes around it. 'yes', 'no', 'true', 'false'
19:24 Edgan DoomPatrol: another is when you have a variable name like foo.bar.key, but .key is a magic keyword for a function
19:24 DoomPatrol indeed, ill have a paste of what should be simple
19:25 Edgan DoomPatrol: Salt is a mashup of Python, jinja, and yaml. Sometimes a lower level bleeds through or works in an unexpected way
19:25 * DoomPatrol nods in agreement
19:26 Edgan Tech01x: https://storage.cygnusx-1.org/formula.txt
19:26 theblazehen joined #salt
19:27 Tech01x cool, thanks
19:27 Edgan Tech01x: that is the majority of my formula style
19:29 DoomPatrol Edgan, https://gist.github.com/NegativeMan/8fb7f1cda07fde2b5150d8fd50c6bdb8
19:30 mikea getting NameError: name '__opts__' is not defined when trying to use a runner stored in salt://_runners/ any ideas?
19:31 Edgan DoomPatrol: What does show_sls show?
19:31 DoomPatrol Edgan, not familiar w/ that? let me google real quick
19:32 Edgan DoomPatrol: I am curious if it is actually pulling in the pillar properly and writing the state properly, but you aren't using interface properly in the jinja
19:32 DoomPatrol OH well that explains it heh..
19:32 pipps joined #salt
19:33 Edgan DoomPatrol: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html  state.show_highstate  state.slow_sls   state.show_top  are your friends
19:34 DoomPatrol ah nice ty, been debugging it bassackwards it appears
19:36 mikea getting NameError: name '__opts__' is not defined when trying to use a runner stored in salt://_runners/. If I make the runner print out dir() the only variable that it returns is minion_id
19:37 DoomPatrol Edgan, wow thats so obvious now... thank you again
19:37 DoomPatrol all that reading & if your mind is fried ... well yeah ...
19:38 seme joined #salt
19:38 seme hola gents... is there a stable saltstack state repo that I can use? I would hate to have to reinvent the wheel
19:38 seme I've found a lot on github but nothing that looks like it is being maintained
19:39 seme the SS-archive/salt-states repo looks good but hasn't been updated in a long time
19:39 Edgan DoomPatrol: With salt, 95% of the time there is an easy way to get the information you need, if you know the right option. The two methods that make up the last 5% are -l trace when in doubt, and having to write out the contents of a jinja variable to a file to be able see what got generated. Though with - contents: {{ variable }} and show_sls you can cheat.
19:40 Edgan seme: there is salt-formulas, but they are ok
19:41 DoomPatrol indeed!
19:41 seme sorry to be so dense... what is the github path?
19:41 Led_Zeppelin iggy, makes sense
19:41 DoomPatrol speaking of formulas i need to do a pull request to update ferm one
19:41 DoomPatrol can't wait to do something *I* want to do & not $work
19:42 Edgan seme: https://github.com/irtnog/salt-states/tree/production
19:42 Edgan seme: This is random person's public states, they are worth a look
19:43 abednarik joined #salt
19:43 Edgan seme: https://github.com/saltstack-formulas   Salt formulas
19:48 Led_Zeppelin would love to see some windows states. if anyone has them please let me know
19:48 cyteen joined #salt
19:50 DEger joined #salt
19:52 cyborg-one joined #salt
19:54 seme Thanks
19:59 pipps joined #salt
20:07 zer0def joined #salt
20:24 onlyanegg joined #salt
20:27 xbglowx joined #salt
20:41 sgo_ joined #salt
20:47 fxhp joined #salt
20:49 pipps joined #salt
20:55 pipps joined #salt
21:02 stanchan joined #salt
21:03 pipps joined #salt
21:09 fracklen joined #salt
21:22 eThaD joined #salt
21:25 parafly joined #salt
21:48 jeddi joined #salt
21:49 pipps joined #salt
22:18 rideh joined #salt
22:22 zer0def joined #salt
22:24 eThaD joined #salt
22:24 rideh joined #salt
22:37 Salander27 joined #salt
22:42 cryptolukas left #salt
22:53 ponyofdeath hi, how can i use contents_pillar: with a ssh privkey type pillar item? i am using privkey: | then the ssh key
23:06 whytewolf wait, isn't that exatly what the example of contents_pillar in file.managed shows?
23:06 ponyofdeath whytewolf: yup
23:07 whytewolf then what is the question
23:07 ponyofdeath whytewolf: but i get a sls could not found expected :
23:07 whytewolf ... sounds like you are missin a :
23:10 whytewolf or have to many :
23:10 whytewolf what does your contents_pillar line look like?
23:10 whytewolf or gist up your entire state
23:11 whytewolf also if you do a pilalr.get on the minion for the privkey do you see it
23:11 whytewolf pillar.get
23:13 ponyofdeath whytewolf: yeah pillar.items returns everything fine tho
23:13 ponyofdeath its only when i try to use it in my salt state file
23:13 ponyofdeath do i get the error
23:13 whytewolf pillar.get != pillar.items
23:14 whytewolf pillar.get uses the cache pillar.items does not. pillar.items also doesn't update the cache.
23:15 whytewolf also you still havn't posted your state because it sounds like you have a typo
23:17 justanotheruser joined #salt
23:18 lws joined #salt
23:20 madboxs joined #salt
23:24 whytewolf ponyofdeath?
23:27 ponyofdeath whytewolf: sorry moment
23:28 whytewolf sure, no problem
23:29 ponyofdeath https://gist.github.com/evilbulgarian/b76ba67c862789850d8af961b1608e10
23:29 ponyofdeath whytewolf: thanks
23:31 ponyofdeath whytewolf: updated it with the state file component as well
23:33 whytewolf ohhhh... that should be - contents_pillar: {{user.sshpriv}}
23:33 whytewolf err
23:33 whytewolf - contents_pillar: user.sshpriv
23:34 whytewolf actually. I'm not sure that will work even
23:34 whytewolf contents_pillar is exactly what it sounds like. you pass it a pillar key
23:35 whytewolf not the contents of a pillar
23:35 whytewolf it does a look up of the pillar it's self
23:36 whytewolf it is one of the reasons i am changing the format of my users dict
23:36 ponyofdeath sweet thanks whytewolf that worked
23:36 ponyofdeath off to the next error
23:36 ponyofdeath not sure why the other contents_pillar {{ pilar.blah }} i have work
23:38 whytewolf they shouldn't.
23:38 ponyofdeath shit now i am getting Pillar user.sshpriv does not exist
23:38 ponyofdeath ok let me verify some things
23:38 whytewolf thats what i meant by the it might not work
23:38 whytewolf content_pillar is supposed to have a pillar...
23:39 whytewolf but you have your user dict setup in such a way that you can't access the sub items directly
23:39 ponyofdeath ohh, so how do i need to change the dict setup
23:40 whytewolf this is where it gets complicated
23:40 whytewolf I don't know if you are using a formula that access that
23:40 ponyofdeath no, its my salt files
23:41 whytewolf ok
23:41 ponyofdeath i mean the contents_pillar example is using userdata: deployer: id_rsa: |
23:41 ponyofdeath isnt that similar?
23:41 whytewolf very much so.... but it can be a pain to access in loops
23:42 whytewolf here is what I am working with [note there is not content_pillar usage in this example, but this is more about dict layout]
23:42 whytewolf https://github.com/whytewolf/salt-phase0-states/blob/master/mysql/users.sls
23:42 m4rc1n joined #salt
23:42 whytewolf huh just notice my example in my comments is wrong ... one second to correct
23:44 whytewolf there we go
23:44 gladiatr joined #salt
23:45 whytewolf I split it off into subscections so that i can use the same user pillar dict with any of my files and each can have there own subsection
23:46 ponyofdeath so u are suggesting i do something like 31:40?
23:47 whytewolf kind of... you can skip list of dicts stuff. if you don't want to go that complex ..
23:48 whytewolf but the trick about this is if i say wanted to access a pillar item directly in here i could say pull out roots password alone with mysql_users:root:myslq:password
23:49 whytewolf which is exactly what content_pillar wants
23:50 gladiatr left #salt
23:50 whytewolf line 40 is the one that let me go from a format like you had to this format
23:51 ponyofdeath i am doing this tho in the begining
23:51 ponyofdeath {% for user in pillar['users'] %}
23:52 whytewolf ahh you are using the pillar dict.. personally not a fan [as you can tell]
23:52 whytewolf anyway... thats pretty close to what i do in line 38
23:53 ponyofdeath https://gist.github.com/evilbulgarian/24a867288891fbb864465536a4ca0a7f
23:53 ponyofdeath why would it still fail then?
23:54 whytewolf because a. you are passing the value of a pillar into you contents_pillar which is DEIFNTLY not what it wants
23:55 ponyofdeath ahh
23:55 ponyofdeath so can I just use contents: |
23:55 ponyofdeath and pull the data some other way
23:56 whytewolf you are already pulling the data the way you are.
23:56 whytewolf so just remove the _pillar from contents_pillar
23:56 whytewolf [and add a | of coarse]
23:57 ponyofdeath heh same error
23:57 ponyofdeath could not found expected ':'; line 67
23:57 ponyofdeath errors out on the nested RSA key
23:58 MTecknology I'm scared... I have a process kicking off every minute, as I told it to, but I don't remember what I told to kick it off. Cron? I don't see it in any cron. not cron.d/, no user cron, I don't see a salt schedule for it...
23:59 whytewolf I remeber there being an odd eroor in earlier versions of salt that the schedule would lose track of things in the schedule. ... but i thought when it did that it didn't run them either

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