Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-01-17

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

All times shown according to UTC.

Time Nick Message
00:05 scott_w joined #salt
00:06 Mua joined #salt
00:13 quanta_ joined #salt
00:13 bhosmer joined #salt
00:18 amckinley joined #salt
00:25 diegows joined #salt
00:26 higgs001 joined #salt
00:30 jpeach joined #salt
00:33 jacksontj joined #salt
00:34 Tekni joined #salt
00:39 gadams999 joined #salt
00:43 xinkeT joined #salt
00:45 fllr joined #salt
00:50 mwmnj joined #salt
00:51 kermit joined #salt
00:52 ajw0100 joined #salt
00:54 madduck bbinet: I just got back online, so give me a bit…
01:03 timoguin joined #salt
01:06 taion809 joined #salt
01:11 Marion__ joined #salt
01:12 rojem joined #salt
01:13 rojem joined #salt
01:13 cachedout joined #salt
01:14 rojem joined #salt
01:14 quanta_ joined #salt
01:14 rojem joined #salt
01:15 rojem joined #salt
01:16 rojem joined #salt
01:17 rojem joined #salt
01:18 rojem joined #salt
01:18 rojem joined #salt
01:19 danielbachhuber joined #salt
01:26 xzarth joined #salt
01:32 fllr joined #salt
01:32 sgviking joined #salt
01:45 guest_towel leonardinius, you could try manually invoking the redmine state file from the redmine client to see what happens?: "salt-call state.sls  redmine  -l debug"
01:49 pdayton joined #salt
02:03 pdayton joined #salt
02:09 quanta_ joined #salt
02:10 harkx joined #salt
02:13 elfixit1 joined #salt
02:24 pdayton joined #salt
02:28 luff joined #salt
02:29 luff left #salt
02:30 xl joined #salt
02:30 jacksontj joined #salt
02:32 andrej Hummm
02:32 fllr joined #salt
02:33 AdamSewell joined #salt
02:33 quanta_ left #salt
02:34 ekristen joined #salt
02:40 andrej I have 36 Ubuntu minions atm, and 7 centos ones.
02:40 yomilk joined #salt
02:40 andrej when I run e.g. salt -G 'os:Ubuntu' state.sls nagios-nrpe I get 7 (!!) responses, not 36
02:41 EugeneKay What about for test.ping
02:41 EugeneKay It could just be that your `salt` call is timing out before they respond, not that the minions aren't doing it.
02:42 andrej salt -G 'os:Ubuntu' test.ping | grep : | wc -l
02:44 andrej 36
02:44 andrej EugeneKay , they DIDN'T do it
02:44 EugeneKay Interesting. Anything cool in their logs?
02:44 andrej I got heaps or errors about missing files inside icinga
02:44 EugeneKay What sorts of files
02:44 andrej Hmmm .. I didn't bother checking, but manually ran the deploy against them manually to keep the alerts down
02:44 andrej I'm deploying e.g. check_uptime and check_reboot to /usr/lib/nagios/plugins
02:44 EugeneKay I mean, what's the errors about
02:46 ilbot3 joined #salt
02:46 Topic for #salt is now Welcome to #salt - SaltConf Jan 28-30, 2014! http://saltconf.com (reg deadline January 3) | 0.17.4 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers - Channel logs are available at http://irclog.perlgeek.de/salt/
02:49 EugeneKay How about salt-minion logs?
02:49 EugeneKay That's really the interesting bit here
02:50 alunduil joined #salt
02:52 andrej Ummm .. right. If I make a change to a state-file, do I need to run highstate before I can use it?
02:52 andrej [salt.state       ][ERROR   ] Source file salt://nagios-nrpe/ubuntu-nrpe.cfg not found
02:53 andrej The file definitely exists on the server
02:54 gadams left #salt
02:58 mgw joined #salt
03:00 EugeneKay Where does it exist? ;-)
03:01 andrej on the server in /srv/salt/nagios-nrpe
03:02 drawsmcgraw joined #salt
03:06 xmj curiosity has it: where does the /srv entry come from?
03:06 xmj I don't remember seeing it in man hier
03:15 jdenning joined #salt
03:20 yomilk joined #salt
03:27 Guest93075 left #salt
03:41 zzzirk joined #salt
03:54 n8n joined #salt
04:01 quickdry21 joined #salt
04:02 pdayton joined #salt
04:13 jdenning joined #salt
04:17 deepakmdass joined #salt
04:35 n8n joined #salt
04:37 cachedout joined #salt
04:37 rojem joined #salt
04:42 kalloc joined #salt
04:44 n8n joined #salt
04:46 favadi joined #salt
04:50 Ryan_Lane21 joined #salt
04:51 n8n joined #salt
04:53 ossalk joined #salt
05:04 taion809 joined #salt
05:06 yomilk joined #salt
05:11 Furao joined #salt
05:14 apergos joined #salt
05:14 SkyRocknRoll joined #salt
05:14 kalloc joined #salt
05:15 SkyRocknRoll joined #salt
05:15 SkyRocknRoll joined #salt
05:15 fllr joined #salt
05:18 jalbretsen joined #salt
05:19 forresta joined #salt
05:35 jalbretsen joined #salt
05:36 strgcloud joined #salt
05:39 stack joined #salt
05:40 Guest28303 i have the following command in master salt '*' pkg.install vim but it doesn't showed me anything
05:41 ossalk Hi all, I am trying to run mine via pillar. My pillar file is : http://paste.fedoraproject.org/69220/99372691/
05:41 malinoff Guest28303, do you use CentOS minion?
05:41 Guest28303 no ubuntu minion
05:41 forresta Guest28303, try salt '*' pkg.installed vim
05:42 ossalk When I use salt "*" mine.get "*" fqdn_ip4 grain , it returns nothing
05:42 shine_ joined #salt
05:42 malinoff pkg.installed won't help. There is no "installed" function in pkg module
05:43 Guest28303 forresta i have tried  salt '*' pkg.installed vim now, still it returns nothing
05:43 malinoff Guest28303, can you run `salt-call pkg.install vim -l debug` locally on the minion and pastebin the output?
05:43 Guest28303 ok
05:43 forresta ahh yea duh malinoff, wasn't paying enough attention
05:45 Guest28303 this the output of `salt-call pkg.install vim -l debug` locally on the minion http://pastebin.com/Snqa3FKK
05:46 forresta seems like you have a problem in your master conf.
05:46 forresta or your minion conf
05:46 malinoff Guest28303, you minion configuration file is broken.
05:46 forresta you should run this again from the master as well to see if you get the same thing to ensure the master conf isn't messed up as well
05:47 forresta the original command that is
05:47 malinoff Guest28303, please, pastebin /etc/salt/minion file
05:47 Guest28303 what do i want to do please let me know what needs to changed in the minion and master conf file
05:47 Guest28303 sure will do it
05:47 forresta You need to look at the error, then review the problematic line in your conf file and fix it
05:47 malinoff Guest28303, http://docs.saltstack.com/topics/tutorials/walkthrough.html
05:57 Guest28303 this is /etc/salt/minion http://pastebin.com/qPmrTHmP
05:58 malinoff 12 line breaks your config
05:58 malinoff Remove it
06:03 Guest28303 done
06:04 malinoff Guest28303, restart minion, and everything should work :)
06:04 joehh I feel I should know this, but can a 0.17.x master talk to a 0.16.x minion?
06:04 malinoff joehh, Nope
06:05 forresta joehh, as a question, did you review any of the docs looking for that?
06:05 forresta I added it a while back, but some people still keep asking so I'm not sure if it isn't visible enough or what
06:05 malinoff forresta, as you could see above, people don't wanna read docs :)
06:06 forresta ehhhhh I think I trust joehh since he's building some of the salt packages
06:06 forresta maybe I should move it higher up the list in the troubleshooting docs.
06:07 Guest28303 please the check the pastebin link for the result of salt-call pkg.install vim -l debug after removing the line and restarted http://pastebin.com/tXbVBEnz
06:07 malinoff Did not talk about joehh, he helped me a lot a couple of months ago, but about a common user
06:07 forresta ahh
06:08 malinoff Guest28303, are you running salt as root/sudo?
06:08 forresta Guest28303, looks like you are trying to run as an unprivileged user
06:08 Guest28303 no i am running from administrator user
06:08 Guest28303 i am running as sudo
06:09 joehh forresta: checked the release notes for 0.17.1, which implies needing to update the minions
06:09 malinoff Guest28303, 'sudo salt-call pkg.install vim' ?
06:09 forresta joehh, ahh I see, ok
06:09 forresta thanks
06:10 joehh I knew from memory that the bug affected earlier releases (0.16.x), but am not to sure of the ebst upgade path for a bunch of windows minions
06:10 forresta can you not take them to a 0.17 release?
06:10 Guest28303 malinoff i think i was ok know
06:10 Guest28303 it was fine now
06:11 malinoff Guest28303, cool :)
06:11 joehh then the question flips! can a 0.17.x minion talk to a 0.16.x master!
06:11 joehh ?
06:11 Guest28303 thanks but please let me know i need to install in minion by master what should i want to do know
06:11 joehh I'll check the trobuleshooting docs
06:11 malinoff Guest28303, please, read the docs: http://docs.saltstack.com/topics/tutorials/walkthrough.html
06:12 Guest28303 thanks
06:12 forresta joehh, yes it can, what most people do is update their minions first, then update the master after doing so
06:12 forresta joehh, if I remember correctly, some functionality WILL be broken because of the changes, but getting the minion updated should work no problem
06:13 xmj forresta: are minions able to understand backwards masters?
06:13 forresta xmj, such as the example joehh presented?
06:13 xmj more than masters are to understand backwards minions, that is
06:13 joehh great -thanks for that - not so much appreciated
06:13 xmj forresta: e.g. yes
06:13 forresta xmj, there is SOME functionality for newer minions with an older master
06:13 joehh whoops, didn't mean the "not so"
06:14 forresta but I've seen people have issues trying to run some stuff
06:14 forresta joehh, Sure you did :P
06:14 xmj forresta: interestnig
06:14 forresta xmj, the basic gist is, don't do
06:14 forresta *t
06:14 forresta man can't type
06:15 forresta dont' do it
06:15 xmj obviously
06:15 forresta the only time you should be running it like that is when you update your minions first, and then update the master
06:15 Katafalkas joined #salt
06:16 joehh :)
06:16 forresta that reminds me joehh, you ever used the suse build system?
06:16 xmj forresta: do you know if salt has a way to bring/keep up openvz containers?
06:16 xmj I've googlesearched that yesterday, and.. I didn't find anything interesting :(
06:17 joehh no - never managed to get in fron t of a suse system
06:17 joehh is it good?
06:17 forresta xmj, I only see two mentions of it in the code, and 4 issues: https://github.com/saltstack/salt/search?q=openvz&ref=cmdform&type=Code
06:17 scuwolf joined #salt
06:18 Guest28303 shall i run sudo salt '*' cmd.run 'sudo apt-get update'
06:18 forresta joehh, I don't know. I was looking at it a while back for some stuff at work since it can build for basically everything, and it seemed pretty cool. I was thinking it might be nice to use that for a salt build server eventually
06:18 xmj forresta: too bad
06:19 xmj curious why salt can bring up freebsd jails and maintain them, but not linux containers
06:19 forresta but there was no way we would do a suse VM so I had to scrap the idea if I didn't want to use some old release for rhel machines
06:19 forresta xmj, probably because the freebsd stuff had a lot of external work. terminalmage and one of the guys who loves freebsd were working on it
06:21 Ryan_Lane21 joined #salt
06:23 ossalk Hi , Who can help me with that http://ur1.ca/gfu1k ?
06:24 forresta ossalk, there might not be anyone around tonight familiar enough with the mine, we're usually pretty good about hopping on questions when they pop up.
06:25 ossalk :( ok thanks
06:25 forresta the joys of a lot of US based users :\
06:26 forresta on that note, time to sleep
06:26 ossalk ok I will post it on google group. Thanks forresta
06:46 Katafalkas joined #salt
06:48 bhosmer joined #salt
06:55 Katafalkas joined #salt
06:56 Guest28303 malinoff  sudo salt '*' cmd.run 'wget mirrors.gigenet.com/apache/tomcat/tomcat-8/v8.0.0-RC10/bin/apache-tomcat-8.0.0-RC10.tar.gz' i have done this from my master. it returns that it is downloaded, but i am unable to find this file in minion. please let me know where would this get downloaded?
06:57 malinoff Guest28303, run sudo salt '*' cmd.run "echo $PWD"
06:59 Guest28303 Ubuntu -minion:     /home/rome -master i wonder it gets stored in master
06:59 Guest28303 how is it possible ? where do i change the conf
07:00 fllr joined #salt
07:00 d10n joined #salt
07:01 mjulian joined #salt
07:01 malinoff Guest28303, every command runs on a minion
07:02 rmt joined #salt
07:02 malinoff You run `salt` on the master - it sends the command you passed to a minion - the command runs locally on a minion
07:02 jacksontj joined #salt
07:03 Guest28303 yes but when i tried sudo shutdown -h now, sudo apt-get install -y pidgin it works but when i run any wget cmd to download it downloads in my system
07:03 malinoff Sorry, I can't understand you :(
07:04 Guest28303 please do let me tell you clearly the output of sudo salt '*' cmd.run "echo $PWD" is paris:     /home/kumar kumar is the user of master and paris is minion
07:06 malinoff Guest28303, run salt '*' cmd.run "ls -l /home"
07:06 Guest28303 paris:     total 8     drwxr-xr-x 44 jefferson jefferson 4096 Jan 17 12:31 jefferson     drwxr-xr-x 44 rajesh    rajesh    4096 Jan 17 12:35 rajesh
07:07 apergos you could try adding "-O /home/paris/apache-tomcat-8.0.0-RC10.tar.gz"  to your wget options   and see what happens
07:07 Guest28303 ok
07:08 malinoff Guest28303, I can't see "/home/kumar" or "/home/rome" in your output
07:08 Guest28303 kumar is the user of master
07:12 Guest28303 apergos sudo salt '*' cmd.run "wget -O /home/rajesh/work/apache-tomcat-8.0.0-RC10.tar.gz" [sudo] password for kumar:  paris:     wget: missing URL     Usage: wget [OPTION]... [URL]...     Try `wget --help' for more options.
07:12 apergos you need to add the url at the end:
07:13 apergos wget -O /home/rajesh/work/apache-tomcat-8.0.0-RC10.tar.gz mirrors.gigenet.com/apache/tomcat/tomcat-8/v8.0.0-RC10/bin/apache-tomcat-8.0.0-RC10.tar.gz
07:13 apergos you are just telling wget explicitly where to put the file when it gets it
07:19 jacksontj_ joined #salt
07:21 Guest28303 thanks apergos
07:22 apergos is it putting the file where you tell it?
07:22 Guest28303 thanks malinoff and malinoff for you great help
07:22 Guest28303 yes apergos
07:22 apergos great.  have fun!
07:27 Guest28303 thanks apergos have a great day
07:38 ml_1 joined #salt
07:50 n8n joined #salt
07:54 anuvrat joined #salt
07:55 Iwirada joined #salt
08:01 gasbakid joined #salt
08:04 balboah joined #salt
08:06 giantlock_ joined #salt
08:06 gammalget joined #salt
08:15 Gnep joined #salt
08:18 Gnep Hi guys, where I can find the release timeline of this 2014.1 version. I will wait for the stable release, not RC. So I want to know when will that be.
08:18 slav0nic joined #salt
08:18 slav0nic joined #salt
08:20 harobed_ joined #salt
08:21 harobed_ joined #salt
08:31 fllr joined #salt
08:36 bhosmer joined #salt
08:40 yomilk joined #salt
08:44 fllr joined #salt
08:45 fllr joined #salt
08:51 DaveQB joined #salt
08:52 DaveQB joined #salt
08:54 kalloc joined #salt
08:57 helminthe joined #salt
08:58 goog joined #salt
08:58 Katafalk_ joined #salt
08:59 DaveQB_ joined #salt
08:59 DaveQB_ Evening
09:00 DaveQB_ How does one include an sls that has dots in the name?
09:00 ajw0100 joined #salt
09:01 keekz joined #salt
09:05 jasonrm joined #salt
09:05 scott_w joined #salt
09:06 Corey_ joined #salt
09:06 aleszoulek joined #salt
09:17 njpatel joined #salt
09:21 gmtech Hey all
09:22 gmtech When I run this: salt '*' state.highstate test=True
09:22 gmtech It's only telling me the first thing that would be done, instead of the entire stack of things that would be done. I know this as if I take off the test=True, it does 15 things rather than 1
09:22 gmtech How do I get test=True to show me all 15 things it will do?
09:25 DaveQB_ gmtech: I find salt-call from the minion is more verbose.
09:25 DaveQB_ gmtech: Not sure if you can run test from salt-call, probably.
09:26 DaveQB_ gmtech:  It might lead you to a solution.
09:33 gmtech thanks
09:33 Shish test=True does work from the minion; also try "-l debug" if the minion's default log level isn't enough
09:33 LucasCozy joined #salt
09:33 DaveQB_ Anyone know how to include an sls file that has dots in the name?
09:36 matanya joined #salt
09:41 viraptor1 joined #salt
09:56 zooz joined #salt
09:56 leonardinius joined #salt
09:57 kalloc joined #salt
10:06 deepakmdass joined #salt
10:14 BogdanR in the top.sls file can I specify all except one?
10:15 Valdo joined #salt
10:15 leonidms joined #salt
10:18 malinoff DaveQB_, you can't
10:18 malinoff BogdanR, '* and not minion-id', I think
10:18 Luijk joined #salt
10:25 BogdanR malinoff: That didn't work
10:25 malinoff BogdanR, http://docs.saltstack.com/ref/states/top.html you should use compound matcher
10:27 elithrar joined #salt
10:29 LucasCozy joined #salt
10:32 giantlock_ joined #salt
10:32 iam0ky joined #salt
10:34 Luijk Is the a way to supply salt-ssh with a private key to user for login?
10:36 diegows joined #salt
10:48 leonardinius__ joined #salt
10:48 leonardinius joined #salt
10:52 Anb joined #salt
10:52 Anb joined #salt
10:52 ccase_ joined #salt
10:52 helminthe1 joined #salt
10:58 gmtech I want to classify nodes (servers) into logical environments, and use that information in the conf to an external pillar. Is that possible?
11:00 zloidemon joined #salt
11:00 esoel_ joined #salt
11:14 scott_w joined #salt
11:15 psyl0n joined #salt
11:20 DaveQB_ joined #salt
11:21 DaveQB_ malinoff: Thanks. That's a PITA though.
11:38 ccase joined #salt
11:43 Katafalkas joined #salt
11:44 ekristen joined #salt
11:48 strgcloud joined #salt
11:48 krak3n` joined #salt
11:57 psyl0n joined #salt
11:58 gmtech Why do you have to refresh pillars on minions before you apply a state ? Surely the master compiles the state against the pillars and sends the result to a minion anyway?
12:01 njpatel joined #salt
12:01 shadowh511 joined #salt
12:03 SkyRocknRoll joined #salt
12:07 esoel__ joined #salt
12:11 ndrei joined #salt
12:11 zzzirk joined #salt
12:26 mwmnj joined #salt
12:29 Teknix joined #salt
12:31 scott_w joined #salt
12:37 crane hey ho, i have seen that it is possible to install python pakets by using pip. how can i define a special version of the paket i would like to install? i did not find anything in the documentation of salt where it would say "put version here"?
12:39 zooz joined #salt
12:41 krak3n` @crane use the name: attribute in the state
12:42 crane krak3n`, like django==1.5?
12:42 krak3n` http://pastebin.com/Qx7QMFyb
12:42 krak3n` described here: http://docs.saltstack.com/ref/states/all/salt.states.pip_state.html#salt.states.pip_state.installed
12:44 crane krak3n`, i was looking on http://docs.saltstack.com/ref/states/all/salt.states.pip.html close but not close enough
12:44 crane krak3n`, thx! :)
12:45 krak3n` nps :)
12:46 Psyke joined #salt
12:53 Psyke Hi, I am using grains to get the IP of a minion to add into a managed configuration file. It works fine except for the fact that when Jinja renders the file it adds square brackets and tick marks e.g : +Listen ['xxx.xxx.xxx.xxx'] . Am I missing something stupid?
12:55 Katafalkas joined #salt
12:58 srage joined #salt
13:05 jslatts joined #salt
13:05 blee joined #salt
13:05 leonardinius Psyke, could you please share a snippet from your jinja2 template? it seems like the grain returns smth like an array of inet interfaces/ips. I suppose you should do smth like {{grains['eth0'][0]}} or whatevrer. me myself not a big expert on jinja2 syntax
13:08 babilen Hi all - I am completely new to salt, but we would like to use it to automate the (post) installation of some Debian boxes and deploy different services to them. Could you recommend some documentation that I could read to familiarise myself with salt in the light of that goal?
13:08 Psyke Thanks Leonardinius, that works prefectly! I knew it was something stupid (facepalm) :P
13:08 Psyke {{ grains['ip_interfaces']['eth0'][0] }}
13:09 nkuttler babilen: just in case you missed it, https://salt.readthedocs.org/en/latest/
13:10 leonardinius Psyke, no problem. I'm glad it helped.
13:12 srage joined #salt
13:12 babilen nkuttler: Yeah, I've already found that and the walkthrough - I'm just looking for a "read the documentation track" that would allow me to get to grips with a PXE+TFTP+preseed installation that is then followed by configuration steps via salt. Essentially the management/deployment/creation of VMs (on Xen) for different profiles (e.g. "webserver for customer1", "database for ..")
13:13 babilen nkuttler: There simply is a lot of material to cover and I am not sure what to read in which order to achieve a goal like that. :)
13:13 nkuttler babilen: i see. haven't done that myself
13:13 logix812 joined #salt
13:15 babilen nkuttler: No problem - me neither and now I am facing the entirety of Salt and am not sure where to begin :)
13:15 ndrei joined #salt
13:17 linjan joined #salt
13:21 krak3n` joined #salt
13:26 leonardinius Hi all, question from complete rookie - I'm trying to automate a) redmine instance provisioning b) part of the process is redmine db restore from backup. Question: how best to achieve it? Should I put db_backup.sl.gz somewhere into salt:// filestore and point to particular backup via pillar?
13:27 leonardinius Question2: what is the strategy for performing tasks like this (unzippng backup, execute pg_restore ..)? How could one perform this - is cmd.run the only option?
13:27 scott_w joined #salt
13:34 higgs001 joined #salt
13:35 JasonSwindle joined #salt
13:38 Whissi joined #salt
13:40 anuvrat joined #salt
13:40 ndrei joined #salt
13:42 leonardinius Another rookie question: how does salt address dbconfig-common package configuration?
13:48 oz_akan_ joined #salt
13:50 oz_akan_ joined #salt
13:50 brianhicks joined #salt
13:52 mpanetta joined #salt
13:52 ekristen dave_den: you around?
13:55 jrdx joined #salt
14:02 krak3n` joined #salt
14:05 BogdanR Why doesn't this work: http://pastie.org/pastes/8642364/text?key=bl711lfxvmxnvq9if7yqqg ?
14:06 Katafalkas joined #salt
14:07 JasonSwindle joined #salt
14:07 AdamSewell joined #salt
14:10 gadams999 joined #salt
14:13 mpanetta_ joined #salt
14:16 juicer2 joined #salt
14:18 [diecast] joined #salt
14:18 racooper joined #salt
14:19 fishpen0 I am having difficulty finding documentation on error reporting
14:19 fishpen0 Is there a method to make the salt master send emails when a state fails?
14:19 ekristen I think reactors
14:20 Furao joined #salt
14:20 ekristen actually there doesn’t seem to be a reactor for that
14:28 mapu joined #salt
14:28 xinkeT joined #salt
14:28 fishpen0 So there is no solution built into salt for error reporting outside of log scraping?
14:32 anuvrat joined #salt
14:33 jcsp1 joined #salt
14:33 giantlock_ joined #salt
14:34 gadams9991 joined #salt
14:37 cachedout joined #salt
14:38 vejdmn joined #salt
14:39 kermit joined #salt
14:39 pdayton joined #salt
14:40 xinkeT joined #salt
14:41 DaveQB joined #salt
14:45 tessellare joined #salt
14:46 Shenril joined #salt
14:46 ckao joined #salt
14:53 leonardinius Hi all. another rookie question: how to pass debconf answers during package installation. I add it as pkg: pkg.installed: - debconf: salt://path and get KeyError: 'debconf.set_file'. what do I wrong
14:53 Katafalkas joined #salt
14:53 leonardinius I believe it's something rather stupid i'm missing here
14:54 ndrei joined #salt
14:54 Iwirada have you tried "- skip_verify: True"
14:54 Iwirada ?
14:54 rojem joined #salt
14:55 foxx joined #salt
14:56 leonardinius Iwirada: not yet, will do
14:57 nocturn joined #salt
14:57 quickdry21 joined #salt
14:58 tyler-baker joined #salt
14:59 timoguin joined #salt
15:00 nkuttler hrm, isn't there some central rcfile salt-master, key, cloud etc read? trying to run everything as unprivileged user
15:01 mgw joined #salt
15:01 kaptk2 joined #salt
15:01 leonardinius Iwirada: still getting the error regarding debcon part, however if I comment debconf out - the package gets installed which good enough
15:02 lessismore joined #salt
15:03 mpanetta joined #salt
15:03 bhosmer joined #salt
15:03 Iwirada leonardinius: hm, i just read your text again. wouldn't you have to specify it under - sources?
15:05 aapl joined #salt
15:05 aapl left #salt
15:05 Iwirada nkuttler: quick(stupid) answer: why not use sudo?
15:05 leonardinius Iwirada: I doubt so. As far I could tell from documentation - sources point to *.rpm/*.deb package files (I believe it will do something like dpkg -i source)
15:06 Iwirada can you patebin your sls?
15:07 rlarkin joined #salt
15:11 leonardinius Iwirada: http://pastebin.com/9uuE8Fpb - working variant without debconf. the error I get with debconf is here http://pastebin.com/QvssaXRE
15:12 jergerber joined #salt
15:12 jslatts joined #salt
15:12 Iwirada where did you get the idea for the "debconf" from?
15:13 Iwirada i thought debconf is some sort of package :/
15:14 Iwirada if it is some sort of config file for the installed package, you have to use the file state
15:14 Iwirada file.managed it is, if i remember correctly
15:15 anuvrat joined #salt
15:16 leonardinius Iwirada: from here http://docs.saltstack.com/ref/modules/all/salt.modules.pkg.html#module-salt.modules.pkg My current understandign is pkg.is kinda of virtual package/syntactic sugar (indirection level) for OS specific pkg manager. So, I believe it will result in http://docs.saltstack.com/ref/modules/all/salt.modules.apt.html#salt.modules.apt.install invocation
15:16 leonardinius Iwirada: and apt.install does indeed accept debconf aonfiguration parameter
15:16 leonardinius *configuration
15:16 Iwirada uh, i think you are mixing up states and modules
15:17 Iwirada modules you execute immediatelly
15:17 JasonSwindle on CLI normally
15:17 Iwirada states are files where you define states/configurations your machine is in
15:18 Iwirada you posted a sls, which is a state configuration file.
15:18 Iwirada you then force the machine to a given state by using the state.sls or state.highstate module on the cli by using the command "salt <machine> state.<whatever>"
15:19 leonardinius ok, so if I try to describe the state for particular debian package (installed via apt-get installed with particualr set of debconf answers provided) I am out of luck?
15:19 pdayton joined #salt
15:19 ekristen hrm, so dave_den apparently you can’t have the same sls states in multiple gitfs remotes or it causes collisions
15:21 Iwirada leonardinius: if you try to do it via states, yes. you can install it normally and then configure it with file.managed states afterwards, if you want to go the states-way
15:21 Iwirada debconf answers are imho nothing more than predefined configurations by the packages
15:22 Iwirada just configure it on a test machine, grab the config files and distribute then with the file state
15:24 Iwirada like this: http://slexy.org/view/s20IbavEGQ
15:25 leonardinius Iwirada: ok, will try to do so. Another rookie question: is the state.sls file being processed in hte order it's being defined. Meanng if I have states defined like pkg.installed, file.managed, debconf.set_file - then the final effective state will be applied in the same order?
15:26 Iwirada there are require and watch options
15:26 leonardinius Iwirada: I get I could configure file.managed to require particular package
15:26 leonardinius Iwirada: I don;t see how to accomplish the same for debconf state
15:27 Iwirada debconf is not a state
15:27 Iwirada it just configures your package while you are installing it
15:27 nkuttler leonardinius: i just sync the config files, never thought about touching debconf tbh
15:27 higgs001 joined #salt
15:27 mapu joined #salt
15:27 Iwirada leonardinius: http://docs.saltstack.com/topics/tutorials/starting_states.html
15:28 Iwirada it is where i got all my stuff from (and try and error ofc ;) )
15:29 lessismore hello @ll. I discovered that a simple echo of a dict from pillar causes a failed compilation because of the unescaped colon in "test: key:value" using salt 0.16.4-2~bpo70+1, are there known workarouds? the example command follows:
15:29 lessismore cmd.run:
15:29 lessismore - name: echo "Data {{ salt['pillar.get']('test') }}"
15:29 deepakmdass joined #salt
15:31 leonardinius nkuttler, Iwirada: thanks a lot for your help. will try to wrap my head around it.
15:31 Iwirada leonardinius: you're welcome
15:31 Gordonz joined #salt
15:32 Gordonz joined #salt
15:37 bhosmer joined #salt
15:40 timoguin leonardinius, you CAN actually call the debconf module in an SLS file.
15:40 timoguin you have to use module.run: http://docs.saltstack.com/ref/states/all/salt.states.module.html
15:41 timoguin not sure if that'll help you or not
15:42 gasbakid joined #salt
15:43 maci joined #salt
15:44 leonardinius timoguin, thanks. will try that as well.
15:46 forresta joined #salt
15:46 nkuttler meh.. salt-cloud seems to ignore -M and always reads the global config
15:47 elithrar joined #salt
15:47 maci any idea how i could reference to the top ID declaration of an sls file? so the first line in my sls file is mingw32: or mingw64: later in the file i use pkg.installed and i want to be able to only write the list of needed packages once, but replace the mingw32/mingw64 prefix as needed
15:48 zzzirk joined #salt
15:49 nkuttler maci: make the top id a variable?
15:49 maci so no way to reference it directly ?
15:49 maci like theres {{env}}
15:49 krak3n` joined #salt
15:50 nkuttler maci: no idea tbh, just what i do
15:56 Gifflen joined #salt
15:56 scott_w joined #salt
15:59 fllr joined #salt
15:59 davet joined #salt
16:00 elithrar joined #salt
16:00 demian_ joined #salt
16:04 Iwirada left #salt
16:05 mgw joined #salt
16:06 salt_whitebelt joined #salt
16:07 salt_whitebelt has anybody every gotton the cmd.script to run succesfully on windows minion?
16:07 salt_whitebelt i mean ever gotton
16:09 jalbretsen joined #salt
16:09 linjan joined #salt
16:10 salt_whitebelt what exactly does this mean salt window.minion cmd.which cat?
16:11 zzzirk joined #salt
16:11 ashtonian joined #salt
16:13 njpatel joined #salt
16:17 nkuttler salt_whitebelt: looks like it should return the location of the cat exe
16:18 timoguin it just returns "None" for me
16:18 alunduil joined #salt
16:19 nkuttler timoguin: well, do you have cat installed?
16:19 timoguin I know with powershell cat is an alias for "Get-ChildItem"
16:19 timoguin i'm checking a couple things with the powershell setup
16:20 salt_whitebelt return none for me too
16:20 nkuttler i don't know anything about windows, nor salt on windows, but unix which doesn't know about aliases
16:20 nkuttler salt_whitebelt: what happens when you ask for an exe you know exists?
16:21 salt_whitebelt cmd.script is suppose to push the powershell script down to minion and run it locally through powershell
16:21 salt_whitebelt im not sure how the exe come into play?
16:22 ekristen dave_den: my environment is specifically set to test via grains and minion, however when I do a highstate it picks them up as the dev environment
16:22 ekristen dave_den: I no longer have a base top.sls anymore
16:22 ekristen the same “role” is used across multiple envs
16:22 esoel_ joined #salt
16:22 ashtonian joined #salt
16:24 timoguin salt_whitebelt, which is a unix command that searches for the location of an executable file, so cmd.which is looking for cat.exe when you run that command
16:25 salt_whitebelt ok then it wouldn't apply in my case
16:26 salt_whitebelt timoguin: have you ever gotten cmd.script to work on a windows minion?
16:26 timoguin haven't need to, but i'm taking a look at it
16:26 * ashtonian winks at timoguin
16:27 ekristen timoguin: are you using multiple environments
16:27 timoguin ekristen, no, not yet
16:27 salt_whitebelt timoguin: cmd.script is suppose to run any shell script locally once it get push down from master
16:27 timoguin salt_whitebelt, yea I know. I just haven't need to use it because I've used cmd.run instead.
16:29 salt_whitebelt timoguin: cmd.run allows you to run powershell remote with argument but when you need to run powershell script that does multitask sequence it suppose to work with cmd.script. at this point if i could get cmd.run to execute powershell script from master and run it from master or on windows minion that would be fine as well but i can't figure out yet.
16:30 timoguin what is the command you're trying to use for cmd.run?
16:30 timoguin it's working fine for me.
16:30 abe_music joined #salt
16:33 dave_den ekristen: state.show_top will show you which states will be applied to the minion and for which envs if you did a highstate.
16:33 ekristen I just learned that ! ;)
16:33 ekristen like 2 seconds ago, lol
16:33 ekristen very helpful
16:33 dave_den if you have two or more envs with the same state being applied to a minion, you will likely have ID declaration namepsace issues unless you know how to write your states to get around it
16:33 dave_den this is why i say never have a minion match more than one env
16:34 ekristen well I think I have to stop using ‘*’ in my env definitions
16:34 ekristen it seems to be causing problems
16:34 dave_den yes, most definitely
16:34 ekristen although as I understood it, if the environment is explicitly set then it should only use that env?
16:35 ekristen or the env top file, but maybe I misunderstood you
16:35 dave_den it should stick to only that env + base.
16:36 ekristen hrm
16:36 ekristen somehow it was matching my dev env :/
16:36 ekristen and I was working in testing
16:36 ekristen but its very possible I screwed something up
16:36 jdenning joined #salt
16:37 martoss joined #salt
16:39 sroegner joined #salt
16:45 JasonSwindle1 joined #salt
16:46 salt_whitebelt timoguin: salt window.minion cmd 'powershell -File c:\tmp\pshell.ps1'
16:46 [diecast] joined #salt
16:48 ajw0100 joined #salt
16:49 bhosmer joined #salt
16:50 timoguin salt_whitebelt, try this: salt window.minion cmd.run C:\tmp\pshell.ps1 shell=powershell
16:51 seanz joined #salt
16:54 salt_whitebelt timoguin: i know running your switch works so is the -file method. what im trying to avoid is having to push powershell script manually before i run it. i want to have a repository on my master cent os and push down the script automatically with the cmd.script
16:54 timoguin yea i'm not sure about cmd.script
16:54 salt_whitebelt timoguin: with cmd.run the powershell script need to physically exist on the minion before running.
16:56 timoguin i know. i haven't had a chance to test out cmd.script yet.
16:58 ajw0100 joined #salt
17:00 troyready joined #salt
17:00 salt_whitebelt timoguin: everytime i run cmd.script, it always come back with cache error: true, retcode:1. is retcode=1 means fail?
17:05 Koma joined #salt
17:05 fllr joined #salt
17:07 cadmi joined #salt
17:08 cadmi hello
17:10 cadmi tell me, please, is possible using salt.states.hg state clone not anonymous https repo, with login/pass auth? for ex https://user@hg.example.net/repo ?
17:14 dave_den cadmi: you can use a .hgrc or specify '- opts' to set hg settings
17:15 esoel_ joined #salt
17:16 Koma joined #salt
17:18 gmoro joined #salt
17:18 cadmi dave_den: I'm just trying to put a file with the desired content via file.managed. but setup contents of the [auth] section from this in the parameter -opts is a good idea, thanks
17:18 cadmi ... put a .hgrc file ...
17:18 hunter joined #salt
17:19 gadams999 joined #salt
17:19 mgw joined #salt
17:19 Koma joined #salt
17:21 fllr joined #salt
17:21 tamentis joined #salt
17:22 utahcon joined #salt
17:22 salt_whitebelt what module or state should i use to transfer file from master to windows minion?
17:22 AlcariTheMad joined #salt
17:22 davet joined #salt
17:22 KyleG1 joined #salt
17:22 krak3n` joined #salt
17:23 dave_den salt_whitebelt: http://docs.saltstack.com/ref/modules/all/salt.modules.cp.html
17:23 KyleG joined #salt
17:26 coolj joined #salt
17:26 bemehow joined #salt
17:28 njpatel_ joined #salt
17:28 salt_whitebelt tried "salt windows.minion cp.get_file salt://srv/salt c:\tmp\" but nothing happens. this is a windows minion. not sure if it will work
17:31 Katafalkas joined #salt
17:31 Koma joined #salt
17:32 dave_den if /srv/salt is a dir, use get_dir.
17:33 dave_den also, your path is likely not salt://srv/salt
17:33 dave_den i've never tried to copy the entire root dir down, but you might try "salt:///"
17:35 [diecast] joined #salt
17:36 bemehow_ joined #salt
17:39 cachedout joined #salt
17:40 joehillen joined #salt
17:42 bhosmer joined #salt
17:43 vejdmn joined #salt
17:50 schristensen is there a way to test for the existence of a user on a system?
17:51 kula what kind of system, and in which way. if i just want to look, i tend to do 'cmd.run_stdout "getent passwd <username>"'
17:51 schristensen something like: {% if user.exists('foo') %} .... {% endif %}
17:51 schristensen ?
17:52 KyleG Does anybody know when the next salt release is slated?
17:52 timoguin supposed to be before SaltConf
17:53 patrek_ joined #salt
17:54 kula look at the useradd module. you might see what salt['user.info'] returns when a user does and doesn't exist.
17:54 xmltok joined #salt
17:56 schristensen kula, thanks.  that might work.
17:57 Ryan_Lane2 joined #salt
17:58 ndrei joined #salt
17:58 gadams9991 joined #salt
17:58 gadams9992 joined #salt
18:01 amckinley joined #salt
18:01 jacksontj joined #salt
18:04 Koma joined #salt
18:07 curious_ joined #salt
18:11 ekristen dave_den: is there a state.show_top equivalent for pillar?
18:12 patrek joined #salt
18:12 dranger joined #salt
18:12 dave_den ekristen: no, not at the moment
18:12 ekristen doh!
18:14 njpatel joined #salt
18:15 ekristen dave_den: does pillar.items only show whats currently on the system then?
18:17 ekristen dave_den: so basically I’ve found that even if a system is pinned to an environment with enviroment: blah, when you to a highstate it ignores it
18:18 dave_den pillar.items will compile the pillar from the master and display it
18:18 ekristen so basically in each of my env top.sls file, I’m having to do compound matching and do ‘G@environment:test and G@role:appnode’
18:18 ekristen because if I just do role:appnode in multiple env top.sls file, highstate will pick them both up for a minion even if that minion is pinned to one environment
18:19 ekristen maybe that is intended behavior
18:19 dave_den i haven't tried the explicit environment lately. i target via top as well
18:20 ekristen as long as I do compound matching and specify environment:blah i’m ok it would be nice to not have to do that, but this allows me to keep my production states separate from my development states, etc
18:21 dave_den http://docs.saltstack.com/ref/states/top.html#environments  docs say "If the intent is to bind minions to specific environments, then the environment option can be set in the minion configuration file."
18:21 ekristen let me test something
18:24 kermit joined #salt
18:24 ekristen dave_den: so setting my minion to the dev environment and then running state.show_top, it still picks up the ‘*’ from the testing environment top.sls file, even though its specifically pinned to the dev environment
18:25 njpatel joined #salt
18:26 dave_den how are you setting the environment on the minion
18:26 beanux joined #salt
18:26 ekristen ./etc/salt/minion
18:26 ekristen and restart
18:26 [diecast] joined #salt
18:30 thrashr888 joined #salt
18:30 foxx joined #salt
18:32 ndrei joined #salt
18:33 fishpen0 setting TLS to false in halite doesn't seem to actually do anything.  It still looks for keys and it still only responds over https.  Is there additional steps to make to run on standard http?
18:33 dave_den ekristen: seems to be doing that for me as well
18:34 ekristen well I guess that is good news, at least it isn’t something I’m doing wrong
18:35 ekristen the work around for now is to just use compound matching for everything
18:35 ekristen not the most ideal, but gets the job done
18:36 bemehow joined #salt
18:36 jeremyBass1 joined #salt
18:37 abe_music It doesn't look like salt-run supports returners...is there a way I can get a return for state.over?
18:38 dave_den ekristen: IMO, that is a bug. the docs also suggest setting the environment on the minion will force it to a single env: https://github.com/saltstack/salt/blob/develop/conf/minion#L292
18:38 ekristen ok, I’ll open a bug report then
18:38 jeremyBass1 Hello I'm looking for the reference for setting some pillar/grain or evn data in a state file.  google is failing me atm and i know i saw something with jnina the other day.. just can't recall where or what it fully referenced
18:40 dave_den jeremy: pillar['key'] or grains['key']
18:41 jeremyBass1 what i want to do is build a path and set it so i can use it in the state files based of a pillar value, with out hard coding that pecie of data
18:41 jeremyBass1 @dave_den that is to get right not set
18:43 vejdmn joined #salt
18:43 dave_den you mean like {%- set my_path = pillar.get['something'] + grains.get['hostname'] -%}
18:44 dave_den ?
18:44 dave_den bbiab
18:45 jacksontj joined #salt
18:46 nkuttler babilen: ping
18:50 ekristen dave_den: https://github.com/saltstack/salt/issues/9805
18:54 alice_wl_ left #salt
18:57 mgw joined #salt
18:58 jeremyBass1 @dave_den yes that was it... i will run that down.  sorry got pulled out to a quick meeting and side tracked :D
18:58 bhosmer joined #salt
18:58 kermit joined #salt
19:00 jon_k joined #salt
19:01 jon_k Hi there, I've been researching requisite declerations
19:01 jon_k I've got an error Illegal requisite \"['nss-pam-ldapd', 'cyrus-sasl-lib']\", please check your syntax.",
19:02 jon_k I've got a list of items under the yaml -require: -pkgs:
19:02 jon_k - nss-pam-ldapd
19:02 jon_k - cyrus-sasl-lib
19:02 jon_k it seems it's compiling these as a list, and then i have definitions for those in my file,, defined as
19:02 jon_k cyrus-sasl-lib: pkg.installed
19:03 jon_k any idea why it's illegal? seems from requisite declerations it's valid to include a lis
19:03 druonysus joined #salt
19:03 ndrei joined #salt
19:11 anuvrat joined #salt
19:13 dave_den jon_k: - require:\n    - pkg: cyrus-sasl-lib\n    - pkg: nss-pam-ldapd
19:14 dave_den jon_k: require is in the form of:  module:  ID_declaration
19:15 bhosmer joined #salt
19:15 nkuttler hm, what does the default deploy script do with salt-cloud?
19:17 JasonSwindle joined #salt
19:20 timoguin nkuttler, it installs salt using the best available method for the target OS
19:20 timoguin with no arguments it will grab add the PPA for ubuntu and install the package, or for redhat it'll install the rpm
19:21 timoguin or if you specify git it will install git, checkout the source, and install it
19:21 nkuttler timoguin: thanks!
19:22 timoguin nkuttler, https://github.com/saltstack/salt-bootstrap/blob/develop/bootstrap-salt.sh
19:22 timoguin that's the source if you wanna dig in any further
19:23 nkuttler timoguin: perfect, thanks. i'm really just spinning up my first boxes and was wondering what's happening :)
19:23 * timoguin nods
19:25 JasonSwindle joined #salt
19:27 Mua joined #salt
19:28 strgcloud joined #salt
19:28 Koma joined #salt
19:31 steve1 joined #salt
19:32 nkuttler ok... i guess i should have created an ssh key without a passphrase.. asks me for the pp a dozen times during install
19:33 nkuttler oh nice, key is also auto-accepted
19:33 ndrei joined #salt
19:33 Koma joined #salt
19:33 timoguin yep, it creates the key on the master and then copies it over via ssh
19:33 steve1 is there a jinja syntax to do a regex match?  i.e.: {% if grains[host].match(/^prod\d+$/) %}
19:33 nkuttler timoguin: so i should create a key without passphrase? or can salt-cloud use keychain or something?
19:34 jon_k dave_den: your requires syntax help was correct. thanks much for the tip!
19:34 timoguin nkuttler, I do mine without a passphrase.
19:34 nkuttler timoguin: ok, ty
19:34 timoguin You really only need it to copy over the salt keys initially.
19:34 nkuttler timoguin: right
19:34 mapu joined #salt
19:35 timoguin If you don't want a passphrase-less key on your server you can always remove the default key when you run highstate
19:35 timoguin after it's joined up
19:35 nkuttler yeah, you're right
19:35 nkuttler i'll push my own keys anyway with the first highstate
19:35 Ahlee is there a python god/monit service?
19:36 Ahlee thinking of wrapping salt-minion in one so i can just kill it and let that app restart when i want to change
19:36 nkuttler ah, ofc, i broke my state config.. anyway, that's enough for today..
19:36 nkuttler ah no, minion needs roles assigned
19:37 ndrei joined #salt
19:37 nkuttler very nice indeed
19:38 mgw joined #salt
19:46 JasonSwindle joined #salt
19:47 Koma joined #salt
19:48 Koma joined #salt
19:49 fllr Hey guys. I'm trying to use salt to install elasticsearch using this state file: https://gist.github.com/felipellrocha/1b45e7331a063b498aab It says es installed fine, but if I run sudo service elasticsearch status, it tells me es is not running. I already went to #elasticsearch, and it looks like this might be a salt issue, because es is supposed to install to /etc/elasticsearch, but that's empty...
19:51 n8n joined #salt
19:51 forresta fllr, is the package actually installed on the server?
19:51 fllr forresta: what do you mean?
19:51 forresta if you go onto the minion where it says elasticsearch is installed, is the package installed
19:52 forresta and are all the deps installed properly?
19:52 ConceitedCode joined #salt
19:52 forresta libc6, openjdk, etc.
19:53 Ryan_Lane2 joined #salt
19:54 Furao joined #salt
19:54 fllr forresta: yeah... that state file worked fine for another installation I had
19:55 forresta so the issue only happened on one box?
19:56 fllr forresta: well... no. that was an older box, with an older version of salt... now that i remember, i had to patch up salt, to make pkg work correctly...
19:56 fllr I guess I figured that had been fixed...
19:57 fllr forresta: plus, I have been trying to destroy and bring up this vm multiple times, and it still wont work...
19:57 fllr forresta: what's weird is that running sudo service elasticsearch start will say that es indeed started
19:57 timoguin fllr, I have an elasticsearch state that's working, but I'm using ubuntu and the .deb
19:58 forresta I've gotta go grab lunch before my window is up here with my coworkers, I'll be back in a bit, let me know if you figure it out.
19:58 gavit joined #salt
19:59 fllr timoguin: that's exactly what I'm using... can I see it?
19:59 gavit hello
19:59 timoguin fllr, sure, lemme stick it in a gitst
20:02 timoguin fllr, https://gist.github.com/timoguin/8480416
20:02 timoguin there you go. i have that under elasticsearch/init.sls
20:02 fllr timoguin: thanks!
20:02 timoguin and then i have the config files under elasticsearch/files
20:02 timoguin but they're just the default configs essentially
20:03 timoguin for some reason the service wouldn't restart properly when the config dir was changed, so i disabled that part of it
20:03 fllr timoguin: So you're running dpkg manually, essentially?
20:03 timoguin yuhp
20:04 timoguin i also have a separate oracle java state
20:05 fllr timoguin: I'm wondering if I could download the deb files ahead of time, and just do dpkg -i salt://elasticsearch-0.90.10.deb
20:05 timoguin yea you could
20:06 timoguin I'm using gitfs, and I got a memory limit error when I tried to add the .deb to git.
20:06 timoguin So I just didn' tmess with it anymore
20:06 fllr I'm gonna try that...
20:06 fllr Aaaaah, I see...
20:06 kalloc joined #salt
20:07 BigGorilla joined #salt
20:07 felixhummel joined #salt
20:14 hunter joined #salt
20:14 juicer2 joined #salt
20:16 nkuttler oh wow.. django orm external pillar
20:20 Nazzy woo! another bug found! *sigh*
20:20 narekb joined #salt
20:24 Nazzy seems file.check_perms is misbehaving
20:26 leonardinius just saying: require and watch state conditions are confusing at least. I though I got them, then they broke for me, then I found another piece of documentation on the subject, fixed my state.sls; however I'm afraid I still might miss the point.
20:26 Ahlee Nazzy: hm? what are you seeing?
20:27 Ryan_Lane2 joined #salt
20:27 Nazzy Ahlee, it's reporting that it's changed the mode on the file from 0700 to 700
20:27 thrashr888 joined #salt
20:27 leonardinius anyone, does require: file: xxx condition stand for xxx: file.managed -source: yyy - meaning since the state is just data, so state engine reason about require and watch from data describe in salt states, right?
20:28 mgw joined #salt
20:28 leonardinius meaning - it does not actually check whether file: xxx exists on the tartet machine?
20:28 forresta lenardinius, it watches the specified ID to ensure that the block succeeded.
20:28 leonardinius it checks whether state desciption contains information/state on block success, right?
20:29 forresta so if you require: \n - file: asdf, then the state for asdf must have succeeded before the other will run
20:29 leonardinius forresta: thanx, it's what I though
20:29 forresta well, the section of the state, however you want to consider it
20:29 forresta basically, require means block B won't execute till block A has worked.
20:29 timoguin Ahlee, do you have to mode set to 0700 in the SLS?
20:29 forresta timoguin, that should be directed at Nazzy
20:29 timoguin whoops
20:30 timoguin Nazzy!
20:30 forresta Nazzy, are you wrapping your perms of 0700 in single quotes?
20:30 Ahlee timoguin: :)
20:30 Ahlee i'm looking at what check_perms does
20:30 Nazzy forresta, timoguin, it looks, specifically, like config.manage_mode isn't doing it's job as I understand it's purpose
20:30 leonardinius forresta: it was confusing as hell for me, since particular state documentation (e.g. service.running) does not explain it and does not point to explanation document.
20:31 leonardinius forresta: tnax a lot for clarifying this
20:31 forresta leonardinius, yea the docs are over at : http://docs.saltstack.com/ref/states/requisites.html
20:31 timoguin Nazzy, do what forresta suggested. 0700 will get passed as the integer 700 if you don't quote it.
20:32 forresta that has some good examples. I'll make an issue to get a note added to that salt.states.service page.
20:32 forresta timoguin, that's not actually correct, when you set the mode value with a leading zero if you don't wrap it in quotes it gets evaluated as an octal :P
20:32 forresta it's dumb
20:32 Nazzy timoguin, forresta actually changing it to 0700 from 700 makes it worse, regardless of quotes
20:33 forresta interesting
20:33 Nazzy I'll try escaping the quotes, in case it's the shell getting involved
20:33 forresta ok
20:33 forresta it might be it doesn't work like file.managed does
20:33 forresta so that might be treated differently
20:33 forresta but yaml should be interpreting it the same way
20:34 leonardinius imo it's something could be improved in current documentation (either by paying attention on this in "walk through" introduction page or pointing out from module docs).
20:34 Nazzy yea, looks like a/ my shell was killing the quotes b/ config.manage_mode is broken
20:35 Nazzy #  `---> salt 'mysql2-my55' config.manage_mode \'0700\'
20:35 Nazzy mysql2-my55:
20:35 Nazzy 700
20:35 Nazzy oh ... right ... it doesn't add a leading 0
20:35 Nazzy wtf
20:35 forresta leonardinius, yea it's sometimes tough to catch all the places where something should be explained more thoroughly, or a link provided.
20:36 Nazzy return str(mode).lstrip('0').zfill(3)
20:36 leonardinius another stupid question, if I would like to give feedback onb current documentation or suggest change... - where should I go - github/salt/salt?
20:36 Ryan_Lane2 joined #salt
20:36 forresta Nazzy, are you sure it isn't just excluding the leading zero
20:36 forresta Nazzy, ahh there we go, was gonna say
20:36 forresta leonardinius, so for your issue I created: https://github.com/saltstack/salt/issues/9810
20:36 Ryan_Lane joined #salt
20:36 Nazzy forresta, it's never going to match then if it's expecting 0700
20:37 forresta leonardinius, you can go to the issues page there and report documentation errors/lacking information.
20:37 forresta Nazzy, you're not gonna hear an argument from me :P
20:37 zzzirk joined #salt
20:38 leonardinius forresta, omg, you guys are awasome. I didn't see it coming <3 Thanks a lot
20:38 forresta leonardinius, that's just the issue I created for it, I'll try to get to it tonight.
20:38 Nazzy forresta, ah, I see what's happened... there was a patch to fix '000' causing weirds, that's what caused it to output three 0s
20:38 forresta Nazzy, ahh that makes sense.
20:39 forresta well, it should match 0700
20:39 Nazzy it strips the leading 0 and then zero fills to 3 places... I'll need to figure out if it actually causes a problem if I change that to 4 places
20:39 forresta cool
20:41 leonardinius forresta, I understand. Nevertheless it takes time to both register the issue, document it etc.. I'm enormously grateful for effort and this kind of attitude in this community / channel.
20:42 Nazzy yea, this should be safe to do
20:42 forresta leonardinius, yea no problem, I like the docs to be as comprehensive as possible.
20:45 narekb left #salt
20:57 gadams999 joined #salt
21:00 zooz joined #salt
21:01 gadams999 joined #salt
21:02 jacksontj joined #salt
21:05 Nazzy *facepalm* well that's a good test
21:05 Nazzy #self.assertEqual(
21:05 Nazzy #    self.run_function('config.manage_mode', ['0775']), '775')
21:05 Nazzy so much is wrong with that
21:08 ndrei joined #salt
21:08 n8n joined #salt
21:09 hunter Nazzy: as long as you're down there, check for bubblesort....
21:10 Nazzy hunter, mmm?
21:12 hunter joke (or attempt at one) on finding "buried treasure" in code sometimes.
21:12 anuvrat joined #salt
21:12 patrek joined #salt
21:13 strgcloud joined #salt
21:18 mgw joined #salt
21:22 Nazzy hunter, ah ... with a code base the size of salt I try not to go looking for things that make me facepalm... I'd be there all year trying to find and fix all of them lol
21:26 JasonSwindle Nazzy:  PRs?
21:26 JasonSwindle one at a time?
21:27 thrashr888 joined #salt
21:27 MedicalJaneParis joined #salt
21:28 UtahDave joined #salt
21:28 ekarlso /win 38
21:28 forresta leonardinius, thanks for the update to that issue, I only read the first few sentences since I'm at work, but I'll review it when I get home and see if there's a better way to lay things out.
21:28 Nazzy JasonSwindle, oh certainly... I do a PR if I have the time to fix something, an issue if I don't... but on pure statistical frequency the number of things to fix is high
21:30 leonardinius forresta, sure. Sorry for being so verbose.
21:31 forresta leonardinius, no worries man, I just don't have time to really analyze it while I'm at work and think about it critically. It will be good for when I get home.
21:32 markm joined #salt
21:34 elfixit1 joined #salt
21:43 sroegner whiteinge: you around?
21:44 whiteinge sroegner: hi
21:44 mgw joined #salt
21:45 sroegner whiteinge: any chance you'd give me write access to the hadoop-formula repo?
21:45 forresta sroegner, is forking on that one screwed up?
21:46 sroegner whiteinge: no, thats ok too
21:46 sroegner whiteinge: you do the merges then?
21:47 forresta sroegner, any of us in the org can approve your merge
21:47 mgw joined #salt
21:47 forresta you just can't approve your own merge :P
21:47 sroegner whiteinge: i'm in the org
21:47 sroegner whiteinge: meaning i can approve my own PR's?
21:48 forresta sroegner, this is forresta, not whiteinge :P
21:48 sroegner :-)
21:48 sroegner hi
21:48 forresta you can't approve your own pull request, just make the PR, and anyone else can merge it as far as I'm aware.
21:49 whiteinge sorry, meat-space conversation was happening here
21:49 sroegner forresta: it's just that i wrote all the code currently in that repo and having to send PRs feels awkward ...
21:51 forresta sroegner, yea I don't think anyone disagrees with that, I think it's more a visibility thing.
21:52 sroegner forresta: np, i'll fork then
21:52 teepark joined #salt
21:52 timoguin sroegner, thanks for that formula, btw. :)
21:52 forresta sroegner, cool!
21:52 sroegner :-) thanks guys
21:53 forresta btw sroegner, I did not put the settings.py stuff into my presentation
21:53 sroegner forresta: aawwww ;-)
21:54 sroegner forresta: i was thinking it might have been too much for what you were trying to say
21:54 forresta sroegner, it's just not used enough currently, and I'm already discussing some stuff that requires working knowledge of Salt, I didn't want to get crazy
21:54 sroegner forresta: absolutely
21:54 forresta Yea, having to go over basic states, and formulas, and the map, and the pillar stuff, it was just too chunky, even though it's well under the time limit
21:56 sroegner forresta: i hope your pres goes well!
21:57 yaru22 joined #salt
21:57 forresta sroegner, Thanks! As long as I don't talk too fast, it should. Though more funny pictures wouldn't hurt..
21:58 sroegner forresta: i always do dry-runs in front of unsuspecting victims
21:58 forresta Yea I've been recording myself giving the talk and playing it back, takes a good chunk of time though.
21:58 forresta but some victims would help...
21:59 sroegner forresta: always
22:03 n8n joined #salt
22:10 kermit joined #salt
22:12 whiteinge sroegner: i'm not opposed to doing that. esp with known users/trusted users such as yourself
22:12 thrashr888 joined #salt
22:13 whiteinge i wouldn't be opposed to doing that for blanket everyone either, if only github had a way to disallow force-pushes :-P
22:14 UtahDave joined #salt
22:15 sroegner whiteinge: my main reason for the request is that hadoop-formula is somewhat of a base piece in our stack
22:15 Marion_ joined #salt
22:15 * whiteinge nods
22:15 whiteinge plus it's your baby
22:16 sroegner whiteinge: right now it is
22:16 faust joined #salt
22:17 sroegner whiteinge: was really hoping to eventually see some more states go in
22:18 Eugene whiteinge - I've had good success with gitolite as the authoritative repo, which mirrors to Github.
22:19 zooz would this be a valid state syntax: http://p.defau.lt/?ikboc3ae4vg8nsyoZszJBg ?
22:19 Eugene Either you grant all perms to a mirroring bot(prevents all forces but shows as MirrorBot rather than RealUser doing the push in Github's feed), or can passthrough via ssh-agent(could bypass and push to Github directly)
22:19 whiteinge Eugene: something like that would be work. really my only concern is that someone will force-push on a formula repo (accidentally or on purpose) and we'll lose history/changes
22:21 Eugene Pffft, man git-reflog ;-)
22:21 sroegner zooz: don't think so
22:22 zooz sroegner, thought so. I am pretty new to salt coming fom other config mgmt systems. SLS syntax seems backwards to me
22:23 JasonSwindle joined #salt
22:23 whiteinge Eugene: we need a github-reflog for those times when you don't have a local clone and there's a force-push :-)
22:24 whiteinge looks like github enterprise can disable force-pushes
22:24 Xiao joined #salt
22:24 whiteinge :-/
22:24 Eugene Ugh enterprise
22:25 sroegner zooz: look at this https://gist.github.com/sroegner/8482801
22:26 sroegner zooz: i came from puppet myself some months ago and i'm not going back
22:26 zooz sroegner, ah that looks better
22:27 zooz sroegner, any particular reasons why not coming back?
22:27 zooz I am using puppet extensively
22:27 gadams999 left #salt
22:27 zooz but I am looking at using salt for my other project
22:27 zooz I used it before, few years ago
22:28 sroegner zooz: in my mind salt is much better equipped to dealing with groups of machines - puppet is node-centric
22:28 zooz sroegner, you mean dependencies between nodes?
22:29 strgcloud joined #salt
22:29 sroegner zooz: in a way
22:30 zooz how would you say: do Z on nodeA only if nodeB has X installed?
22:30 zooz in puppet world that would be very difficult
22:30 sroegner zooz: wouldn't - that sort of thing is a pain in and of itself
22:30 zooz it depends
22:31 sroegner zooz: :-) example for when that is easy?
22:32 zooz it's never easy, that's my point :-)
22:32 zooz and I agree it's not a good idea
22:33 sroegner zooz: what is really easy with salt is stuff like: give me a list of all nodes that will end up running service x
22:34 forresta basepi, what a spammer
22:34 basepi forresta: eh?  o.O
22:34 forresta with your test repo
22:34 basepi forresta: oh, have i been sending a bunch of salt-formulas e-mails or something?
22:34 basepi haha, ya, i was helping seth test some stuff.
22:34 forresta ahh ok
22:35 basepi we were trying to see if "push and pull" rights on a github repo included force push.  which is does.  which is lame.
22:35 druonysuse joined #salt
22:35 zooz joined #salt
22:35 basepi which it* does
22:35 forresta basepi, yea that is lame, I was just reading the messages above
22:36 zooz joined #salt
22:37 drags joined #salt
22:38 gavit joined #salt
22:38 pdayton joined #salt
22:39 scott_w joined #salt
22:39 kalloc joined #salt
22:40 clearclaw When are salt's default grains instantiated for a host?
22:41 hunter One of the formulas on github has a comment about "moving file to reflect formula guilde"
22:41 clearclaw I have what looks like a race condition between salt's creation of default grains, things like grains.ipv4, and a highstate being run by an RCS statefile.
22:41 hunter my google-fu fails to find this formula guide  - is it public? It would help this new user
22:43 clearclaw Specifically I have a state which has a cloud.profile to build/create a box, and then a salt.state...highstate:True  to highstte the box just created and the highstate is failing with a jinja render error on grains.ipv4 not having an element 0!
22:43 clearclaw But it has an element 0 if I do a grains.items...
22:46 yomilk joined #salt
22:53 bemehow joined #salt
22:57 leonardinius joined #salt
22:58 maxskew joined #salt
23:02 ndrei joined #salt
23:05 rjc joined #salt
23:07 fllr joined #salt
23:09 Ryan_Lane2 joined #salt
23:17 ndrei joined #salt
23:19 sroegner whiteinge: thx btw - just noticed the emails
23:20 whiteinge np!
23:21 jacksontj terminalmage: UtahDave https://github.com/saltstack/salt/pull/9820
23:21 jacksontj fixed the yumpkg5 slowness :)
23:21 jacksontj so my next pull req will be removing yumpkg since my performance problems are now fixed
23:21 simonmcc joined #salt
23:22 hunter can we keep the old name?
23:22 oz_akan_ joined #salt
23:23 terminalmage jacksontj: on one hand, I just refactored yumpkg a lot
23:23 terminalmage so grr argh
23:23 Gifflen joined #salt
23:23 terminalmage on the other hand, halle-fricken-lujah
23:23 terminalmage :D
23:24 UtahDave :)
23:24 UtahDave nice, jacksontj!
23:24 terminalmage jacksontj: I need you to make a small change to that
23:24 Gifflen joined #salt
23:24 terminalmage that pull req
23:24 hunter is there a small rundown of the differences?
23:24 terminalmage see how the other cmd.run instances there have that output_loglevel thing?
23:25 terminalmage that keeps the output from this command at loglevel debug, cleans up the minion log considerably
23:25 Gordonz joined #salt
23:25 terminalmage output_loglevel is new in 2014.1 and develop
23:25 terminalmage I added it a few weeks ago
23:26 Gordonz joined #salt
23:27 jacksontj terminalmage: k, i'll do that :)
23:27 terminalmage jacksontj: cool. also, one other thing
23:28 terminalmage I write a repoquery helper function
23:28 hunter I know I'm new and it wasn't my decisoin but I have to say - I really dislike the proposed versioning for salt.
23:28 terminalmage jacksontj: you should change the repoquery call actuall to use the helper function
23:28 terminalmage instead of cmd.run
23:28 jacksontj ah, nice
23:29 terminalmage jacksontj: function is called _repoquery()
23:29 terminalmage you just pass it the additonal args and it runs repoquery and returns a list of namedtuples
23:29 terminalmage makes iterating through query results simple and clean
23:29 Tekni joined #salt
23:30 terminalmage jacksontj: if this is all a bit much, I am happy to make the changes and submit a pull to your fork
23:30 terminalmage since I wrote this stuff and am more familiar with uit
23:30 terminalmage *it
23:30 n8n joined #salt
23:30 jacksontj its fine, i got some time :)
23:30 terminalmage but it should be pretty straightforward, nothing you can't handle I don't think :)
23:31 terminalmage thanks again for taking a look at this
23:31 jacksontj np
23:31 hunter http://semver.org/ is your friend - and mine. :)
23:31 jacksontj had lots of time now that my deploys were taking soo long ;)
23:31 forresta hunter, yea there have been a lot of differing opinions regarding the naming scheme.
23:32 hunter I know and I hate to kvetch about a useful tool when I'm not writing it but - we REALLY don't need new versioning schemes. We really don't.
23:34 mgw1 joined #salt
23:36 jacksontj terminalmage: so, the return is a list of tuples which is going to slow this down a bit :/ i'm going to finish and see how much of a hit it'll be
23:38 terminalmage jacksontj: ok... if it's that much of a performance hit, don't bother
23:38 terminalmage performance wins over ease of iteration
23:38 jacksontj it doubled from 8s to 18s
23:38 terminalmage yeah, don't worry then. just add output_loglevel=debug to the cmd.run
23:38 jacksontj could abstract repoquery to return the cmd
23:39 jacksontj then just have another func for parsing
23:39 jacksontj let me do that :)
23:39 kalloc joined #salt
23:40 gavit_ joined #salt
23:41 pdayton joined #salt
23:41 gavit__ joined #salt
23:46 terminalmage jacksontj: cool
23:46 jacksontj there, just pushed it
23:46 jacksontj thats still ~9.4s in my test case
23:46 jacksontj ;)
23:49 terminalmage very nice
23:51 terminalmage jacksontj: ahh, see you already corrected the plint violation
23:52 terminalmage s/plint/pylint/
23:52 jacksontj :)
23:56 jacksontj once thats in i'm going to submit one to re-remove my old yumpkg module :(
23:57 jacksontj s/:( / ;)
23:58 thrashr888 joined #salt

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