Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-07-09

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

All times shown according to UTC.

Time Nick Message
00:02 whit joined #salt
00:04 emocakes joined #salt
00:08 aat joined #salt
00:08 spicyWith joined #salt
00:11 rbstewart How could I summarize just the errors of salt/salt-run output to the terminal?
00:12 ydavid joined #salt
00:12 exw joined #salt
00:13 przmtq joined #salt
00:14 jaequery joined #salt
00:15 UtahDave rbstewart: there are 2 options in the master config that will help.  One will cause just errors to be reported and the other will cause less verbose output.
00:15 UtahDave I'm heading home, but if you look through the commented out options in your master config you should be able to find them, rbstewart
00:16 rbstewart UtahDave: :) thank you kindly
00:16 UtahDave you're welcome!  I'll be back on tomorrow if you still need help with that.
00:16 bfrog how would I set selinux file attributes with salt?
00:17 bfrog want to set the type in particular of a directory
00:17 bfrog I guess its not a feature yet, https://github.com/saltstack/salt/issues/1349
00:17 bfrog doh
00:17 aat joined #salt
00:17 bfrog cmd.run time
00:21 jbunting joined #salt
00:22 atweiden UtahDave: specified the master's hostname in /etc/salt/minion, on the master host. I no longer get the previous error, but no results are returned
00:22 atweiden when run test.ping
00:23 rbstewart atweiden: are you running master/minion on the same box?
00:23 atweiden rbstewart: i'm trying to connect from Host A to Host B (digital ocean)
00:23 atweiden remote --> remote
00:24 rbstewart atweiden: have you accepted the minion's key?
00:24 atweiden it's weird because during setup salt retrieves the date just fine from the other remote host
00:24 atweiden yes
00:25 emocakes i want to have minions in my basement
00:25 emocakes with me, their master, controlling them
00:29 loolglool joined #salt
00:30 bhosmer joined #salt
00:31 rbstewart atweiden: what does "salt-run manage.status" tell you about the minion?
00:33 ahammond UtahDave any word on when 0.17.0 will be out?
00:36 atweiden rbstewart: says it's down
00:38 rbstewart atweiden: what does /var/log/salt/minion tell you?
00:38 atweiden file doesn't exist
00:41 rbstewart atweiden: try stopping the minion process, then running from the command line with logging set to info or debug
00:42 rbstewart (something like "sudo salt-minion -l debug")
00:43 atweiden rbstewart: to be clear, was I supposed to be running a separate minion process on the master host?
00:43 Gwayne joined #salt
00:43 Gwayne joined #salt
00:44 atweiden i've been running salt-cloud --profile profile ak
00:45 atweiden which i assume sets up the digital ocean box
00:45 atweiden it automatically accepts digital ocean box key on the master host
00:45 rbstewart atweiden: no, usually the master runs on box A, and the minion on box B
00:45 atweiden it successfully retrieves the date from digital ocean when setting up DO
00:45 atweiden but once it's done setting up, i can't retrieve anything
00:46 rbstewart Do you have ssh access to the minion?
00:46 atweiden yes
00:46 rbstewart ok, get in there, and try checking the logs/output there.
00:49 teskew1 joined #salt
00:50 atweiden rbstewart: salt doesn't appear to be installed on the minion; where should i be looking exactly?
00:51 rbstewart depends on the system; debian based is usually has configs in /etc/salt, logs in /var/log/salt
00:53 atweiden arch too
00:53 atweiden nothing
00:54 atweiden during setup "[INFO    ] Salt installed on ak"
00:55 atweiden is anyone else using salt-cloud on arch?
00:57 oz_akan_ joined #salt
01:11 raydeo joined #salt
01:22 ydavid joined #salt
01:24 liuyq joined #salt
01:25 liuyq joined #salt
01:37 joonas so
01:38 joonas what's the canonical way to install pip/easy_install?
01:38 joonas and virtualenv?
01:38 joonas pip and then virtualenv?
01:40 ydavid joined #salt
01:43 Jahkeup_ joined #salt
01:44 fxhp can a state label have multiple of the same type of function call?
01:45 fxhp for example /etc/motd: file: - sed ... file: - sed ?
01:46 auser fxhp: no :/
01:46 fxhp bummer
01:46 fxhp I think I knew that already
01:47 Gifflen joined #salt
01:50 whit joined #salt
01:58 diegows joined #salt
02:00 nrub joined #salt
02:01 Nexpro1 joined #salt
02:07 glenbot joined #salt
02:16 druonysus joined #salt
02:16 druonysus joined #salt
02:22 _jayd3e joined #salt
02:24 StDiluted joined #salt
02:25 StDiluted evening
02:28 mgw joined #salt
02:30 Gifflen joined #salt
02:34 Corey If I have a state file on my master, how can I invoke that on my minion without state.highstate? Assume I have dingus.sls defined, how do I apply just that state?
02:35 bauser joined #salt
02:43 bauser joined #salt
02:44 StDiluted salt 'minionid' state.dingus
02:44 StDiluted welcome back auser
02:44 StDiluted woo, raining here!
02:44 auser Thanks
02:45 StDiluted hm, getting a weird error trying to run a script
02:45 StDiluted TypeError: coercing to Unicode: need string or buffer, dict found
02:46 mgw StDiluted, Corey: I think it's salt 'minionid' state.sls dingus
02:46 StDiluted ah, yes indeed
02:46 StDiluted sorry, my bad
02:47 joonas is there an official dashboard for salt stack?
02:47 StDiluted or salt 'minionid' state.single dingus
02:47 StDiluted if you just want the one
02:48 StDiluted joonas, dashboard in what way?
02:48 joonas StDiluted: well, a dashboard that shows you what's up :)
02:49 dthom91 joined #salt
02:49 StDiluted there is: https://github.com/saltstack/salt-ui
02:49 StDiluted i dunno if that's what you want
02:49 joonas ah
02:49 Corey mgw: Sweet, salt-call state.sls path.to.dingus
02:49 joonas no screenshots makes me sad
02:49 StDiluted pre-alpha, joonas
02:49 joonas !
02:49 joonas alpha or not :)
02:50 joonas anyway
02:50 StDiluted why do you need a guy?
02:50 joonas I guess I could just install it and look
02:50 StDiluted gui*
02:50 joonas StDiluted: I don't, but I think they are fun to have
02:50 StDiluted oh
02:50 joonas manager types prefer to look at those
02:50 joonas over command line
02:50 StDiluted nothing to look at really
02:50 joonas I suppose not
02:51 joonas anyway, never mind me :)
02:51 StDiluted salt '*' state.highstate == fully configured environment, voila
02:51 StDiluted or at least that's the goal ;)
02:52 mgw joined #salt
02:52 jbunting joined #salt
02:55 StDiluted Anyone have any idea on my error?
02:59 fllr joined #salt
02:59 fllr How do I install virtualenvwrapper using salt?
03:00 StDiluted https://gist.github.com/dginther/5954357
03:00 StDiluted anyone assist with a  stack trace?
03:02 auser StDiluted: thanks (sorry, missed your message before)
03:02 auser can you paste that state?
03:03 StDiluted sure
03:03 auser the cmd: /tmp/SumoCollector_linux_amd64_19_47-5.sh state
03:04 StDiluted added to the gist
03:04 StDiluted filr: looks like virtualenvwrapper uses pip to install
03:04 Ivo joined #salt
03:05 StDiluted so you could just do
03:05 StDiluted virtualenvwrapper:
03:05 StDiluted pip.installed
03:06 StDiluted oops. fllr ^^
03:06 LarsN joined #salt
03:07 oz_akan_ joined #salt
03:07 StDiluted auser: I have the .sh file managed and mode 744, fyi
03:07 auser that's okay
03:07 auser sec
03:08 auser ahh
03:08 auser try this: https://gist.github.com/auser/5954380
03:10 StDiluted same error after modifying that line
03:13 StDiluted I think that is the issue though
03:13 StDiluted the unless
03:14 StDiluted oh i know why
03:14 StDiluted unless is a command to run
03:14 StDiluted not a true fale
03:14 StDiluted false
03:18 auser yep
03:18 auser oh yes, I didn't actually ready it
03:18 auser read*
03:18 auser just saw that error
03:18 auser I use
03:18 auser - test -d /opt/SumoCollector
03:18 StDiluted unless: [ -d /opt/SumoCollector ] works
03:20 auser yep
03:20 auser nice
03:21 StDiluted ah cool, I think it worked like I wanted this time
03:21 StDiluted the sumo logic collector is a little hinky
03:21 auser nice
03:21 auser sorry I led you astray
03:21 auser a bit distracted
03:21 StDiluted waiting on high state return
03:21 StDiluted no, not at all
03:22 StDiluted you pointed me int he right dir
03:22 StDiluted better i should find the exact thing myself
03:22 auser I'm working on the post for you, btw
03:23 StDiluted nice, I am looking forward to reading it
03:24 raydeo joined #salt
03:24 StDiluted hrm power just blipped here
03:25 auser it's raining right?
03:25 auser where are you anyway
03:25 StDiluted New Mexico
03:25 StDiluted it just finished raining
03:25 auser ah
03:25 StDiluted now thuner and lightning receding
03:25 StDiluted thunder*
03:30 UtahDave joined #salt
03:46 auser sounds like fun StDiluted
03:46 StDiluted I'm glad we've been getting some rain. We have needed it badly
03:55 jacksontj joined #salt
03:56 bluemoon joined #salt
03:57 mgw joined #salt
03:58 jacksontj_ joined #salt
04:07 dthom91 joined #salt
04:24 oz_akan_ joined #salt
04:30 bluemoon joined #salt
04:32 auser UtahDave: hey… have you ever seen this error: TypeError: getaddrinfo() argument 1 must be string or None from within the dns_check method?
04:33 UtahDave auser: i haven't. Do you get that when you restart the minion?
04:33 auser no, when running salt-call
04:35 efixit joined #salt
04:35 UtahDave auser: does that minion have a master? Or are you in standalone mode?
04:36 auser ahh
04:36 auser that's the problem
04:36 auser thanks
04:36 UtahDave cool
04:37 auser bad config (changed around my salt state)
04:37 auser doh!
04:39 UtahDave :)
04:45 rapaul joined #salt
04:48 raydeo joined #salt
04:49 Katafalkas joined #salt
04:53 carmony joined #salt
04:56 Gifflen joined #salt
04:59 raydeo joined #salt
05:16 kleinishere joined #salt
05:19 raydeo joined #salt
05:24 kolaman joined #salt
05:24 oz_akan_ joined #salt
05:28 knightsamar joined #salt
05:30 agend joined #salt
05:36 linjan__ joined #salt
05:38 mgw joined #salt
05:40 jkleckner joined #salt
05:48 Jahkeup_ joined #salt
05:53 auser joined #salt
06:08 dthom91 joined #salt
06:08 kleinishere joined #salt
06:11 kstaken joined #salt
06:25 unicoletti_ joined #salt
06:27 SpX joined #salt
06:30 oliv_mc joined #salt
06:38 jkleckner joined #salt
06:40 Ivo joined #salt
06:43 aranhoide joined #salt
07:01 ollins joined #salt
07:03 abele joined #salt
07:11 FL1SK joined #salt
07:15 bemehow joined #salt
07:17 kstaken joined #salt
07:18 Newt[cz] joined #salt
07:18 waverider joined #salt
07:28 balboah joined #salt
07:30 ydavid joined #salt
07:35 eculver joined #salt
07:41 ageron joined #salt
07:46 eculver_ joined #salt
07:51 scott_w joined #salt
07:53 ageron joined #salt
08:00 felixhummel joined #salt
08:08 efixit joined #salt
08:13 kleinishere joined #salt
08:25 lbotti joined #salt
08:25 emocakes joined #salt
08:29 zooz joined #salt
08:29 isomorphic joined #salt
08:42 fredvd joined #salt
08:53 MrTango joined #salt
09:00 mickours joined #salt
09:01 sdpnda joined #salt
09:02 kallek_ joined #salt
09:03 fivethreeo joined #salt
09:03 rlb` joined #salt
09:06 Sacro_ joined #salt
09:07 robawt1 joined #salt
09:09 SpX joined #salt
09:09 isomorphic joined #salt
09:13 bfrog joined #salt
09:13 pnl joined #salt
09:13 flurick joined #salt
09:13 gwar9999 joined #salt
09:13 lahwran joined #salt
09:13 robinsmidsrod joined #salt
09:13 FreeSpencer joined #salt
09:13 APLU joined #salt
09:13 tethra joined #salt
09:13 cbdev joined #salt
09:13 erasmas joined #salt
09:13 Gareth joined #salt
09:13 mjulian joined #salt
09:13 travisfischer joined #salt
09:13 jafo joined #salt
09:13 s0undt3ch joined #salt
09:13 majoh joined #salt
09:13 sashka joined #salt
09:13 balltongu joined #salt
09:13 mackstick joined #salt
09:13 mirrorbox joined #salt
09:13 rsimpkins joined #salt
09:13 kula joined #salt
09:13 Kyle joined #salt
09:13 Guest76948 joined #salt
09:13 seb` joined #salt
09:13 omame joined #salt
09:13 crashmag joined #salt
09:13 EntropyWorks joined #salt
09:13 jlaffaye joined #salt
09:14 middleman_ joined #salt
09:15 timoguin joined #salt
09:15 nage joined #salt
09:15 luminous_ joined #salt
09:15 tamentis joined #salt
09:15 scott_w joined #salt
09:15 ydavid joined #salt
09:15 bemehow joined #salt
09:15 oliv_mc joined #salt
09:15 unicoletti joined #salt
09:15 linjan__ joined #salt
09:15 knightsamar joined #salt
09:15 glenbot joined #salt
09:15 Nexpro1 joined #salt
09:15 nrub joined #salt
09:15 liuyq joined #salt
09:15 tpe11etier joined #salt
09:15 jeddi joined #salt
09:15 ninkotech joined #salt
09:15 xerxas joined #salt
09:15 neilf joined #salt
09:15 jspc joined #salt
09:15 tseNkiN joined #salt
09:15 Furao joined #salt
09:15 xinkeT joined #salt
09:15 marcinkuzminski joined #salt
09:15 Viaken joined #salt
09:15 EWDurbin joined #salt
09:15 alekibango_ joined #salt
09:15 copec joined #salt
09:15 Koma joined #salt
09:15 Psi-Jack joined #salt
09:15 fxhp joined #salt
09:15 kermit joined #salt
09:15 MK_FG joined #salt
09:15 bejer joined #salt
09:15 philpep joined #salt
09:15 quantumsummers|c joined #salt
09:15 goodwill joined #salt
09:15 ek6 joined #salt
09:15 Heartsbane joined #salt
09:15 blast_hardcheese joined #salt
09:15 axisys joined #salt
09:15 kvbik joined #salt
09:15 __number5__ joined #salt
09:15 jpcw joined #salt
09:15 sciyoshi joined #salt
09:15 Nitron joined #salt
09:15 akshayms_ joined #salt
09:15 mordred joined #salt
09:15 mattikus` joined #salt
09:15 keith4 joined #salt
09:15 spoktor_ joined #salt
09:15 coolj_ joined #salt
09:15 Micromus1 joined #salt
09:15 gmoro_ joined #salt
09:15 a1j joined #salt
09:15 txmoose joined #salt
09:15 jeblair joined #salt
09:15 cluther_ joined #salt
09:15 ahammond joined #salt
09:15 t0rrant joined #salt
09:15 basepi joined #salt
09:15 jY joined #salt
09:15 cbloss joined #salt
09:15 jphall joined #salt
09:15 karlp joined #salt
09:17 marcinkuzminski joined #salt
09:17 p3rror joined #salt
09:19 emocakes joined #salt
09:22 azbarcea joined #salt
09:22 az87c joined #salt
09:26 vmdsch joined #salt
09:27 blast_hardcheese joined #salt
09:27 karlp joined #salt
09:28 whiskybar joined #salt
09:32 bemehow joined #salt
09:42 yota joined #salt
09:42 liuyq joined #salt
09:43 scott_w joined #salt
09:55 Valio joined #salt
10:06 bluemoon joined #salt
10:07 efixit joined #salt
10:08 krak3n` joined #salt
10:14 uta joined #salt
10:16 giantlock joined #salt
10:27 krissaxton joined #salt
10:29 uta joined #salt
10:30 oz_akan_ joined #salt
10:33 kiorky hi, im trying to resolve my problem, see https://github.com/saltstack/salt/issues/6024
10:33 aranhoide joined #salt
10:33 kiorky what i find confusing is that for me the syndic read the master connfig isnt it ?
10:34 kiorky but, inside pdb i see references of params set in my minion config
10:38 ggoZ joined #salt
10:46 mikedawson joined #salt
10:51 Xeago joined #salt
11:03 jbunting joined #salt
11:07 zloidemon joined #salt
11:12 Ivo joined #salt
11:19 z3uS joined #salt
11:20 SpX joined #salt
11:25 oz_akan_ joined #salt
11:34 scott_w joined #salt
11:43 Tekni joined #salt
11:45 tomas_ joined #salt
11:57 Xeago joined #salt
11:58 lemao joined #salt
11:59 bemehow joined #salt
11:59 david_a joined #salt
12:02 waverider left #salt
12:04 LucasCozy joined #salt
12:04 LucasCozy joined #salt
12:07 whiskybar joined #salt
12:08 kmrhb joined #salt
12:11 logix812 joined #salt
12:11 dthom91 joined #salt
12:13 xerxas joined #salt
12:16 jslatts joined #salt
12:18 emocakes joined #salt
12:24 lempa joined #salt
12:24 luminous_ joined #salt
12:25 scott_w joined #salt
12:34 HaxCore joined #salt
12:34 aat joined #salt
12:37 bemehow joined #salt
12:38 p3rror joined #salt
12:40 mikedawson joined #salt
12:43 mikedawson joined #salt
12:48 diegows joined #salt
12:48 rigdon Using salt 0.15.3 on CentOS. Is there a way to specify a yum groupinstall inside an SLS file? I found the page on calling modules from states, but it's use is not entirely clear to me. Thanks in advance.
12:48 rigdon Basically the state equivalent of `salt "*" pkg.group_install "Development Tools"`
12:52 Furao pkg.install names
12:53 Furao for multiple pkg
12:53 emocakes_ joined #salt
12:54 unicoletti rigdon: I don't think it's supported. But you can always run yum groupinstall "Development Tools" as a cmd script
12:58 juicer2 joined #salt
12:59 oz_akan_ joined #salt
13:00 glenbot joined #salt
13:00 m_george|away joined #salt
13:01 jonconley joined #salt
13:01 Corey rigdon: I'd get a list of packages and use pkg.install
13:03 m_george left #salt
13:05 Gifflen joined #salt
13:07 aat joined #salt
13:08 ipmb joined #salt
13:08 KennethWilke joined #salt
13:09 mgw joined #salt
13:10 LyndsySimon joined #salt
13:10 timoguin_work joined #salt
13:12 Xeago joined #salt
13:14 clone1018 whiteinge: Hey
13:16 clone1018 whiteinge: https://gist.github.com/clone1018/934640333f8fc0c7baf1
13:17 adeduke joined #salt
13:18 adeduke are there any docs on multiple 'source' items? Or source fall through, how ever its called
13:20 Kholloway joined #salt
13:25 blee joined #salt
13:26 anteaya joined #salt
13:28 toastedpenguin joined #salt
13:29 tpe11etier joined #salt
13:31 middleman_ joined #salt
13:32 jkleckner joined #salt
13:42 Jahkeup_ joined #salt
13:43 racooper joined #salt
13:44 teskew1 joined #salt
13:45 balboah joined #salt
13:46 kmrhb joined #salt
13:48 jeddi adeduke: they're documented in file.managed, i think.
13:48 jeddi adeduke: what are you getting stuck on ?
13:49 aat joined #salt
13:50 jeddi adeduke: a simple example from my base/files.sls  -->  http://rn0.ru/show/DB4r2FaZ47Q6cNhizsrq/
13:51 jeddi though often my ultimate source: file .. I now append the '.DEFAULT' string to so it really stands out.
13:52 adeduke jeddi: ty thats what I was looking for
13:52 adeduke wasn't sure of the syntax
13:53 jeddi adeduke: https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.file.html  second example (grey box)
13:54 adeduke ahh perfect
13:54 adeduke I thought it must be somewhere in the docs as it was added a while back, the readthedocs search isnt the best
13:54 adeduke then again wasnt sure the terminology
13:54 adeduke on the*
13:54 whit joined #salt
13:57 tempspace Hey, is there a reason the Debian packages don't automatically turn on salt-minion to start at boot?
13:58 Katafalkas joined #salt
13:59 blee_ joined #salt
14:00 linjan_ joined #salt
14:01 oz_akan_ joined #salt
14:02 jeddi tempspace: they don't?   what version of debian?  what version of salt-minion?
14:02 tempspace Wheezy, 0.16.0
14:02 jeddi tempspace: and how do they disable it?
14:03 jeddi i don't think there's a simple switch in /etc/default  - the init.d scripts are in situ on all my wheezy, squeeze and sid boxes.
14:03 tempspace and Squeeze actually
14:03 jeddi though i've only been using 0.15.x so far.  i can't imagine they'd change the default on 0.16 however.
14:03 tempspace they're just not in the rc?.d's
14:03 jeddi is that bootstrapped?
14:03 jeddi and dpkg.log indicates that the package installed properly?
14:03 jeddi dpkg -l | grep salt-minion -- the package is 'ii' ?
14:04 tempspace yep
14:04 jeddi weird.   and using bootstrap, yes?
14:05 tempspace with and without
14:05 jeddi i should crank up a .16 release sometime this afternoon, in any case, but i don't have something here right now i can compare and test.
14:06 efixit joined #salt
14:09 hazzadous joined #salt
14:16 aat joined #salt
14:16 opapo joined #salt
14:17 kaptk2 joined #salt
14:20 [ilin]- joined #salt
14:20 [ilin] joined #salt
14:20 defunctzombie_zz joined #salt
14:21 cloq joined #salt
14:23 fllr joined #salt
14:24 kho joined #salt
14:25 twiedenbein joined #salt
14:26 kho joined #salt
14:26 kermit joined #salt
14:28 kermit joined #salt
14:29 nrub joined #salt
14:39 akonradi2 joined #salt
14:39 akonradi2 left #salt
14:40 akonradi joined #salt
14:42 whit joined #salt
14:45 kleinishere joined #salt
14:47 teskew joined #salt
14:51 timoguin_work pillar data can use gitfs, right?
14:53 Furao timoguin_work: yes but not released yet
14:54 timoguin_work Furao, https://github.com/saltstack/salt/issues/3745
14:54 timoguin_work looks like thomas said to cherry-pick for 0.16
14:56 timoguin_work ah, closed as a duplicate
14:57 ckrough joined #salt
14:57 bluemoon joined #salt
14:57 brianhicks joined #salt
14:58 carmony joined #salt
14:58 jpadilla joined #salt
14:58 kleinishere joined #salt
14:58 StDiluted joined #salt
15:01 lbotti_ joined #salt
15:03 shiznit joined #salt
15:05 kleinishere joined #salt
15:05 timoguin_work I had gitfs working on the master until a few minutes ago when I changed the name/url for the repo
15:06 timoguin_work I updated the master conf appropriately, but now getting this error:
15:06 timoguin_work [ERROR   ] Exception 'Error when fetching: fatal: The remote end hung up unexpectedly' returned exit status 2: None occurred in file server update
15:06 timoguin_work when i try to run highstate i get a traceback
15:06 shiznit joined #salt
15:09 Bastion2202 joined #salt
15:09 jalbretsen joined #salt
15:10 shiznit joined #salt
15:11 nage joined #salt
15:11 loolglool1 joined #salt
15:12 shiznit joined #salt
15:13 shiznit joined #salt
15:13 timoguin_work anyone know where the master caches gitfs to? thinking i can maybe delete the cached version to fix this
15:14 Xeago_ joined #salt
15:16 timl0101 joined #salt
15:16 shiznit joined #salt
15:17 KennethWilke timoguin: i think it's in /var/cache/salt
15:18 kleinishere joined #salt
15:18 timoguin_work it is indeed. i deleted /var/cache/salt/gitfs
15:18 timoguin_work fixed the problem after i restarted the minion
15:18 KennethWilke yeah i get impatient with gitfs sometimes
15:18 KennethWilke s/sometimes/often/
15:19 timoguin_work my problem was that i renamed the source repo, but salt master was still trying to pull from the URL that was cached
15:19 shiznit joined #salt
15:19 KennethWilke yeah i think i've done the same before when i was initially setting it up
15:22 shiznit joined #salt
15:22 baniir joined #salt
15:23 Jahkeup_ joined #salt
15:25 shiznit left #salt
15:27 ckao joined #salt
15:27 conan_the_destro joined #salt
15:30 bluemoon joined #salt
15:30 Kholloway joined #salt
15:33 chadhs joined #salt
15:35 jschadlick joined #salt
15:36 LucasCozy joined #salt
15:36 LucasCozy joined #salt
15:39 jbunting joined #salt
15:40 unicoletti left #salt
15:42 robawt joined #salt
15:42 druonysus joined #salt
15:42 druonysus joined #salt
15:43 Bastion2202 hey guys,
15:43 Bastion2202 is it possible to run a state in serie instead of in // ?
15:44 Bastion2202 we need to restate a service after upgrade one at a time instead of all of them at the same time
15:45 akoumjian Bastion2202: If the services are on the same machine, you can use require statements. If you are talking about orchestration between machines, you probably want to look up overstate
15:46 efixit joined #salt
15:47 Bastion2202 akoumjian: tx, I will look ad the overstate doc
15:48 Corey Good morning.
15:48 Corey Is there an existing state to manange named, or do I get to write my own?
15:50 jbunting joined #salt
15:51 bluemoon joined #salt
15:51 baniir joined #salt
15:53 robbyt joined #salt
15:53 StDiluted salt-cloud question: Is there a way outside the config file to change the security group of the instance when launching it?
15:57 dthom91 joined #salt
15:59 chrisgilmerproj joined #salt
16:00 JasonSwindle joined #salt
16:00 chrisgilmerproj joined #salt
16:06 jdenning joined #salt
16:10 whit joined #salt
16:10 StDiluted or do i need to set up separate profiles
16:10 StDiluted looks like that's the solution
16:11 thingles joined #salt
16:12 druonysuse joined #salt
16:12 druonysuse joined #salt
16:13 defunctzombie joined #salt
16:16 jschadlick Has anyone had any memory leak issues on the master when running schedules?
16:19 koolhead17 joined #salt
16:19 koolhead17 joined #salt
16:22 UtahDave joined #salt
16:23 vmdsch joined #salt
16:23 KyleG joined #salt
16:25 LyndsySimon joined #salt
16:28 efixit joined #salt
16:35 oz_akan_ joined #salt
16:35 dthom91 joined #salt
16:40 whit joined #salt
16:41 kmrhb joined #salt
16:44 mgw joined #salt
16:45 aranhoide joined #salt
16:47 StDiluted hey there UtahDave
16:47 UtahDave hey, StDiluted!
16:48 oz_akan_ joined #salt
16:49 adeduke left #salt
16:52 conan_the_destro joined #salt
16:53 conan_the_destro joined #salt
16:53 fridder joined #salt
16:58 LyndsySimon joined #salt
17:00 sashka_ua UtahDave: Is there release notes for 0.16.0 ?
17:00 sashka_ua just a chance if you know
17:00 UtahDave sashka_ua: yep!  http://docs.saltstack.com/topics/releases/0.16.0.html
17:00 Katafalkas joined #salt
17:00 felixhummel joined #salt
17:00 sashka left #salt
17:01 sashka_ua UtahDave: uh. Im sorry, bothering you with obvious stuff, I should know that
17:01 UtahDave that's no problem, sashka_ua
17:03 pkimber joined #salt
17:06 Jahkeup_ joined #salt
17:08 baniir joined #salt
17:10 jkleckner joined #salt
17:12 jeddi you're allowed to bother UtahDave with 99 dumb questions  before he gets tetchy.  reminds me .. I need to set up a new IRC nick soon.
17:13 JasonSwindle lol
17:14 morganfainberg left #salt
17:14 morganfainberg joined #salt
17:15 UtahDave lol
17:15 bfrog :q
17:16 chadhs can you target a node group via jinja?
17:16 StDiluted so I have a file /srv/pillar/roles/web.sls and it has some definitions in it. I'm getting an error: - Specified SLS roles.web in environment web is not available on the salt master
17:17 KyleG Did anything change in 0.15.3 or recently affecting environmental variables? I have PYTHON_EGG_CACHE set in my rc.d script, but salt-call inherits the environmental variables of the user not the ones I need. This used to work without issue, so I'm just not sure if anything changed on the salt end.
17:17 StDiluted shouldn't roles/web.sls map to roles.web?
17:19 Bastion2202 joined #salt
17:21 UtahDave StDiluted: yeah, it should. Is your yaml malformed?
17:21 StDiluted checking
17:23 StDiluted maybe because i need another pillar root for a 'web' environment?
17:24 ydavid joined #salt
17:24 UtahDave KyleG: A while back there were some updates to how Salt works with environment variables. I'm not sure what's going on in your case
17:24 z3uS joined #salt
17:24 StDiluted I'm having trouble grokking the environments concepts
17:25 UtahDave KyleG: Open up an issue on this and include as much detail as you can on what used to work and the behavior you're seeing now
17:25 KyleG for sure, i'll confirm some things first
17:25 KyleG I think my developers may be trying to do more things than they should be :)
17:25 KyleG Time to get out the no-hammer
17:25 UtahDave StDiluted: can you pastebin you web.sls?
17:25 UtahDave :)  ha ha
17:28 StDiluted UtahDave: https://gist.github.com/dginther/5959352
17:28 chadhs The seemingly simple thing I have yet to conquer & implement is managing a conf file and sending a different version based on a role or nodegroup etc
17:29 StDiluted same, chad
17:29 StDiluted having trouble wrapping my head around how best to do it
17:30 chadhs here's an example https://gist.github.com/chadhs/0ef0a81ef3fcb8ea2622
17:31 chadhs it would work with roles grains i can push to any minion but if the default build does not have that grain you get that big error
17:31 chadhs im guessing the same would be true of targeting with nodegroups
17:32 UtahDave StDiluted: have you run  salt \* saltutil.refresh_pillar     ?
17:32 StDiluted yes, UtahDave
17:32 UtahDave chadhs: you just need to add a default in there.
17:32 chadhs i wonder if using jinja i can say "if grain roles has a value then use role-file.conf else use default"
17:33 chadhs UtahDave so if i assign a roles grain i need all minions to have that grain and have a default role essentially
17:33 StDiluted UtahDave: I think it's something to do with 'web' being a separate environment, and I dont have environments properly set up
17:33 rsimpkins chadhs: That is what I do. :)
17:33 UtahDave chadhs: {{ salt['grains.get']('nodename', 'default value') }}
17:34 rsimpkins ^^ better even.
17:34 UtahDave StDiluted: do you really need separate environments at this point?  You seem to be controlling things based of your node name anyway.
17:34 StDiluted I'm trying to figure out how to use EC2 tags as role definitions, but it's making me crazy
17:34 chadhs rsimpkins, UtahDave, yeah i'd like to try and not have to push roles to all boxen.
17:34 chadhs UtahDave, interesting… thnx
17:34 StDiluted UtahDave: I would prefer to use environments, I need to figure it out, because that's how things are set up here
17:35 kiorky is there anyone running syndiced setup here ?
17:35 StDiluted we have staging, beta, etc, environments, and then we have roles inside those environments.
17:35 UtahDave StDiluted: do you have a file_roots set up for your web environment?
17:35 kiorky hard toi believe to have no answer in 4 days :(
17:35 StDiluted I'm struggling with how to set this up
17:35 StDiluted kiorky: I'm not, sorry
17:35 UtahDave kiorky: what's going on?
17:35 kiorky Well i trying to start to use salt
17:35 StDiluted UtahDave: I've tried setting up separate roots
17:36 cron0 joined #salt
17:36 kiorky basically i have a grand master one master, one syndic at this level,  and then  on minon
17:36 UtahDave kiorky: ok
17:36 kiorky Now, when i run a ping on the master, it runs successfully
17:37 kiorky But not on grandfather
17:37 kiorky i had to ack the keyson both master, i did
17:37 UtahDave what version of Salt are you on?
17:37 StDiluted but I think environments should be more like 'beta' 'staging' 'critical' 'sandbox'
17:37 kiorky lastest ubuntu ppa
17:37 StDiluted and then roles should be inside those
17:37 UtahDave StDiluted: ok, you can do that.
17:37 kiorky UtahDave: did you saw https://github.com/saltstack/salt/issues/6024
17:37 kiorky its me
17:37 kermit joined #salt
17:38 UtahDave you just have to set up your environment's file_roots.  Did you configure your file_roots for your web environment?  That's probably why it can't fine your web.sls
17:38 kiorky UtahDave: due to the setup, syndic and master run on the same box, but listen on diffeent interface
17:38 UtahDave kiorky: ok, looking
17:38 oz_akan_ joined #salt
17:39 StDiluted UtahDave: yeah, let me take a step back and figure out how I'm setting up the skeleton. that's my main issue
17:39 kiorky UtahDave: master syndic and minion are say on 127.0.0.1, grandmaster on 10.0.0.1
17:39 UtahDave kiorky: You should only have order_masters: True on your grandmaster
17:39 kiorky UtahDave: i did the twice on masterchild, without sucess
17:40 kiorky (with, or without)
17:40 auser joined #salt
17:40 kiorky UtahDave: i did changed some paths in config, and in pdb, the strange thing i noticed
17:40 kiorky is that some pathes in the syndic process are tied to the minion directories
17:40 UtahDave kiorky: Tell you what. Let me spin up some vms and test your scenario.  Give me a couple minutes.
17:40 LyndsySimon joined #salt
17:41 kiorky and what i have understood is that it wwas controlled only by the master config
17:41 kiorky UtahDave: so, do i need to share among master and minion the same sock_dir
17:42 UtahDave the master and the syndic both need to be run as the same user
17:42 kiorky UtahDave: in LocalClient:pub, it looks for a socket to be present
17:42 kiorky but the syndic looks inside the minion sock_dir
17:42 kiorky so the sock is ... not there
17:42 UtahDave kiorky: I'm thinking you're complicating things.
17:43 atweiden joined #salt
17:43 LyndsySimon joined #salt
17:43 kiorky UtahDave: no, in fact the grandfather will be the mastercontrooller of a distributed salt installation including the "salt top host", that's the use case
17:43 chadhs UtahDave, thank you very much.  this worked:
17:43 chadhs - salt://configs/{{ salt['grains.get']('roles', 'core') }}-pkg.conf
17:43 chadhs - salt://configs/pkg.conf
17:44 StDiluted chadhs: how are you setting the roles grains
17:44 kiorky sorry for typos, 3g and big fingers, and small laptop are a pain :
17:44 kiorky :)
17:45 chadhs StDiluted, im doing this
17:45 krissaxton joined #salt
17:45 chadhs salt 'FreeBSD-02' grains.setval roles webserver
17:45 chadhs salt 'FreeBSD-02' cmd.run "service salt_minion restart"
17:45 chadhs against my test machine(s)
17:45 StDiluted ah ok, so setting them manually
17:45 kiorky UtahDave: I decided to run grandmaster and syndic/master/minion on differents interfaces because i could have used differents port for the two master, but then in config, there is nothing to give a different port for the grandmaster
17:46 chadhs StDiluted, thought it would be cool to set them from the master and i can always do a report on roles.  did you have a better thought for doing that?  im curious
17:47 StDiluted chadhs: well, we are launching instances in AWS, and we have been defining roles in a tag on the instance
17:47 StDiluted however, we are defining a set of roles, not just a single role
17:48 chadhs can you give me an example?  in a pastebin / gist
17:48 UtahDave kiorky: you're way overcomplicating things
17:48 UtahDave kiorky: why don't you start with the defaults and get it working, and then try getting crazy.  :)
17:48 StDiluted what I'd like to do is grab the roles from the tags, parse the comma separated list, and then assign those roles to the instances
17:48 kiorky UtahDave: default are working
17:48 krissaxton1 joined #salt
17:49 kiorky UtahDave: as i said, master/minion communitcation is ok, its the syndiced stuff which is not
17:49 StDiluted chadhs: for instance: staging-all1: web,app,api,db,ops,mail,worker,cron,admin
17:49 mr_chris left #salt
17:49 StDiluted or simpler: prod-web2: web,app
17:50 StDiluted but I end up with multiple roles on the servers
17:50 StDiluted and I'm not sure how to handle that
17:50 kiorky UtahDave: but, can you say me a word on the sock_dir, must it be shared among master, syndic , and  minion or not ?
17:50 kiorky because that ca be definitivly the problem
17:50 sashka joined #salt
17:51 kiorky UtahDave: (i just uncommented the fullpath in the default ubuntu config and adapt it to the local install) iow, /var/run/salt/master -> /var/run/localsalt/master & the same for minion
17:51 StDiluted so I have a python script which outputs a list of all instances and their tags
17:51 kiorky so it ends up with two directories
17:51 chadhs StDiluted, yeah im debating on Nodegroups defined in the master config OR grains/roles
17:51 StDiluted but I am at a loss as to how to use that to assign roles to the individual minions
17:52 StDiluted I would like things to be as automated as possible
17:52 chadhs i want to be as well but if anything manual happens i just want to control it all from the master.  not have to login to the minions
17:53 StDiluted so if i bring up a new *-web* I want it to get configured based on the roles it has
17:53 m_george|away joined #salt
17:53 StDiluted without having to do much manual
17:53 dthom91 joined #salt
17:53 chadhs that should be easy if you have an sls file per role right
17:54 aranhoide joined #salt
17:54 StDiluted maybe. I guess I'm just having trouble figuring out how to structure things
17:54 kiorky UtahDave: filling the bug with my last debug to be more clear
17:54 StDiluted I have all the pieces, but I am having trouble fitting it together
17:54 m_george left #salt
17:55 StDiluted I think I need to step back and maybe architect it a bit
17:55 kiorky UtahDave: for the test setup, you only need one box/container with one interface & the loopback
17:55 kiorky that 's my setup
17:55 UtahDave kiorky: I'm in a meeting. I'll have to get back to you on that in a little bit.
17:55 chadhs StDiluted: this could help http://docs.saltstack.com/topics/targeting/nodegroups.html
17:55 kiorky UtahDave: no problem
17:56 StDiluted chad: yeah just checked that
17:56 chadhs see how they are matching a node group and then referencing - webserver
17:56 kiorky UtahDave: i ll have time to be more cler on the bug report ;)
17:56 chadhs that call will look for a webserver.sls
17:56 chadhs or a webserver/init.sls
17:56 chadhs so you can match/structure like that for all your roles to apply
17:56 chadhs similar to that nodegroup structure example
17:57 StDiluted chadhs: I need to expand that to have environments also
17:57 chadhs same here as we have prod/staging/qa for all our web environments
17:58 chadhs in the master config there are references to having ./salt/states   ./salt/states/dev    etc
17:58 StDiluted right, file_roots
17:58 jacksontj joined #salt
17:59 StDiluted for separate environments
17:59 StDiluted do I need to duplicate the base in each environment?
18:00 chadhs StDiluted, i do not know.  im less than 2 weeks into this adventure
18:00 chadhs http://docs.saltstack.com/topics/targeting/grains.html
18:01 StDiluted I'm assuming there must be an easy way of taking a comma separated list of roles and then running states based on those
18:01 auser hey all
18:02 StDiluted so if my grain is 'web, app, api, db, mail. worker'
18:02 StDiluted hey auser
18:02 StDiluted then I get web.sls, app.sls, api.sls, db.sls, mail.sls, and worker.sls from the proper environment
18:02 StDiluted but that's what I'm struggling to figure out
18:02 StDiluted how to do that
18:02 auser how to do different environments?
18:03 StDiluted well, here's how the system I'm trying to manage is laid out
18:03 StDiluted and maybe you can advise me
18:03 auser sure
18:04 StDiluted we have 6 envs, staging, critical, demo, master, prod, and sandbox
18:04 StDiluted we have 10 roles
18:04 kiorky UtahDave: edited.
18:04 StDiluted and up til now
18:04 StDiluted they have been using tags in EC2 to label the instances with their roles
18:04 kmrhb joined #salt
18:04 StDiluted for use with Capistrano
18:05 StDiluted we are moving all provisioning of everything but the app from Capistrano to salt
18:05 StDiluted so
18:05 StDiluted I want to use the tags
18:05 StDiluted however
18:05 StDiluted I have instances with things like: critical-all1: web,app,api,db,ops,mail,worker,cron
18:05 StDiluted that is a single instance with 8 roles
18:06 auser totally
18:06 eightyeight joined #salt
18:06 StDiluted so I have a python script on my salt-master which is capable of outputting that
18:06 Bastion2202 joined #salt
18:06 auser outputting the roles?
18:06 StDiluted yeah, it grabs the tags from EC2
18:06 Gifflen joined #salt
18:06 auser gotcha
18:06 StDiluted formats it just like I just pasted
18:06 chadhs StDiluted, gotcha
18:07 StDiluted prod-worker1: worker,app
18:07 StDiluted like that
18:07 StDiluted so I'd love for that list to become a list of states that get applied to a particular instance
18:08 StDiluted so for prod worker
18:08 StDiluted prod-worker*, rather
18:08 StDiluted worker.sls and app.sls (as well as the base top.sls) would get applied from the production environment
18:08 chadhs UtahDave, can you define something in a core.sls and then override it in another web.sls
18:09 chadhs UtahDave, i know that it complains if you are managing the same file in more than one spot and both apply to a minion
18:11 auser StDiluted: I gotcha, the way I do that is by using grains
18:11 StDiluted yeah, so I'm trying to figure out a good way of setting the grains on the minions
18:12 auser I gotcha
18:12 StDiluted so given I can output a list like that
18:17 chadhs StDiluted, auser, the two ways i can think of doing that is by setting gains or nodegroups
18:17 auser yep
18:17 auser I set them using grains
18:17 chadhs auser, do you set the roles grain
18:18 chadhs and give a value for each role?
18:18 auser salt-call grains.setval key value
18:18 StDiluted and are you setting more than one role in that list?
18:18 auser salt-call grains.setval environment dev
18:18 auser I do, yes
18:18 auser salt-call grains.setval roles [monitor,hadoop1,hadoop2]
18:20 druonysuse joined #salt
18:20 druonysuse joined #salt
18:20 jeddi joined #salt
18:20 StDiluted how could I set grains values from the salt master inside a python script?
18:22 berto- joined #salt
18:23 StDiluted i suppose I'm talking about writing a grain
18:23 auser yep exactly
18:23 StDiluted so does the grain get executed on the master or the minion?
18:24 StDiluted I'm thinking it executes on the minion
18:24 auser it gets executed on the minion
18:24 StDiluted and that's the problem here, I don't want to have to distribute my EC2 credentials to each minion
18:25 auser you don't need to
18:25 StDiluted in order to get the tags I do
18:25 auser every ec2 instance has an internal IP it can query
18:25 StDiluted they aren't in the meta-data
18:25 auser nope, sec.
18:25 auser ah
18:25 auser okay then you do
18:25 StDiluted I am using the ec2 grain already
18:26 StDiluted blerg, that I definitely don't want to do
18:26 StDiluted so, I guess I need to write a python script that executes on the salt master and sets the grains on the minions
18:30 druonysuse joined #salt
18:30 druonysuse joined #salt
18:31 StDiluted UtahDave, when you come back, maybe you could help me?
18:32 chadhs auser, how do you handle targeting different config versions to different roles?
18:33 auser I use environments and pillars
18:33 chadhs i'm going to have to dive into that a bit more then
18:35 druonysuse joined #salt
18:35 druonysuse joined #salt
18:41 krissaxton joined #salt
18:49 atweiden what's the simplest way to push a file from master to minions?
18:50 whiteinge clone1018: thank you for the versions gist
18:50 krissaxton joined #salt
18:50 hazzadous joined #salt
18:50 whiteinge i will cut a new salt-api release this week
18:51 atweiden nvm
18:51 StDiluted atweiden: somefile: file.managed: - source: salt://somefile
18:51 Katafalkas joined #salt
18:53 auser nice whiteinge
18:54 clone1018 whiteinge: thanks!
18:54 rlb` Is there a standard way to stop a service, file.manage a config file, then restart it -- in this case, the service has to be stopped during the modification?
18:55 auser I'm having a brain-fart day… I want to run something on the master to send to the minions on their highstate
18:55 auser rather, before the minions run a highstate
18:56 chadhs auser, how do you push multiple roles to a box?
18:56 auser with an array
18:56 auser salt-call grains.setval roles [monitor,api]
18:58 aranhoide joined #salt
18:58 chadhs so if my boxes tend to have more than one role then targeting by role for versions of a config probably won't work
18:58 chadhs https://gist.github.com/chadhs/0ef0a81ef3fcb8ea2622#file-test-config-sls
18:59 auser oh, I didn't understand… you can separate those out in environments
18:59 auser in my top.sls file
18:59 auser er *your*
19:00 auser rather, your /etc/salt/master
19:00 auser add a fileroot for environment
19:00 UtahDave rlb: you'll want to use a "pre_req" for that.
19:00 Jahkeup_ joined #salt
19:01 auser hey UtahDave. brainfart day: how can I execute a command on the master before the salt minion runs a highstate?
19:01 chadhs auser, i want to basically leverage roles (or nodegroups) for both setting a pkg mirror as well as installing roles.  however i'd like to have an assumed default.
19:01 chadhs think im getting closer to getting this figured out
19:01 UtahDave auser:  would an overstate do what you want?
19:02 auser yeah, I suppose
19:02 Katafalkas joined #salt
19:02 auser I want it to run on highstate
19:02 auser can I hook into the compile phase on the master?
19:02 whit joined #salt
19:03 koolhead17 joined #salt
19:03 koolhead17 joined #salt
19:03 Katafalkas joined #salt
19:03 Ryan_Lane joined #salt
19:04 UtahDave auser: well, you could have the highstate use module.run that executes some custom code that does something on the master.
19:05 auser ew… master -> minion -> master -> minion?
19:06 rlb UtahDave: ahh, ok, thanks -- didn't know about that; I'll take a look.
19:06 UtahDave rlb: it's a new feature in 0.16.0
19:07 UtahDave auser: Or maybe your highstate could just use module.run to execute an overstate. Then the overstate could do something on the master, and then on the minion
19:08 auser hm
19:09 auser so there is no way
19:10 eightyeight joined #salt
19:10 auser hm
19:11 druonysuse joined #salt
19:11 druonysuse joined #salt
19:11 rlb` joined #salt
19:12 rsimpkins joined #salt
19:16 JasonSwindle joined #salt
19:16 UtahDave auser: the problem is that a highstate is focused on a particular minion. Each minion looks at the top file and executes the states that apply to it
19:17 auser yeah, I get that
19:17 UtahDave You could set up some peer communication and have the minion's highstate send a command to the master
19:17 bluemoon joined #salt
19:18 rlb` UtahDave: so something like this, perhaps (nb. I'm still quite new to salt): https://www.refheap.com/25d34051dbf50d89023f80023
19:18 StDiluted UtahDave, when writing a grain, it just needs to output something like Key: [ value1, value2, value3] ?
19:18 UtahDave StDiluted: yes
19:18 druonysus joined #salt
19:18 druonysus joined #salt
19:18 rlb` UtahDave: and assume the foo-stopped: state actually includes "dead" (forgot that).
19:19 UtahDave rlb`: Yeah, I think that should work
19:20 rlb` UtahDave: ok, thanks again.
19:20 echos How would I go about upgrading salt why I used "curl -L http://bootstrap.saltstack.org | sudo sh -s -- git develop" to install it?
19:21 UtahDave rlb: let me know how that goes. That's a brand new feature and pretty complicated
19:21 StDiluted so this is valid grain output? roles: [ web,app ]
19:21 UtahDave echos: I think you can run that same command again.
19:21 UtahDave StDiluted: it has to be valid yaml
19:21 echos UtahDave: It's failing
19:21 UtahDave echos: that script clones the salt repo in  /tmp
19:21 UtahDave just cd into the repo, fetch and rebase, and then run    sudo python setup.py install --force
19:22 StDiluted so better output would be {'roles': 'web,app'}
19:22 echos UtahDave: I just cleared out the repo
19:23 UtahDave StDiluted: http://docs.saltstack.com/topics/targeting/grains.html#writing-grains
19:24 StDiluted I read that. I suck at guessing what output is going to look like by looking at code though.
19:24 StDiluted I'll just f with it til it works, I suppose
19:25 UtahDave StDiluted: yeah, so     return {'mykey': 'myval', 'otherkey': 'otherval'}
19:26 jpoole joined #salt
19:26 david_a joined #salt
19:27 david_a joined #salt
19:28 rlb UtahDave: actually, from reading the docs, I'm wondering if that's backwards, i.e. in the example there, "prereq: foo" is in the "stopped" state, not the foo state. i.e. the prereq will cause stopped to fire iff foo will need to do something.
19:29 rlb here: http://docs.saltstack.com/ref/states/requisites.html#prereq
19:32 druonysus joined #salt
19:32 druonysus joined #salt
19:33 StDiluted can a grain be an array of values?
19:33 StDiluted { 'roles': '[web,app]' }
19:33 StDiluted ?
19:35 timoguin_work do any of you know of some salt-cloud examples utilizing DigitalOcean? trying to figure out how to launch a new instance
19:35 ydavid joined #salt
19:35 oz_akan_ StDiluted: yes
19:35 StDiluted timoguin_work: http://russell.ballestrini.net/create-your-own-fleet-of-servers-with-digital-ocean-and-salt-cloud/
19:35 oz_akan_ StDiluted:  if 'roles' in grains, for role in grains['roles']
19:35 N-Mi joined #salt
19:35 N-Mi joined #salt
19:35 oz_akan_ you can them loop over it
19:36 StDiluted oz_akan: trying to write a grain
19:36 timoguin_work StDiluted, perfect! thank you
19:36 Newt[cz]1 joined #salt
19:36 oz_akan_ salt 'server' grains.setval roles ['web','db]
19:36 StDiluted hrm
19:37 UtahDave StDiluted: yes, you can have a grain value be a list
19:37 StDiluted just trying to figure out how to format my out put from the grain
19:37 StDiluted that's all
19:37 auser is there a way to cal 'dirname' from a jinja template?
19:39 StDiluted but I am not a python programmer, so it's new concepts for me
19:40 dthom91 joined #salt
19:41 ydavid_ joined #salt
19:42 LyndsySimon joined #salt
19:43 lazyguru joined #salt
19:47 ydavid joined #salt
19:48 koolhead11|away joined #salt
19:50 jschadlick joined #salt
19:50 spicyWith joined #salt
19:55 njoyce` joined #salt
19:55 koolhead17 joined #salt
19:55 koolhead17 joined #salt
19:55 lazyguru_ joined #salt
19:56 rlb is there a way to have a minion repeat something until it succeeds (as part of a state transition)?
19:56 _chjohnstwork joined #salt
19:56 rlb i.e. state-foo: while ! x; do something; sleep 5; done
19:57 druonysuse joined #salt
19:57 druonysuse joined #salt
19:58 akio1 joined #salt
19:58 jbub_ joined #salt
19:58 ydavid_ joined #salt
19:58 Corey_ joined #salt
19:59 pfrog joined #salt
19:59 pfrog so lets say I install salt-minion on a fresh install of fedora, it doesn't have any grain information in the minion file
19:59 pfrog is there a way to add that information from the master
20:00 dthom91 joined #salt
20:02 axisys joined #salt
20:02 aboe joined #salt
20:02 lazyguru joined #salt
20:02 rlb or alternately is there a way to have a minion keep trying to enter a particular sub-state until it succeeds?
20:05 rlb or even more generally, what happens if a minion fails to transition to a requested state -- will it ever retry?
20:05 ferai joined #salt
20:06 Avatar[01] joined #salt
20:06 hazmat joined #salt
20:06 wyrd1 joined #salt
20:06 jkleckner joined #salt
20:06 Tekni joined #salt
20:06 kallek_ joined #salt
20:06 davidone joined #salt
20:06 puppet_ joined #salt
20:06 joshe joined #salt
20:06 rnts joined #salt
20:06 drogoh joined #salt
20:06 KFDM joined #salt
20:08 whit joined #salt
20:08 ydavid_ joined #salt
20:10 chadhs how are you guys targeting roles if you have many roles set in a grain which is a list(array)?
20:13 drogoh_ joined #salt
20:17 thingles joined #salt
20:18 racooper would it be possible to define a state that sets a value (say, selinux mode) to one value if it's not already another value? in this case...if selinux mode is not already Enforcing, then copy a managed config over that sets it to permissive instead of disabled?
20:19 jacksontj joined #salt
20:23 ydavid joined #salt
20:23 timoguin_work of course when i finally have time to play with salt-cloud to deploy new DigitalOcean instances, DDOS against digitalocean website and API
20:23 * timoguin_work grumbles
20:23 LyndsySimon joined #salt
20:24 pfrog salt-thin just gives me the provisioning stuff without running the daemons?
20:24 Avatar[01] joined #salt
20:24 wyrd1 joined #salt
20:24 jkleckner joined #salt
20:24 Tekni joined #salt
20:24 kallek_ joined #salt
20:24 davidone joined #salt
20:24 puppet_ joined #salt
20:24 joshe joined #salt
20:24 rnts joined #salt
20:24 KFDM joined #salt
20:25 andrewclegg joined #salt
20:26 mikedawson joined #salt
20:28 jlund joined #salt
20:31 atweiden i need to install a program on minions as a non-root user, needs sudo privs
20:32 atweiden what to do?
20:33 wyrd1 joined #salt
20:33 nkuttler atweiden: what do you mean specifically?
20:33 atweiden sudo salt '*' cmd.run "cd /home/user && su -c 'sudo pacman --noconfirm -U package-1-x86_64.pkg.tar.xz' user"
20:34 atweiden prompts for password
20:34 nkuttler atweiden: well, edit the sudoers file?
20:34 nkuttler though i'd kinda assume salt can handle pacman for you..
20:34 atweiden there's a pacman module
20:34 atweiden but have had more luck running cmds directly
20:35 atweiden how to edit sudoers?
20:35 atweiden visudo?
20:35 nkuttler atweiden: of course not, you'd put one there with salt, or check if there is a sudo/sudoers module i guess
20:35 nkuttler reminds me.. i should check that.. i have sudoers templates..
20:36 auser weird… does salt-bootstrap also *start* salt?
20:36 aboe atweiden, why do you need it to install a package, as a 'user' when the user runs sudo??
20:36 auser salt-minion
20:36 mikedawson joined #salt
20:37 jackalheart joined #salt
20:37 atweiden it's an AUR package
20:37 puppet__ joined #salt
20:37 atweiden issues running it as root
20:37 atweiden needs reg user
20:38 aboe atweiden, just tried it:
20:39 aboe atweiden, http://pastebin.com/WHSMSG0Q
20:39 Bastion2202 joined #salt
20:39 aboe atweiden, this is from an aur package
20:40 atweiden aboe: yes, it works i know; however in my case the program itself needs a reg user
20:41 Avatar[01] joined #salt
20:41 jkleckner joined #salt
20:41 Tekni joined #salt
20:41 kallek_ joined #salt
20:41 davidone joined #salt
20:41 joshe joined #salt
20:41 rnts joined #salt
20:41 KFDM joined #salt
20:41 atweiden i'm thinking it would be fastest to just push a sudoers file to all minions
20:42 aboe atweiden, then I think nkuttler is right, you need the user to be able to run pacman without a password,
20:42 atweiden saying NOPASSWD: /bin/pacman
20:42 atweiden right
20:42 Avatar[01] joined #salt
20:42 atweiden question is, what's the fastest way to do that
20:42 ydavid joined #salt
20:43 aboe atweiden, if you have python-augeas installed on the minion, augeas.setvalue would help
20:44 Bastion2202 hey guys, is there a way to reduce the output to changes and failures ? is it getting nearly impossible to check the output of highstate
20:45 EugeneKay Yes; read the comments in the minion cfg file
20:45 Bastion2202 EugeneKay: will do tx
20:45 EugeneKay Er, master
20:45 SEJeff_work Bastion2202, http://docs.saltstack.com/topics/releases/0.16.0.html#more-state-output-options
20:45 EugeneKay Ooooh, new options.
20:45 atweiden aboe: i'm getting "augeas.setvalue" is not available
20:45 SEJeff_work I asked for the ability to print terse output to the display and verbose output to the logs
20:45 atweiden but that would be quick solution
20:45 aboe atweiden, you need python-augeas installed.
20:45 SEJeff_work so it is easy to go back and see what happened.
20:45 gordonm joined #salt
20:46 Bastion2202 Tx, will have to upgrade to 0.16
20:46 aboe atweiden, and offcourse augeas itself.
20:49 LyndsySimon joined #salt
20:58 atweiden augeas cmd not available, even after installing everything; can i alter sudoers with pure file update?
20:58 bhosmer_ joined #salt
20:58 FreeSpencer joined #salt
21:01 bluemoon joined #salt
21:02 kaptk2 joined #salt
21:02 twiedenbein joined #salt
21:04 nrub joined #salt
21:05 z3uS joined #salt
21:06 StDiluted UtahDave: I wrote a grain that I believe is returning properly but I am getting an error in the minion log
21:06 StDiluted are you there?
21:07 StDiluted 2013-07-09 21:05:13,139 [salt.loader      ][CRITICAL] Failed to load grains defined in grain file ec2_tag_roles.pprint in function <function pprint at 0x18f6938>, error:
21:07 StDiluted Traceback (most recent call last):
21:07 StDiluted File "/usr/lib/pymodules/python2.7/salt/loader.py", line 859, in gen_grains
21:07 StDiluted ret = fun()
21:07 StDiluted TypeError: pprint() takes at least 1 argument (0 given)
21:07 StDiluted ugh meant to paste that to a gist
21:07 StDiluted sorry
21:08 ClausA joined #salt
21:08 SEJeff_work StDiluted, your grain does: from pprint import pprint doesn't it?
21:08 SEJeff_work StDiluted, Change it to: from pprint import pprint as _pprint
21:09 StDiluted ah yes it does
21:09 SEJeff_work StDiluted, Or, change it to simply: import pprint
21:09 SEJeff_work StDiluted, So the loader sees that as a public callable
21:09 StDiluted Thanks!
21:09 oliv_mc joined #salt
21:09 FreeSpencer joined #salt
21:10 StDiluted sweet
21:10 StDiluted it worked!
21:10 SEJeff_work StDiluted, I didn't need to look at your code to know (knowing how the salt loader works) what the issue was. Glad to help :D
21:11 druonysuse joined #salt
21:11 druonysuse joined #salt
21:13 LyndsySimon I'm having trouble with the mongodb_user.present state, and I can't figure out what's going on. Can someone assist?
21:13 LyndsySimon My build output is here: https://github.com/CenterForOpenScience/osf-salt-deploy/blob/master/build_output.txt
21:14 StDiluted SWEET. ec2_roles grain now being pulled from EC2 tags.
21:14 StDiluted that makes me happy
21:14 LyndsySimon THis is the only module failing, and the file is too long to link by line. A search for "KeyError" will take you right to the line in question.
21:14 chrisgilmerproj1 joined #salt
21:14 LyndsySimon state, not module. Sorry :(
21:15 FreeSpencer joined #salt
21:15 JasonSwindle KeyError: 'mongodb.user_exists' ….. odd
21:16 LyndsySimon Yeah. Pulling my hair out on that one.
21:17 zooz joined #salt
21:17 JasonSwindle your state looks find, well sublime does not blow up on it
21:18 LyndsySimon I've also verified that /usr/lib/pymodules/python2.7/salt/modules/mongodb.py exists
21:19 LyndsySimon Could it have something to do with the virtualenv I've set up for uwsgi?
21:19 JasonSwindle What version of salt?
21:19 ydavid joined #salt
21:20 LyndsySimon salt-call on the VM is reporting 0.16.0
21:20 FreeSpencer joined #salt
21:20 JasonSwindle hmmm
21:20 JasonSwindle odd
21:20 LyndsySimon If I use the develop branch on git, it blows up in other and spectacular ways :)
21:20 JasonSwindle I have the same OS and Salt version, let me test
21:21 abqdave joined #salt
21:21 LyndsySimon K. I'm removing everything from the top.sls except the mongodb part, and seeing if it persists.
21:23 JasonSwindle highstating now
21:24 LyndsySimon It's throwing the same error with everything else removed.
21:25 spicyWith joined #salt
21:26 zooz joined #salt
21:27 JasonSwindle still highstating
21:28 LyndsySimon I'm going to hack at the state file and see if I can't dump the contents of __salt__ to see what's up.
21:29 JasonSwindle I got:
21:29 JasonSwindle [ERROR   ] stderr: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/b/boost1.49/libboost1.49-dev_1.49.0-3.2ubuntu1_amd64.deb  Connection failed [IP: 91.189.91.15 80]
21:29 LyndsySimon ?
21:29 LyndsySimon That's difference.
21:29 JasonSwindle not the same error, trying again.  Most likely a mirror pooped out
21:29 LyndsySimon different*
21:29 LyndsySimon Ah
21:29 JasonSwindle Thinks are odd on my PC at times.
21:30 JasonSwindle gah, that came out odd
21:30 JasonSwindle Things are odd*
21:30 hazmat joined #salt
21:30 hazmat joined #salt
21:30 LyndsySimon That's okay. Not once since I've had a smartphone have I actually meant to say "ducking"
21:31 krissaxton joined #salt
21:31 LyndsySimon sure enough, nothing mongo-related is in the __salt__ object at that point. Looks like a bug.
21:32 JasonSwindle http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ <- ?
21:33 LyndsySimon I think I have it narrowed down. One sec, I'm reading that link now
21:33 bemehow joined #salt
21:33 LyndsySimon OK, that link didn't have it. Check out https://github.com/saltstack/salt/blob/develop/salt/modules/mongodb.py#L34
21:33 LyndsySimon pymongo has to be installed.
21:33 whiskybar joined #salt
21:33 LyndsySimon Or the mongodb module doesn't load.
21:33 JasonSwindle I am going to add the PPA
21:33 UtahDave joined #salt
21:33 LyndsySimon ?
21:34 JasonSwindle sorry, repo
21:34 UtahDave left #salt
21:34 LyndsySimon ahh
21:34 toastedpenguin when using pkgrepo.managed: can I use it like any other state file e.g. repo/ dir with an init.sls or does it need to be used a different way?
21:35 LyndsySimon JasonSwindle: It worked!
21:35 LyndsySimon JasonSwindle: I installed pymongo in the VM the re-ran state.highstate.
21:35 UtahDave joined #salt
21:36 JasonSwindle neat
21:38 LyndsySimon Hopefully, adding that the requirements will be fine. It's odd there isn't a better error for that than "KeyError".
21:40 whiskybar1 joined #salt
21:41 Jahkeup_ joined #salt
21:41 Guest4310 joined #salt
21:41 UtahDave joined #salt
21:42 StDiluted welcome back, UtahDave
21:42 UtahDave thanks!
21:42 StDiluted UtahDave: https://github.com/dginther/ec2-tags-salt-grain
21:42 krissaxton joined #salt
21:42 StDiluted got it working
21:42 ydavid_ joined #salt
21:43 StDiluted I'm sure it's ugly. :)
21:44 UtahDave That's pretty awesome, StDiluted!
21:44 UtahDave Yeah, there's a few small changes I'd make to allow for better integration with Salt, but that would work nicely
21:50 dthom91 joined #salt
21:51 rlb if a minion fails to execute a particular state, will it ever try again, or do you just have to write something on the master that keeps trying?
21:51 UtahDave rlb: Salt let's you decide that.
21:52 UtahDave by default it only runs a highstate when you direct it to from the master or if you run it with salt-call from a minion
21:52 UtahDave You can schedule highstates or executions in Salt's schedulers, or you can use a cron job to do that.
21:52 rlb UtahDave: hmm, ok, hadn't seen the schedulers yet -- have to look that up.
21:55 rlb UtahDave: and is there a way to have a minion trigger an action on the master once the minion has reached a particular state (just trying to figure out what my options are to solve a particular problem)?
21:58 UtahDave rlb: yeah, there is an event bus that you can use to send a message to the master.  event.fire_master is what you want.
21:58 UtahDave Then on the master the "reactor" allows you to take action based on what the minion sends.
22:03 giantlock joined #salt
22:04 rlb ok, so that's handled through the reactor -- thanks, and do I understand correctly that pillars solely reflect the content of the pillar tree?  i.e. there's no pillar.set(key, value).
22:07 elasticdog joined #salt
22:07 UtahDave rlb: that's correct.  there's not pillar.set
22:12 emocakes joined #salt
22:14 nrub joined #salt
22:14 timl0101 joined #salt
22:18 zooz joined #salt
22:21 kermit joined #salt
22:24 aranhoide joined #salt
22:36 berto- joined #salt
22:38 rlb So with reactor states, can you use cmd.run?  I wasn't sure if the docs might be telling me no...
22:39 rlb i.e. I'd like for the master to run a command when it receives a particular event from a minion.
22:39 UtahDave yeah, I think it would be cmd.cmd.run
22:42 rlb UtahDave: hmm, but it sounded like that might run on the minion, not the master, or did I misread?
22:43 UtahDave reactor executes on the master
22:43 pnl joined #salt
22:46 TheRealBill joined #salt
22:50 LyndsySimon joined #salt
22:51 cxz joined #salt
22:54 alazylearner joined #salt
22:56 chrisgilmerproj1 left #salt
23:01 kleinishere joined #salt
23:13 conan_the_destro joined #salt
23:17 conan_the_destro joined #salt
23:23 kleinishere joined #salt
23:26 krissaxton joined #salt
23:26 jslatts joined #salt
23:28 jaequery joined #salt
23:28 cjh how does salt know if a service is running or not?
23:29 cjh does the init script have to support a status command?
23:31 TheRealBill cjh: generally speaking I would say yes. it depends on the platform as it appears to be implemented in the service module for each platform.
23:32 DredTiger joined #salt
23:32 cjh ok
23:32 UtahDave cjh: it can check with the script if it supports status, it can also check ps  output to see if the service is running, too.
23:32 cjh i have a service that only supports start/stop in the init.d script so i think i should add a status field
23:32 cjh oh ok
23:32 UtahDave you can give salt the service's signature that appears in ps
23:32 cjh that'll be easier
23:33 cjh UtahDave: do i quote the sig string?
23:33 UtahDave cjh: I don't think you have to
23:33 cjh ok
23:33 UtahDave (but I'd recommend testing.)    :)
23:34 TheRealBill cjh: just make sure nothing else has a signature that matches it. for example, if you run multiple instances and they have the same binary command you'd have to extend it out to the options you would see.
23:34 cjh :D
23:34 cjh ok
23:34 cjh i'll keep that in mind
23:36 krissaxton joined #salt
23:38 kermit joined #salt
23:38 whit joined #salt
23:40 gordonm left #salt
23:41 derelm joined #salt
23:46 sashka joined #salt
23:47 mackstick joined #salt
23:49 marcinkuzminski joined #salt
23:56 nliadm UtahDave: is there something I'm missing for the "action" arguments to file.find module?
23:56 nliadm I can't get 'exec' to work
23:57 woolcap left #salt
23:57 nliadm and if I'm realing salt/utils/find.py correctly, 'delete' won't work, either

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