Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-13

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

All times shown according to UTC.

Time Nick Message
00:00 techhat joined #salt
00:02 n8n joined #salt
00:05 n8n joined #salt
00:09 joehoyle joined #salt
00:12 falican joined #salt
00:13 tomtomtomtom joined #salt
00:22 brianhicks joined #salt
00:28 kalloc joined #salt
00:28 vbabiy_ joined #salt
00:30 kalloc_ joined #salt
00:30 linjan_ joined #salt
00:35 aletourneau joined #salt
00:37 aletourneau hey, I coded a salt module to configure a citrix netscaler (using the nitro rest api). Is that something pull-request worthy upstream?
00:42 jeremyfelt joined #salt
00:45 BenCoinanke_b joined #salt
00:46 wt joined #salt
00:46 __number5__ aletourneau: send in the PR anyway :P
00:46 wt hi, is there something like the chef client for salt?
00:47 wt I would like to issue commands from my workstation for my salt server, and I am not sure how to do that.
00:48 Poooogles joined #salt
00:49 mgw1 fatbox: I just saw https://github.com/borgstrom/nacl
00:52 aletourneau __number5__: k
00:55 hunter joined #salt
00:56 wt or is the salt command that command?
00:57 aletourneau woa, nacl is pretty cool.
00:58 jtang joined #salt
00:58 mgw1 aletourneau: isn't it?
00:59 mgw1 It's been in existence for a day or so, so I don't understand why it's not in pypi yet though…
01:01 aletourneau it on the owner's todo list, at least..
01:01 aletourneau s/it/it's/
01:02 mgw1 Yeah, maybe he'll do that tomorrow. :-)
01:17 Poooogles joined #salt
01:30 joehoyle_ joined #salt
01:30 kalloc joined #salt
01:30 taion809 joined #salt
01:34 yomilk joined #salt
01:38 yomilk_ joined #salt
01:42 AlcariTheMad joined #salt
01:52 iShming_ joined #salt
01:52 Ryan_Lane1 joined #salt
01:52 jtang joined #salt
01:55 sujumaku joined #salt
01:56 krow joined #salt
01:57 ahammond can someone point me to an example recipe / state (what are they being called now, anyway?) that identifies the OS and does different things for different OSs please?
01:57 iShming_ joined #salt
02:00 cedwards ahammond: sounds like you're looking for formulas: http://github.com/saltstack-formulas/
02:00 ahammond cedwards formulas. got it. thanks!
02:00 wt formula? Is that related to pillars?
02:01 wt or grains?
02:01 cedwards wt: formulas use pillar data..
02:02 cedwards formulas are essentially state files, but they're smart enough to work cross-distro
02:02 wt cedwards, do you happen to know if there is some kind of client tool?
02:02 jeremyfelt joined #salt
02:02 wt for remotely controlling the master?
02:02 cedwards they're also expandable with pillar data
02:02 Ahlee Prebaked state files for common applications and community generated best practices
02:02 cedwards only thing i could think of is maybe salt-api..
02:02 Ahlee is the best description I've come up for yet
02:02 Ahlee There's halite and salt-api
02:03 Ahlee halite is an AngularJS UI, salt-api is a restful interface
02:03 * cedwards needs to play with halite again
02:03 Ahlee halite's sys.doc live updating is pretty slick.
02:03 wt is salt-api part of the normal distribution?
02:03 wt or is it an addon?
02:03 wt I'd never heard of it til just now. :)
02:04 Ahlee It's maintained external to salt, https://github.com/saltstack/salt-api
02:04 wt ah
02:04 Ahlee We use it extensively
02:04 ahammond cedwards, I'm looking at https://github.com/saltstack-formulas/postgres-formula and see a new pattern I haven't seen before in https://github.com/saltstack-formulas/postgres-formula/blob/master/postgres/map.jinja has this become a standard approach?
02:04 wt do you just pip install it?
02:04 ahammond I haven't been salty for about 6 months. :)
02:05 Ahlee wt: I believe that's an option, I install it via RPM
02:05 wt Ahlee, ah
02:05 wt Ahlee, not from epel repos, I assume
02:05 cedwards Ahlee: yeah, the map.jinja is a standard component of the formulas
02:05 cedwards ahammond: ^^
02:06 Ahlee wt: kind of. I rebuild it from source rpm
02:06 wt Where do you get the source RPM from?
02:06 ahammond cedwards, ok, I'll start working on updating my old formulas to use that convention. Nice solution to the problem there.
02:06 wt I am kinda getting back into RH style distros these days.
02:06 Ahlee http://dl.fedoraproject.org/pub/epel/6/SRPMS/
02:07 Ahlee or http://koji.fedoraproject.org/koji/ if i'm feeling frisky
02:07 wt Are there source rpms for things that don't have binaries in the epel repo?
02:07 wt I didn't see it in a yum search
02:07 cedwards ahammond: if you run into questions with formulas you might hit up whiteinge or forrest.
02:08 Ryan_Lane1 joined #salt
02:09 phyde__ joined #salt
02:09 wt oh, I think I was confusing my ubuntu boxes
02:09 wt I guess I overlooked it on the centos boxes.
02:09 wt cedwards, thanks
02:10 tonthon_ joined #salt
02:10 welby_away joined #salt
02:10 clearcla1 joined #salt
02:10 hotbox_ joined #salt
02:10 tmmt joined #salt
02:11 Damoun_ joined #salt
02:12 joehoyle joined #salt
02:12 Tekni joined #salt
02:12 vbabiy__ joined #salt
02:12 _ioni joined #salt
02:12 _Flusher joined #salt
02:12 aletourn1au joined #salt
02:12 BenCoinanke_c joined #salt
02:12 bemehow_ joined #salt
02:12 zzzirk joined #salt
02:13 mtaylor joined #salt
02:13 gmtech_ joined #salt
02:14 krow1 joined #salt
02:14 lionel_ joined #salt
02:14 johnny_bravo__ joined #salt
02:14 wt Ahlee, thanks for the info
02:14 wt cedwards, thank you, too
02:14 wt bye for now
02:14 jphall_ joined #salt
02:15 Simon_ joined #salt
02:15 BogdanR_ joined #salt
02:15 AdamSewell joined #salt
02:15 AdamSewell joined #salt
02:15 backjlack_ joined #salt
02:16 beardo_ joined #salt
02:16 ckao1 joined #salt
02:16 MaZ- joined #salt
02:16 tonthon joined #salt
02:16 crashmag joined #salt
02:16 djaykay joined #salt
02:17 gw_ joined #salt
02:17 twiedenbein joined #salt
02:17 faef joined #salt
02:18 faef can anyone here explain why reap_fileserver_cache_dir is necessary?
02:18 joehoyl__ joined #salt
02:18 dirjaway_ joined #salt
02:18 zsoftich1 joined #salt
02:18 dave_den1 joined #salt
02:19 faef or even better, what its in the gitfs/hash folder?
02:19 cro_ joined #salt
02:19 alunduil joined #salt
02:19 Damoun__ joined #salt
02:19 andersb joined #salt
02:20 crazysim joined #salt
02:20 kossy_ joined #salt
02:20 faef I think it's created by the fileserver to tell the minions if their files are up to date
02:20 EvaSDK_ joined #salt
02:20 EvaSDK_ joined #salt
02:20 jacksontj joined #salt
02:21 arnoldB joined #salt
02:22 jasonrm_ joined #salt
02:22 twinshadow_ joined #salt
02:23 Psi-Jack_ joined #salt
02:23 patrek_ joined #salt
02:23 yomilk joined #salt
02:24 sirtaj_ joined #salt
02:24 alekibango_ joined #salt
02:24 dcolish joined #salt
02:24 cellofellow joined #salt
02:24 Dinde joined #salt
02:25 SEJeff_work2 joined #salt
02:26 iShming_ joined #salt
02:26 clearclaw joined #salt
02:26 philipsd6 joined #salt
02:26 jacksontj_ joined #salt
02:26 vbabiy_ joined #salt
02:26 BogdanR joined #salt
02:26 Damoun joined #salt
02:27 jpcw joined #salt
02:27 Psi-Jack joined #salt
02:27 rostam joined #salt
02:27 cewood joined #salt
02:27 rhand joined #salt
02:29 jcockhren joined #salt
02:29 ktenney joined #salt
02:30 xzarth joined #salt
02:30 delkins joined #salt
02:31 krow joined #salt
02:31 crazysim joined #salt
02:32 cellofellow joined #salt
02:32 kamal_ joined #salt
02:32 crazysim joined #salt
02:33 crazysim joined #salt
02:34 Psi-Jack_ joined #salt
02:34 TamCore joined #salt
02:34 vbabiy_ joined #salt
02:34 backjlack joined #salt
02:35 malinoff joined #salt
02:35 schristensen joined #salt
02:35 Damoun joined #salt
02:35 mephx joined #salt
02:36 utahcon joined #salt
02:36 AlcariTheMad joined #salt
02:36 Psi-Jack joined #salt
02:36 justBob joined #salt
02:37 arnoldB joined #salt
02:37 clearcla1 joined #salt
02:38 Linuturk joined #salt
02:38 ClausA joined #salt
02:38 77CABFTLM joined #salt
02:38 Linuturk joined #salt
02:38 xzarth joined #salt
02:38 davet joined #salt
02:38 BogdanR joined #salt
02:39 EvaSDK joined #salt
02:39 druonysus joined #salt
02:39 druonysus joined #salt
02:39 djaykay joined #salt
02:39 ay joined #salt
02:39 patrek joined #salt
02:39 phyde_ joined #salt
02:40 micko joined #salt
02:40 JordanRinke_ joined #salt
02:40 tamentis joined #salt
02:40 Zuru joined #salt
02:41 xinkeT joined #salt
02:42 vbabiy__ joined #salt
02:44 BenCoinanke_g joined #salt
02:44 tru_tru joined #salt
02:44 longdays_ joined #salt
02:44 btorch joined #salt
02:44 tmmt_ joined #salt
02:44 d1gital joined #salt
02:44 utahcon joined #salt
02:44 elithrar_ joined #salt
02:44 aletourneau joined #salt
02:44 jpcw joined #salt
02:44 yomilk joined #salt
02:44 techhat joined #salt
02:44 sashka_u1 joined #salt
02:44 ajw0100 joined #salt
02:44 jphall joined #salt
02:44 tempspace_ joined #salt
02:44 ioni joined #salt
02:44 ravibhure joined #salt
02:44 asnark_ joined #salt
02:45 Damoun joined #salt
02:45 imil_ joined #salt
02:45 asnark_ joined #salt
02:45 bigmston1 joined #salt
02:45 xzarth joined #salt
02:45 jeff___ joined #salt
02:45 lpn joined #salt
02:45 tomtomtomtomtom joined #salt
02:45 smkelly_ joined #salt
02:46 ravibhure1 joined #salt
02:46 analogby1e joined #salt
02:46 lionel joined #salt
02:46 kasanop joined #salt
02:46 ioni joined #salt
02:46 johnny_bravo_ joined #salt
02:47 tedski- joined #salt
02:47 jtang joined #salt
02:47 tmmt__ joined #salt
02:47 bemehow joined #salt
02:47 dave_den joined #salt
02:47 sroegner_ joined #salt
02:48 elithrar1 joined #salt
02:48 ay_ joined #salt
02:48 n0arch_ joined #salt
02:48 Ryan_Lane2 joined #salt
02:49 lahwran_ joined #salt
02:49 fxdgear_ joined #salt
02:49 gmtech_ joined #salt
02:49 Ryan_Lane3 joined #salt
02:49 L0j1k joined #salt
02:49 MindDrive_ joined #salt
02:50 _monokrome joined #salt
02:50 utahcon joined #salt
02:50 crazysim joined #salt
02:50 manfred joined #salt
02:50 jacksontj joined #salt
02:51 druonysus joined #salt
02:51 druonysus joined #salt
02:51 drags joined #salt
02:51 basepi joined #salt
02:51 msciciel joined #salt
02:51 lpn joined #salt
02:52 blast_hardcheese joined #salt
02:52 philipsd6 joined #salt
02:52 rojem joined #salt
02:53 gmoro joined #salt
02:54 rojem joined #salt
02:55 NV joined #salt
02:55 SEJeff_work joined #salt
02:55 lionel joined #salt
02:55 csa1 joined #salt
02:55 jacksontj_ joined #salt
02:56 skullone joined #salt
02:56 snuffeluffegus joined #salt
02:56 anteaya joined #salt
02:57 Simon_ joined #salt
02:57 austin_laptop joined #salt
02:57 rojem joined #salt
02:57 terminalmage joined #salt
02:57 crazysim_ joined #salt
02:58 djaykay joined #salt
02:58 dfinn joined #salt
02:58 dfinn left #salt
02:59 alekibango joined #salt
03:00 torrancew joined #salt
03:00 rackermanfred joined #salt
03:00 basepi_ joined #salt
03:00 beardo_ joined #salt
03:01 elfixit joined #salt
03:02 jpcw joined #salt
03:05 xl joined #salt
03:05 lpn joined #salt
03:05 utahcon_ joined #salt
03:06 skullone joined #salt
03:06 kermit joined #salt
03:07 sirtaj joined #salt
03:08 Ryan_Lane joined #salt
03:09 lpn joined #salt
03:10 ebovine joined #salt
03:11 twinshadow joined #salt
03:18 Regek joined #salt
03:19 rojem joined #salt
03:20 rojem joined #salt
03:21 joehoyle joined #salt
03:22 rostam joined #salt
03:28 joehoyle joined #salt
03:28 kalloc joined #salt
03:29 giantlock joined #salt
03:29 travisfischer joined #salt
03:29 ckao joined #salt
03:29 andersb joined #salt
03:30 ebovine joined #salt
03:30 rostam joined #salt
03:32 toastedpenguin joined #salt
03:40 jeddi joined #salt
03:41 jtang joined #salt
03:52 forrest joined #salt
03:57 jeff___ joined #salt
03:59 TJ1980 joined #salt
04:07 frasergraham joined #salt
04:08 fllr joined #salt
04:08 krow joined #salt
04:11 n8n joined #salt
04:17 tzero joined #salt
04:18 sinh___ joined #salt
04:19 krow1 joined #salt
04:19 dren joined #salt
04:20 aletourneau \quit
04:27 fuser joined #salt
04:28 jeremyfelt joined #salt
04:28 kalloc joined #salt
04:30 joehoyle joined #salt
04:30 joehoyle joined #salt
04:34 ravibhure1 left #salt
04:35 jtang joined #salt
04:38 jacksontj_ joined #salt
04:46 ravibhure joined #salt
04:47 teratoma joined #salt
04:48 forrest Is anyone going to SCALE?
04:48 forrest hey Gareth are you around?
04:50 yomilk joined #salt
04:51 anuvrat joined #salt
04:54 mpanetta joined #salt
04:55 mpanetta joined #salt
04:57 fllr joined #salt
04:58 thayne joined #salt
04:58 oz_akan_ joined #salt
05:00 _fllr_ joined #salt
05:00 mgw1 joined #salt
05:06 manfred forrest: i would love to go
05:06 manfred but I can't afford
05:06 manfred it
05:08 Gareth forrest: I am.
05:10 zzzirk so I may be overlooking something, but can I pip install from a source package that I provide via a - source / salt:// directive?
05:11 kedo39 joined #salt
05:11 rawzone joined #salt
05:13 philipsd6 joined #salt
05:14 manfred forrest: pay for my plane ticket?
05:23 l0x3py joined #salt
05:26 frasergraham joined #salt
05:28 kalloc joined #salt
05:29 jtang joined #salt
05:32 UtahDave joined #salt
05:37 fragamus joined #salt
05:39 frasergraham joined #salt
05:42 jnials joined #salt
05:55 Psyke joined #salt
06:01 Ryan_Lane joined #salt
06:03 delkins joined #salt
06:03 DaveQB joined #salt
06:06 gw joined #salt
06:08 jalbretsen joined #salt
06:23 jtang joined #salt
06:24 frasergraham joined #salt
06:27 aurigus joined #salt
06:27 aurigus joined #salt
06:28 kalloc joined #salt
06:31 joehoyle joined #salt
06:33 jboss joined #salt
06:35 jboss how to install jboss in salt minion using pkg installation
06:36 jboss this is my jboss.sls
06:36 jboss jboss-as-7.1.1:   pkg:     - installed   service:     - running     - require:       - pkg: jboss-as-7.1.1
06:37 Furao yay no \n
06:38 Furao yaml need \n
06:44 lahwran joined #salt
06:45 sroegner_ joined #salt
06:46 tyler-baker joined #salt
06:48 kolaman joined #salt
06:48 tyler-baker left #salt
06:49 joehoyle joined #salt
06:52 jacksontj_ joined #salt
06:55 kolaman hi all, I am playing with saltsatck and have installed nagios nrpe client, added our default template to the client but while modifying the nrpe after words I am getting conflict erorr here is my state http://pastebin.com/hcffshu7
06:55 kolaman here is the error that I get Rendering SLS "base:servers" failed: Conflicting ID "/etc/nagios/nrpe.c
06:56 krow joined #salt
07:00 fllr joined #salt
07:01 Furao kolaman: you need different ID
07:01 Furao the ID don't absolutely need to be the filename
07:02 Furao don't use file.sed
07:02 Furao you already have file.managed
07:02 Furao no need to think like you're still using bash :P
07:02 Furao ~/sandbox/salt/common find * -type f | xargs wc -l | tail -n 1
07:02 krow joined #salt
07:02 Furao 76515 total
07:03 Furao just in a single of my salt repo I have so much lines and no single file.sed
07:03 oz_akan_ joined #salt
07:07 kolaman Furao: no need to think like you're still using bash :P :D
07:08 asnark_ left #salt
07:08 favadi joined #salt
07:09 kolaman Furao: not sure how to modify some stuff in a file without sed with salt
07:10 kolaman actually just learning it right now
07:10 favadi joined #salt
07:12 Furao as you already use file.managed just perform your modification straight into the source instead of running file.sed after it had been rendered
07:14 joehoyle joined #salt
07:17 Furao I Was going to point show you my old github public repo of example of formulas (with a lot of NRPE examples), but it's so old that I'm ashamed of it
07:17 jtang joined #salt
07:19 rogst joined #salt
07:19 kolaman Furao: no worries that will be new for me atleast :)
07:20 Furao look around https://github.com/bclermont/states/tree/master/states/nrpe
07:20 Furao today I have a testing framework and extensive nrpe based monitoring
07:20 Furao I have 4 guys working full time on this
07:21 Furao this is a cheap ancestor of what we have today
07:22 nlb joined #salt
07:26 gammalget joined #salt
07:26 anuvrat joined #salt
07:28 kalloc joined #salt
07:30 kolaman Furao: :)
07:31 fllr joined #salt
07:32 david_a joined #salt
07:33 slav0nic joined #salt
07:33 slav0nic joined #salt
07:36 nebuchadnezzar joined #salt
07:38 UtahDave joined #salt
07:41 Nexpro1 joined #salt
07:42 ml_1 joined #salt
07:42 jtang joined #salt
07:43 thayne joined #salt
07:54 krow1 joined #salt
07:54 psyl0n joined #salt
07:55 kalloc joined #salt
07:55 ndrei joined #salt
07:56 d1rk joined #salt
07:59 chet_ joined #salt
08:01 ccase joined #salt
08:01 fllr joined #salt
08:03 balboah joined #salt
08:05 oz_akan_ joined #salt
08:05 Poooogles joined #salt
08:10 ml_1 joined #salt
08:11 fragamus joined #salt
08:13 harobed joined #salt
08:13 keekz joined #salt
08:14 tsantero joined #salt
08:14 harobed joined #salt
08:14 Corey joined #salt
08:15 JordanRinke joined #salt
08:16 mr_chris joined #salt
08:16 Kenzor joined #salt
08:16 AlcariTheMad joined #salt
08:16 eculver joined #salt
08:16 eculver joined #salt
08:16 zooz joined #salt
08:16 elithrar joined #salt
08:16 psyl0n joined #salt
08:16 retr0h joined #salt
08:16 retr0h joined #salt
08:18 Psyke joined #salt
08:18 ml_11 joined #salt
08:18 dwfreed joined #salt
08:19 EugeneKay joined #salt
08:20 carmony joined #salt
08:22 elithrar joined #salt
08:23 eculver joined #salt
08:24 samkottler joined #salt
08:24 che-arne joined #salt
08:25 Ahlee joined #salt
08:26 L0j1k joined #salt
08:26 superlazy joined #salt
08:26 EugeneKay joined #salt
08:27 ndrei joined #salt
08:27 aarontc joined #salt
08:30 elithrar_ joined #salt
08:34 sroegner_ joined #salt
08:37 giantlock_ joined #salt
08:38 gildegoma joined #salt
08:39 n8n joined #salt
08:39 tomspur joined #salt
08:39 tomspur joined #salt
08:40 dh joined #salt
08:41 d1rk joined #salt
08:45 linjan_ joined #salt
08:48 elithrar joined #salt
08:49 anuvrat joined #salt
08:53 yomilk joined #salt
08:54 yomilk_ joined #salt
09:01 fllr joined #salt
09:02 MrTango joined #salt
09:05 oz_akan_ joined #salt
09:06 kadel joined #salt
09:07 elithrar joined #salt
09:10 dh joined #salt
09:10 robinsmidsrod I'm having problems installing virtualenvwrapper so that I can use pip on Ubuntu 10.04 LTS (works fine on 12.04). Get this message: "State pip.installed found in sls pip is unavailable"
09:12 robinsmidsrod it's pip 1.4.5 installed on 10.04
09:14 thayne joined #salt
09:15 Poooogles joined #salt
09:16 Poooogles joined #salt
09:18 Iwirada joined #salt
09:19 lessismore joined #salt
09:20 krak3n` joined #salt
09:20 elithrar joined #salt
09:25 krak3n` joined #salt
09:26 kadel joined #salt
09:29 miguitas joined #salt
09:36 anuvrat joined #salt
09:36 jtang joined #salt
09:42 iMil joined #salt
09:45 krow joined #salt
09:49 ml_1 joined #salt
09:51 batulin-s joined #salt
09:54 batulin-s Hi all, why in portage We don't have 2014 version? Now available 16,17 or 9999 . http://packages.gentoo.org/package/app-admin/salt
09:55 Bosse left #salt
09:55 batulin-s How can I install 2014 version using emerge?
09:57 krow joined #salt
09:58 zz_Cidan joined #salt
09:59 anuvrat joined #salt
10:00 millz0r joined #salt
10:01 UtahDave batulin-s: I'm not sure exactly for 2014.1.    2014.1 hasn't been officially released, it's still in RC
10:01 fllr joined #salt
10:01 kadel joined #salt
10:02 ml_1 joined #salt
10:02 rvm joined #salt
10:02 rvm how to run rvm install 2.1.0 in salt-minion
10:02 robinsmidsrod any reason why pip.installed doesn't work on ubuntu 10.04 (yeah, I know it's old)
10:02 krow joined #salt
10:03 robinsmidsrod (pip_state)
10:03 _fllr_ joined #salt
10:04 batulin-s <@UtahDave> thank you
10:06 oz_akan_ joined #salt
10:07 rvm @rome:~$ sudo salt '*' cmd.run 'rvm install 2.1.0' italy:     /bin/bash: rvm: command not found paris:     /bin/bash: rvm: command not found
10:08 Poooogle_ joined #salt
10:08 krow joined #salt
10:09 gmtech I've got a salt-master but it hasn't registered itself as a minion
10:10 gmtech i.e. i want to use the salt-master to salt itself with other things
10:10 gmtech What do I need to do?
10:12 Mua joined #salt
10:12 njpatel joined #salt
10:13 baoboa joined #salt
10:13 yomilk joined #salt
10:14 fxhp joined #salt
10:14 zz_Cidan joined #salt
10:14 ndrei joined #salt
10:16 Kenzor gmtech: did you bootstrap it with the bootstrap oneliner?
10:16 Kenzor the command with curl or wget and | sudo sh
10:17 Kenzor the example on that page for installing a salt-master specifies the options -M and -N
10:17 Kenzor -M installs the master but -N says "don't install a minion"
10:17 Kenzor if you used that than that's the reason you don't have a minion
10:22 agend joined #salt
10:23 sroegner_ joined #salt
10:25 UtahDave gmtech: you have to install the salt-minion on your master.   then set the  /etc/salt/minion      master: localhost
10:26 UtahDave robinsmidsrod: I'd look in the pip execution module in the __virtual__ function to see its requirements and see if you machine complies
10:27 robinsmidsrod UtahDave: actually, I figured it out, when you try to install virtualenvwrapper with pip (1.5.2) it complains that an old version of pip (0.3.1) is installed in /usr/lib/
10:27 robinsmidsrod UtahDave: so I had to install pip with easy_install and force python-pip package to be removed
10:28 UtahDave ah, ok.  glad you caught that
10:28 robinsmidsrod UtahDave: this is my workaround - https://gist.github.com/robinsmidsrod/8972878
10:29 UtahDave cool
10:29 millz0r joined #salt
10:30 robinsmidsrod UtahDave: not sure if this should be reported as a bug on virtualenvwrapper as a newer version of pip was located in /usr/local
10:31 jtang joined #salt
10:32 rewerlin joined #salt
10:32 UtahDave robinsmidsrod: Hm.  not sure either.
10:32 UtahDave robinsmidsrod: You might go ahead and open an issue
10:32 robinsmidsrod UtahDave: and I used the pip binary from /usr/local to install
10:33 carlos joined #salt
10:33 rewerlin Hi, is salt server can be installed on Suse 11?
10:33 rewerlin ERROR: Versions lower than SuSE 11 SP2 are not supported.  * ERROR: Please consider upgrading to the next stable 81%-- I`ve got this message
10:35 Poooogles joined #salt
10:39 Paul___ joined #salt
10:40 UtahDave rewerlin: I'm not sure, exactly.  Could you ask on the salt-users mailing list? Our Suse packager should see it there.
10:40 robinsmidsrod UtahDave: filed - https://bitbucket.org/dhellmann/virtualenvwrapper/issue/224/pip-install-virtualenvwrapper-finds-old
10:42 UtahDave thanks
10:43 rewerlin thanks
10:43 zz_Cidan joined #salt
10:43 Vivi-Away joined #salt
10:43 Cidan joined #salt
10:45 Vivi-1 joined #salt
10:56 sgflt joined #salt
11:00 diegows joined #salt
11:01 fllr joined #salt
11:01 Rory left #salt
11:01 sgviking joined #salt
11:02 Simo_____ joined #salt
11:02 faldridge joined #salt
11:07 oz_akan_ joined #salt
11:24 joehoyle joined #salt
11:25 jtang joined #salt
11:27 Rory joined #salt
11:27 Rory Within a (jinja) template, how do I insert the text equal to "the fqdn_ipv4 of the server with role 'foo' " ?
11:32 insatsu joined #salt
11:34 scoates joined #salt
11:35 TJ1980 joined #salt
11:38 nhubbard joined #salt
11:41 Flusher joined #salt
11:42 Furao "of the server" ? you mean from all the VM managed by salt?
11:42 Furao s/VM/servers/
11:42 Rory Yes
11:42 Rory From anything salt knows about
11:42 Rory with 'role:foo'
11:43 Furao role is defined in? pillars? grains?
11:43 Furao for that I'm using salt mine
11:43 Rory role is definied in a grain
11:43 Furao this is how I implemented automatic monitoring configuration on server side, if VM is role X than monitor that
11:44 Rory I already have all the infrastructure set up, I just need to know how to get the value of a particular grain from within a Jinja template
11:44 Rory I'm trying to write the IP of my monitoring server to a config file on the minions
11:46 Furao from a jinja template, it's a matter of calling mine.data
11:46 Furao use pillar
11:46 Furao what if you install VM before monitoring exists?
11:47 Rory VM?
11:47 Rory These are Amazon stacks
11:47 Furao EC2 instance are VMs :)
11:47 Rory They're brought up by cloudformation in a specific order
11:47 Furao ah ok
11:47 Furao personally, I keep that info in pillar
11:48 Rory The info already exists in a grain
11:48 Rory I can see it opn the command-line when I run sudo salt -G 'role:zabbixserver' grains.items
11:48 Rory mine.data looks maybe like what I need, how do I use that?
11:49 Rory I can find reference guides but not general guides
11:50 Furao i'm afraid that it's poorly documented
11:50 Furao basically the minion run a salt module at specified frequency
11:50 Rory So currently in my config file which is managed through salt (jinja) it's just hard-coded as "changeme"
11:50 Furao and it push the output of that module to the master that stores it
11:50 Furao from other minion you can ask the master to give you that data
11:51 Furao so if the minion you want data from is off, you still get it
11:53 sroegner_ joined #salt
11:55 oeuftete joined #salt
11:55 Rory The data is stored in a grain - If I run "sudo salt -G 'role:zabbixserver' grains.items" I can see a "fqdn_ipv4" grain, but I think it's a singleton list because I can't access its value directly
11:55 Rory That is, "sudo salt -G 'role:zabbixserver' grains.item fqdn_ipv4" doesn't give me a value
11:56 Rory I appreciate your help Furao, I'm reasonably new to config management like this; I used a little of Puppet in my old job, but Salt is a slight paradigm shift
11:57 rvm joined #salt
11:57 rvm how to install salt pkg in user specific of the minion witout system specific
11:58 Rory rvm: Installing a package like that depends on the distribution I guess, what system are you on?
11:58 rvm linux
11:58 Tanoti joined #salt
11:59 rvm and i want install rvm 2.1.0
11:59 agend joined #salt
11:59 Rory rvm: Also do you mean, "how do I install a package *using salt*, and have it in some user's local directory"?
11:59 rvm exactly
12:00 rvm do let me know how to do this
12:00 gmtech when I used to do RVM with puppet, I used to have a jenkins job which built RVM, ruby and anything required, and then packaged up the contents of .rvm as a deb/rpm, and then just install it
12:01 gmtech (with pkg. installed )
12:01 fllr joined #salt
12:02 rvm Rory: do let me know
12:03 Simon_ joined #salt
12:04 rvm Rory- i know to install a package using salt. but i want to know to install it in User's local directory
12:07 oz_akan_ joined #salt
12:09 oz_akan__ joined #salt
12:14 Poooogles joined #salt
12:18 DaveQB joined #salt
12:18 ndrei joined #salt
12:19 jtang joined #salt
12:22 EntropyWorks joined #salt
12:32 zzzirk joined #salt
12:38 ndrei joined #salt
12:38 ml_1 joined #salt
12:39 drawsmcgraw joined #salt
12:48 lyddonb joined #salt
12:50 echos joined #salt
12:50 babilen joined #salt
12:50 babilen joined #salt
12:50 fllr joined #salt
12:50 SkyRocknRoll__ joined #salt
12:50 gamingrobot joined #salt
12:50 Jahkeup joined #salt
12:51 gadams999 joined #salt
12:51 gadams999 left #salt
12:51 _fllr_ joined #salt
12:53 elfixit joined #salt
12:53 gadams9991 joined #salt
12:54 slav0nic joined #salt
12:56 faldridge joined #salt
12:59 blee joined #salt
13:01 fllr joined #salt
13:03 krow joined #salt
13:09 TJ1980 joined #salt
13:12 krow joined #salt
13:13 jtang joined #salt
13:15 bagel_nimbius_ joined #salt
13:16 bagel_nimbius_ morning.  does salt have a revision control model like chef/
13:16 kadel joined #salt
13:16 bagel_nimbius_ or does it need one?
13:19 TamCore joined #salt
13:20 vbabiy_ joined #salt
13:25 ccase joined #salt
13:34 L0j1k joined #salt
13:47 kalloc joined #salt
13:49 ipmb joined #salt
13:52 ndrei joined #salt
13:52 che-arne joined #salt
13:52 madduck joined #salt
13:52 madduck joined #salt
13:54 bwq joined #salt
13:55 NV joined #salt
13:57 ml_1 joined #salt
13:58 kalloc joined #salt
14:04 arthurlutz joined #salt
14:05 juicer2 joined #salt
14:06 psyl0n joined #salt
14:07 vejdmn joined #salt
14:07 jtang1 joined #salt
14:07 raff joined #salt
14:07 raff hi there
14:07 arthurlutz I had some token errors on authentication, so I did rm /var/cache/salt/master/tokens/
14:08 bagel_nimbius joined #salt
14:08 bob2 left #salt
14:08 arthurlutz now I get "Failed to authenticate, is this user permitted to execute commands?"
14:08 arthurlutz even as root
14:08 arthurlutz does anyone know how to fix this ?
14:08 agent_47 joined #salt
14:08 bagel_nimbius hi salt.  sorry for the reposts im having connectivity issues.  does salt need a git repo similar to Chef?
14:08 oz_akan_ joined #salt
14:09 cpenner461 joined #salt
14:10 jrdx joined #salt
14:10 jaimed joined #salt
14:10 nahamu bagel_nimbius: I think technically you could get by without using any git repositories, but why would you want to?
14:11 cpenner461 joined #salt
14:11 raffdobrazil I'm having some trouble with salt using file.managed with authorized_keys file. The file is in /srv/salt/... and in my original folder, but still got an exception : IOError: [Errno 2] No such file or directory: /srv/salt/erlangworker/authorized_keys
14:11 bagel_nimbius nahamu: for my state files perhaps? or any scripted configurations i might push to machines
14:11 raffdobrazil I tried changing rights (like 777 for the file and its parent) but nothing worked
14:12 agent_47 joined #salt
14:14 nahamu bagel_nimbius: I don't understand.
14:14 bagel_nimbius nahamu: for example the configuration files for ntp, http, etc... that would get pushed by salt to minions may need to be revision controlled
14:14 ml_1 joined #salt
14:15 bagel_nimbius do state files need the same revisioning?  perhaps, but in chef its part of the deployment strategy, as opposed to docs for salt which seem to imply its not considered valuable
14:15 racooper joined #salt
14:15 nahamu well, I've never used chef so I'm not the best person to answer
14:16 nahamu but I know that I always keep all of my state and pillar data in git
14:16 nahamu but that's for me, not for salt.
14:16 nahamu though salt does have the ability to pull straight from a git repostory if you configure it to do so.
14:17 bagel_nimbius interesting.  ill have to read into that.
14:17 bagel_nimbius git is certainly my choice
14:18 bagel_nimbius thanks :)
14:18 bagel_nimbius left #salt
14:24 ndrei joined #salt
14:25 fllr joined #salt
14:29 gnugnu1 joined #salt
14:31 raffdobrazil No one has any idea? this thing is driving me crazy
14:35 Pash joined #salt
14:38 techhat joined #salt
14:41 debaser quick noob question: how can i pass refresh=False to pkg module in my sls file?
14:41 millz0r debaser: -refresh: False ?
14:42 debaser e.g. i want to make sure apache is installed, but dont want to do apt-get update (which pkg.installed invokes)
14:42 debaser if im running pkg.install via salt client then i can pass refresh=False to avoid apt update
14:42 debaser but i dont know how to do the same in state file
14:43 debaser i tried adding - refresh: False but i didnt work
14:43 millz0r the states you pass in salt file are in reality just function arguments
14:44 millz0r so refresh: false should work
14:44 millz0r pkg.latest:
14:44 millz0r - name: pkg_name
14:44 millz0r - refresh: True
14:44 millz0r this works for me for setting it to true
14:45 farra joined #salt
14:48 BogdanR Hi. I have a top.sls file in which I deploy a package with a config file for all the machines
14:48 BogdanR I would like to have some machines with a different config file
14:49 BogdanR Currently it seems that the "*" machines are overwriting the config for those specific machines even though the specific machines are specified last
14:49 BogdanR How should this be handled the best?
14:49 millz0r BogdanR: different pillar files?
14:50 BogdanR I am not sure what is pillar?
14:50 millz0r mhm
14:50 debaser millz0r: ive tried exactly that (but with False) and its not working
14:50 GradysGhost joined #salt
14:50 debaser it seems it just ignores refresh option
14:50 millz0r so you have your salt states - it's the actual code you run
14:51 millz0r and the pillar files, which are 'environment' variables specific to the box/environment
14:51 millz0r the salt states call upon pillar files to get host/environment/etc.-specific data
14:51 millz0r allowing you to keep the code the same, only change the pillar values for configuration
14:52 BogdanR hmmm
14:52 millz0r debaser: can you paste your code somewhere
14:53 quickdry21 joined #salt
14:53 BogdanR So I should not be putting the specific machines in the top.sls file but instead I should be using pillar somehow
14:53 BogdanR ?
14:53 BogdanR In top.sls I am matching agains minion_id
14:54 martoss joined #salt
14:54 martoss left #salt
14:54 debaser vim:
14:54 debaser pkg.latest:
14:54 debaser - name: vim
14:54 debaser - refresh: False
14:55 debaser and i run: salt 'something' state.sls vim
14:55 Simon_ joined #salt
14:55 debaser resulting output doesnt mention refresh option being used at all
14:56 debaser and apt-get update runs on the target minion before installing
14:56 bhosmer joined #salt
14:57 kadel joined #salt
14:59 faldridge joined #salt
15:00 ipmb joined #salt
15:01 jtang1 joined #salt
15:01 pako joined #salt
15:02 patz Hi
15:02 patz I have tried googling for info about salt and it's model for communication, push/pull
15:02 diegows joined #salt
15:02 elfixit joined #salt
15:03 millz0r BogdanR: you should still match the salt states in top.sls
15:03 patz how does salt handle servers in dmz?
15:03 millz0r but then you should also match against pillar values in pillar top.sls
15:03 millz0r debaser: how do you know its running?
15:03 millz0r debaser: it might be cause of using  pkg.latest which automatically gets the latest package
15:03 millz0r debaser: try using pkg. installed (not sure if you did that before)
15:04 millz0r patz: it doesnt
15:04 millz0r patz: you need to have a ssl connection for salt to work
15:04 millz0r patz: although afaik there is a ssh method in latest version, I'm not using it so I wouldn't know
15:05 millz0r debaser: 'Verify that the named package is installed and the latest available package. If the package can be updated this state function will update the package. Generally it is better for the installed function to be used, as latest will update the package whenever a new package is available.'
15:05 patz millz0r: ok, that's where I got stuck in my search, but I wonder what is the true benefit of having a pull-only communication model?
15:05 millz0r this is documentation for pkg. latest, which doesn't have a refresh argument
15:05 debaser millz0r: i can see update running in ps output
15:06 debaser ive tried installed as well, same result
15:06 millz0r sorry for wrong example, seems my colleague didn't notice refresh not being there
15:07 millz0r patz: I'm not really experienced enough to answer that question from a sys-ad perspective...
15:07 patz from my experience in the financial industry I would say that having servers isolated in small dmz is the norm, which makes picking out a config management tool a bit difficult as the modern tools seem to prefer the pull method
15:09 debaser the fact that refresh=False is default makes things even weirder
15:10 millz0r patz: the way we deal it here is to have masterless setups on production servers
15:11 millz0r since our live servers are disconnected from anything besides the proxy in the dmz
15:11 millz0r we  just copy the states over the box and run masterless there
15:11 millz0r but we used to have a production salt master that sit in the same network as live boxes and run states from there
15:12 patz but if you have to do it manually, doesn't that defeat the purpose of the tool?
15:12 millz0r no
15:12 millz0r you only have to copy the states manually
15:12 millz0r they still exucte the same code
15:12 millz0r its really a one liner to copy it there
15:13 patz so you do the push operation manually and then the salt agent/minion does the rest?=
15:14 rojem joined #salt
15:14 millz0r yes
15:14 mr_chris I have difficulty looking up what is and is not available in Jinja. Sometimes what I find in http://jinja.pocoo.org/docs/ does none always seem to apply with Jinja and salt. What is a good reference to use?
15:14 mr_chris *does not always...
15:15 mr_chris While I'm at it, how do I get the current time in Jinja?
15:15 patz millz0r: ok, thanks for the answers, what I needed to know :)
15:16 patz left #salt
15:16 justBob joined #salt
15:16 millz0r np
15:18 jergerber joined #salt
15:18 raffdobrazil hi there, I'm having some trouble with salt using file.managed with authorized_keys file. The file is in /srv/salt/... and in my original folder, but still got an exception : IOError: [Errno 2] No such file or directory: /srv/salt/erlangworker/authorized_keys. I tried changing rights (like 777 for the file and its parent) but nothing worked.. any idea ?
15:18 themadcanudist joined #salt
15:19 millz0r whats your file.managed code?
15:19 raffdobrazil millz0r: http://pastebin.com/jVZcSuX0
15:20 linjan_ joined #salt
15:20 GradysGhost raffdobrazil: /home/adserver/.ssh is a directory which exists?
15:21 raffdobrazil GradysGhost: yep.
15:21 GradysGhost Is salt-minion running as root?
15:22 raffdobrazil yes
15:22 GradysGhost Oh, but it's throwing the error on the file on the master.
15:22 raffdobrazil my master is my minion
15:22 raffdobrazil i have only one instance
15:22 GradysGhost ok, and it's referring to the file on the master, so
15:23 rostam joined #salt
15:23 GradysGhost In /etc/salt/master is your base salt root /srv/salt?
15:23 GradysGhost your file_roots: base: that is?
15:24 GradysGhost And a follow-up, does that file path + /erlangworker/authorized_keys exist
15:24 raffdobrazil I dont have any master file.
15:24 raffdobrazil I have in minion :
15:24 raffdobrazil master: 127.0.0.1     \n file_client: local
15:25 GradysGhost Where is your salt-master getting its configuration?
15:26 raffdobrazil yes, directory exists. and i'm copying a lot of other files from it. It just refuses this one.
15:26 raffdobrazil I have a Vagrant file which copy my "salt" folder into /srv/salt of my minion
15:26 GradysGhost That is a doozy. Sounds like all the pieces are there.
15:26 GradysGhost Try running your highstate or whatever again with the master and minion both running with debug logging.
15:27 GradysGhost Add -l debug
15:27 GradysGhost See if it spits out any additional info that's more telling.
15:28 raffdobrazil doesn't show more informations
15:28 raffdobrazil I still have those lines : http://pastebin.com/h9U3d7R1
15:30 GradysGhost Is that the minion or master log?
15:31 raffdobrazil minion
15:31 raffdobrazil im running masterless
15:32 cnelsonsic joined #salt
15:32 GradysGhost Okay, so you're running salt-call state.highstate to produce this error?
15:32 blee_ joined #salt
15:32 raffdobrazil exactly
15:34 joehoyle joined #salt
15:34 GradysGhost Well, if all that's the case, I don't see why it should be throwing that.
15:34 GradysGhost What version of the minion are you on?
15:35 jeremyBass1 joined #salt
15:35 raffdobrazil test.version says 0.17.5
15:36 forrest joined #salt
15:36 GradysGhost Have you checked the line of code that refers to to see if there's an obvious problem there?
15:36 sroegner_ joined #salt
15:36 raffdobrazil Btw, i have a file on that same folder, and on that same .sls that copy itself the right way.
15:36 AdamSewell joined #salt
15:36 raffdobrazil Mh nope i didnt checked at the code.
15:37 GradysGhost You may require someone with experience beyond mine.
15:37 raffdobrazil Well ok, but thank you anyway (:
15:37 GradysGhost I'm only even saying to check the code because I can't think of anything else. I don't know what to tell you to look for there.
15:38 gothix joined #salt
15:38 abe_music joined #salt
15:39 Gifflen joined #salt
15:40 raffdobrazil Ok, but I just think i'm a noob with an obvious problem but I can't see it\
15:41 alunduil joined #salt
15:44 pass_by_value joined #salt
15:44 dcolish joined #salt
15:45 rhand joined #salt
15:46 agent_47 joined #salt
15:47 kermit joined #salt
15:49 gnugnu2 joined #salt
15:50 psyl0n joined #salt
15:50 psyl0n joined #salt
15:52 ipmb joined #salt
15:54 kossy joined #salt
15:56 jtang1 joined #salt
15:57 JesseCW joined #salt
15:58 Psyke joined #salt
16:02 agent_47 joined #salt
16:04 yogi joined #salt
16:06 yogi hi, I moving my salt backend from roots to ssh+git, is it enough if master talks to the git server or do the minions also need access to git server ?
16:06 dave_den joined #salt
16:07 mordred joined #salt
16:08 cedwards yogi: the master should be the only one that accesses the git server
16:08 sgflt joined #salt
16:09 viq yogi: only the master talks to git. But if you have syndics, they're masters in that respect, they need to access git too
16:10 themadcanudist left #salt
16:10 cachedout joined #salt
16:12 yogi thanks guys, seems like I have an issue
16:13 yogi I have a modified backend conf to
16:13 yogi fileserver_backend:   - git gitfs_remotes:   - git+ssh://adm@git.t1.de/saltstackgit
16:14 ddd_ joined #salt
16:15 yogi I can perform  git fetch -v From git.t1.de:saltstack  = [up to date]      master     -> origin/master
16:15 yogi which works
16:16 yogi put when I perform a salt call it does not return anything
16:17 dave_den joined #salt
16:18 psyl0n joined #salt
16:18 viq yogi: in one sentence you mention saltstackgit, in another saltstack as the name of the repo, so maybe you have a typo?
16:22 jslatts joined #salt
16:25 anuvrat joined #salt
16:25 rgbkrk joined #salt
16:26 yogi viq: I just corrected that to saltstack, but still no dice
16:27 yogi Is there a way I  can test gitfs backend ?
16:27 sgflt joined #salt
16:27 yogi the docs dont describe a way to troubleshoot
16:28 viq yogi: have you looked at master logs?
16:29 viq yogi: you could run master in foreground with debug on
16:29 viq yogi: also in /var somewhere there's salt's cache, that's where master checks the git stuff out
16:29 yogi viq: yes I have done that
16:29 yogi viq: I 'm running master in foreground with debug on
16:30 viq yogi: also "salt-run fileserver.update" to speed things up
16:31 yogi I dont see any git messages
16:31 xmltok joined #salt
16:32 viq do you have PyGit/python-git/whatever-it-is-named-there installed?
16:32 yogi viq: you nailed it , I now see it is waiting for a password
16:32 viq there ya go ;)
16:33 yogi I use .ssh/config to pass key options . It seems salt is not reading this
16:34 yogi Is this not supported ?
16:34 jslatts joined #salt
16:34 yogi I cannot use the default id_rsa option
16:36 gnugnu2_ joined #salt
16:39 viq yogi: http://docs.saltstack.com/topics/tutorials/gitfs.html
16:39 viq "The private key used to connect to the repository must be located in ~/.ssh/id_rsa for the user running the salt-master."
16:40 dave_den yogi: ssh_config settings are not supported yet.  https://github.com/saltstack/salt/issues/5372  and   https://github.com/saltstack/salt/pull/9566
16:40 viq And you don't have to run salt-master as root
16:40 mgw1 joined #salt
16:41 yogi viq: dave_den:  thanks for the update
16:42 yogi I 'm running my master as nonroot user ...
16:45 frasergraham joined #salt
16:45 yogi I wll wait for ssh_config support . once again thanks guys
16:50 jtang1 joined #salt
16:53 astol joined #salt
16:53 jeremyfelt joined #salt
16:54 mgw1 joined #salt
16:55 AdamSewell joined #salt
16:55 AdamSewell joined #salt
16:56 jimallman joined #salt
16:57 yomilk joined #salt
16:59 kermit joined #salt
17:01 Iwirada left #salt
17:03 Poooogle_ joined #salt
17:09 Rory left #salt
17:11 pdayton joined #salt
17:13 KyleG joined #salt
17:13 KyleG joined #salt
17:13 debaser joined #salt
17:15 jankowiak joined #salt
17:18 hunter joined #salt
17:23 bhosmer joined #salt
17:24 troyready joined #salt
17:24 bemehow joined #salt
17:25 debaser hmm can i someshow make mod_init of pkg state not do the package database refresh on the first (or any) package?
17:25 debaser reference: http://docs.saltstack.com/ref/states/writing.html#mod-init-interface
17:27 debaser anyone?
17:30 debaser this really isnt a good default imho
17:30 scoates debaser: I'd like to sometimes do that, too.
17:30 debaser should be made optional
17:30 scoates could make my highstates a lot faster
17:30 debaser cannot have hundreds of machine doing apt-get update at the same time :F
17:31 debaser at worst im gonna get blacklisted at security.debian.org :D
17:31 scoates debaser: this isn't what you asked, but maybe apt-cacher-ng could help you?
17:31 cedwards refresh: False
17:31 forrest http://docs.saltstack.com/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed
17:31 forrest yea exactly
17:31 forrest set - refresh: False
17:31 forrest problem solved
17:31 debaser ive tied refresh: False, doesnt cut it
17:31 scoates you have to put "refresh: False" in every pkg def, though, yeah?
17:31 debaser this happens before pkg state is executed
17:31 forrest debaser, is that the first run?
17:32 debaser yeah
17:32 forrest scoates, yea you would need to.
17:32 forrest it's fast as soon as the update happens though
17:32 forrest debaser, I think the first run does that because the DB hasn't been built yet. But I don't remember the specifics.
17:33 forrest can't install if you don't have the repo data, but I'm not quite as familiar with how it works on ubuntu for the initial creation of a repo
17:34 debaser darn
17:34 debaser ill try apt-cache-ng, thanks scoates
17:34 tharkun joined #salt
17:35 mpanetta joined #salt
17:36 mpanetta joined #salt
17:43 astol joined #salt
17:44 jtang1 joined #salt
17:47 djaime joined #salt
17:51 btorch hi, I'm looking at this abs.com:8080/job/swift-binaries/70/console
17:51 btorch sorry
17:52 chrisjones joined #salt
17:52 mgw1 joined #salt
17:52 btorch I'm looking at this hadoop-formula/hadoop/settings.sls file on saltstack-formulas and I'm just wondering, the '-' on "{%-" is just for whitespace control ?
17:53 yurei joined #salt
17:53 joehillen joined #salt
17:53 forrest btorch, correct
17:54 forrest Take a look at http://jinja.pocoo.org/docs/templates/#whitespace-control btorch
17:54 btorch cool thanks, I wasn't sure if has another meaning there or not
17:55 forrest not that I know of!
17:55 ndrei joined #salt
17:57 thayne joined #salt
17:59 jaimed joined #salt
18:00 iShming_ joined #salt
18:02 debaser1 joined #salt
18:02 scalability-junk forrest: did you revisit your stand on requiring webservers instead of apache for example?
18:02 taion809 joined #salt
18:02 forrest ?
18:02 forrest scalability-junk, on what?
18:03 scalability-junk best practices guide and formulas. Would you suggest for a wordpress state to require: -apache or would you require: -{{ webserver }}
18:03 scalability-junk sorta thing
18:03 forrest oh, I think that would depend on your org. Like I said I don't like everything to be variables like that
18:03 forrest gets annoying
18:03 forrest and takes longer
18:04 forrest so unless your org uses both apache and nginx, I don't see why you would do something like that.
18:05 apergos joined #salt
18:06 kermit joined #salt
18:07 scalability-junk forrest: it's not really about my org, but about general states. I mean it's annoying when you have general states and need to rewrite some apache ones to nginx and some iis to nginx and so on.
18:07 HeadAIX joined #salt
18:08 JordanRinke Morning
18:08 scoates at risk of over-abstracting, maybe there's a case for "provider states" for that stuff.
18:08 forrest I just refuse to put variables for everything
18:08 scoates pkg:webserver or service:webserver could provide either apache or nginx, somehow…
18:08 forrest where does it end?
18:09 forrest plus if you have a ton of states where they're all pulling pillar data, then people need access to the pillar, which is a security issue, and it slows things down
18:09 scalability-junk the thing is what do we want. right. if formulas are only base images alright fine. but if they should evolve to someone being able in halite to click wordpress + nginx + mariadb. it needs abstraction.
18:13 astol hi all, anybody knows if it is possible to execute salt '*' state.highstate AND cmd.run in one go, to remove duplication on connecting/encrypting?
18:13 scoates astol: ugly but `salt '*' cmd.run 'salt-call state.highstate; othercommandhere'` ?
18:13 forrest scoates bleh
18:14 scoates which part? (-:
18:14 forrest the zeromq connection is already established
18:14 forrest that whole thing
18:14 scoates I'm saying lots of questionable things today
18:14 forrest you make me SICK! :P
18:14 jalbretsen joined #salt
18:14 forrest I mean the amount of traffic being pushed over that zeromq connection is so little..
18:15 forrest and the connection is already established anyways from the minion to the master
18:15 scoates thought you might've meant the provider part heh
18:15 forrest oh no
18:16 forrest I mean, I'm all for splitting the community over formulas just like puppet is right? Where there's no standard, and you have the puppet guys doing one thing, and then the example42 guy saying "LOL VARIABLE ALL THE THINGS".
18:16 forrest so then we can configure the states, and a secondary file with all those variables, and the pillar! WOooooooooooooo! :P
18:17 scoates I agree that you should just do the two actions separately
18:18 scoates also: my IRC bouncer's server is having a freakout today.
18:18 forrest scoates, I don't see any errors yet on the IRC
18:18 forrest so that's good
18:18 scoates yeah. keeps disconnecting me and not relaying messages
18:18 dave_den lol@ "LOL VARIABLE ALL THE THINGS"
18:18 scoates one of my VMs is RAM-starved and doing naughty things to the host.
18:18 forrest dave_den, ;)
18:18 forrest dave_den, it annoys me
18:20 astol scoates: nope, that doesn't eliminate anything (state.highstate will initiate another round of connections to master)
18:20 * scoates nods
18:21 Ahlee stupid deadlines making me actually work
18:21 smcquay joined #salt
18:21 astol another question: is there any way to see output of state.highstate only what failed/changed, not 'succeeded' spam
18:21 astol very hard to actually see if there are any errors w/o scrolling
18:23 forrest Ahlee, psssh
18:23 forrest Ahlee, I thought you were in training
18:23 forrest astol, no there is not other than using a dirty grep for the color types
18:24 dave_den astol: state_verbose
18:24 dave_den forrest: ^^
18:24 dave_den http://docs.saltstack.com/ref/configuration/master.html#state-verbose
18:25 alunduil joined #salt
18:26 forrest dave_den, ahh right right, I totally forgot about that
18:26 forrest but the default is False and it's still spamming him?
18:27 dave_den the default is True
18:27 forrest the docs say default false
18:27 forrest lol
18:27 astol dave_den: much love!!
18:28 astol thought it would be cli option
18:28 dave_den <3
18:28 forrest it probably should also be a CLI option
18:29 Ahlee forrest: nah, everybody else on the team is, so I'm stuck out here fielding all questions
18:30 forrest fielding questions from who?
18:30 mwmnj joined #salt
18:30 Ahlee developers, L1s, etc
18:30 forrest ahh
18:30 forrest you need an easy button that says 'please make a ticket'
18:30 forrest gotta track dem interactions
18:31 dave_den 2014.1 was just tagged in git
18:31 forrest woo
18:31 ndrei joined #salt
18:33 forrest dave_den, are you using Salt at work?
18:33 dave_den i am
18:33 forrest cool
18:33 dave_den right now it's used in production for config management.
18:34 fllr joined #salt
18:35 higgs001 joined #salt
18:36 debaser anyone here running minions under non-root user?
18:36 ahammond short of putting production load on a new server, what do you guys recommend to check it's performance?
18:36 forrest for salt?
18:37 ahammond forrest I was thinking more generally, especially disk io
18:37 zooz joined #salt
18:37 forrest ahammond, for only 9 easy payments of 99,999.99 you can get some software to do so for you!
18:37 ahammond I've used bonnie before, but... it always seems pretty sketch
18:38 jtang1 joined #salt
18:41 renoirb I have a question about extending a state. Is it possible to use extend to NOT execute a set states. E.g. ALL nodes use exim, but ONE doesn't need because its using postfix.
18:41 renoirb e.g. same service, different package to provide it.
18:43 faef joined #salt
18:44 dave_den renoirb: http://docs.saltstack.com/ref/states/include.html#exclude
18:44 danielbachhuber joined #salt
18:44 renoirb exclude!? no way!
18:45 dave_den way?
18:45 Ahlee /
18:45 renoirb no, its just brillant :)
18:45 dave_den way!
18:46 scoates renoirb just mentioned another use case for providers… hmm…
18:46 scoates I'll need to think about this (-:
18:46 ausmarton joined #salt
18:48 hunter joined #salt
18:48 scoates dave_den: was it you who helped me with runners last week?
18:48 renoirb glad to help scoates
18:48 dave_den i don't even remember last week
18:49 scoates me neither. entirely too many delicious beers last weekend (-:
18:49 dave_den i probably did, though. do you have another question?
18:50 renoirb Did you go to SaltConf scoates ?
18:50 faef are there any plans to have a proper abstraction for pillars to handle stuff like git?
18:50 scoates no; I was in San Francisco for the start of beer week.
18:50 faef eg fileserver for states?
18:50 * renoirb sees that scoates is not speaking at ConFoo this year.
18:51 scoates dave_den: is there a doc on using those? I set up the runner_dirs, but I forget… do I need a modules/ in there? I'm happy to read about it if there's a doc.
18:51 dave_den faef: not sure what you mean. weren't you playing with git_pillar yesterday?
18:51 scoates renoirb: yeah, not this year. I only submitted 1 talk, and it was rejected. Which is fine.
18:52 dave_den scoates: your runners are just .py files in the runner_dirs path
18:52 dave_den which defaults to /etc/salt/_runners
18:52 scoates dave_den: ah. not in modules/ ? I thought we had a thing with modules vs _modules … ? memory fuzzy
18:52 fllr joined #salt
18:53 renoirb Gosh, dave_den, what you gave me exactly works like i needed, that's perfect!
18:53 dave_den well, minion modules go in your salt file_roots path + '_modules', so by default in base: /srv/salt/_modules
18:53 dave_den renoirb: sweet
18:53 joehoyle joined #salt
18:55 scoates dave_den: *nod* this is for pillar.
18:56 gadams9991 left #salt
18:56 Poooogles joined #salt
18:56 L0j1k joined #salt
18:57 Gareth forrest: still looking for me?
18:57 forrest Gareth, I was just gonna ask about room sharing at SCALE
18:57 forrest if you guys had anything set up
18:57 forrest I'm still considering driving out
18:58 Gareth Nothing official.
18:58 forrest ok
18:59 Gareth We had set something up a few years ago but it got so riddled with spam that we took it down.  You could join the planning list and ask.
18:59 Gordonz joined #salt
18:59 forrest hah understandable. I'm still undecided so I don't know
18:59 forrest I need to review my pycon costs this weekend
18:59 Gordonz joined #salt
19:00 kula joined #salt
19:00 amckinley joined #salt
19:01 Psyke joined #salt
19:01 faef dave_den: and found it thoroughly lacking :(
19:03 druonysus joined #salt
19:05 dave_den faef: i guess the questions is: what are you trying to do?
19:05 faef dave_den: autodiscover and set new branches of a git repo as a new pillar env
19:06 mwmnj joined #salt
19:06 Gareth druonysus: hey :)
19:07 ndrei joined #salt
19:07 dave_den faef: ah, you want the environments to work like gitfs
19:07 faef dave_den: yep, looking at pillar/__init__.py and deciding where to put in the fileserver abstraction
19:07 druonysus Gareth: Hey
19:09 druonysus Gareth: Fancy seeing you here ;)
19:09 Gareth druonysus: I'm everywhere!
19:10 druonysus Gareth: I am starting to believe that to be true!
19:11 xmj channels : #jenkins #salt #pcbsd
19:11 xmj must be.
19:11 dave_den faef: that will be a significant change.. git_pillar should be rewritten to be like gitfs.py
19:11 dave_den including the git provider support
19:11 Gareth xmj: thats all that shows up?
19:12 faef dave_den: yep, git_pillar already seems like a copy paste job from gitfs.py (though with some stuff missing).  I think I'm gonna pull it out of external pillars completely and have a pillar_fileserver_backend
19:12 dave_den gitfs.py is 1455 LOC, git_pillar is currently 229, and the git pillar provider is hardcoded in master.py at least once…
19:13 faef gitfs also has triple the code it needs because its supporting 3 providers
19:13 faef i'm ok with just supporting gitpython
19:13 xmj Gareth: ye
19:13 logix812 joined #salt
19:13 dave_den seems to me the code for both could be used for both gitfs and gitpillar
19:14 Gareth xmj: weird.  some must be hidden.
19:17 gadams9991 joined #salt
19:17 xmj &win 80
19:18 jtang1 joined #salt
19:19 dave_den faef: just skimming the gitfs code, it should not be very hard to turn it into a class that can be reused by gitfs and gitpillar
19:19 krow joined #salt
19:19 faef perhaps, the rampant in place mutation of __opt__ makes following the code difficult
19:21 synfin joined #salt
19:21 moped joined #salt
19:22 jfchevrette joined #salt
19:23 thayne joined #salt
19:23 dave_den faef: i would suggest opening a feature request if you are not familiar with salt code. someone else might be able to bang it out much quicker
19:23 ajw0100 joined #salt
19:23 darless So I'm running a cmd.run, and I have a onlyif that makes sure a directory exists, and the cwd is that directory. The cwd is being checked before the onlyif, which is causing it to fail. Is this correct behaviour?
19:25 cron0 joined #salt
19:26 dave_den darless: the command args are passed to the unless/onlyif checks
19:26 dave_den so yes, it will try to run the onlyif command in the specified cwd
19:26 n8n joined #salt
19:27 darless dave_den: ok
19:28 scoates dave_den: sorry to keep pestering you, but I think maybe it's not runners I need. I'm trying to write a custom module that's available to pillar (in the salt[] dunder, IIRC). Was that something other than runners?
19:28 pirateduck81 joined #salt
19:29 dave_den scoates: yes, that would be an execution module that is only available on the master
19:30 scoates ah. right. sorry I thought it was a runner. ok. again, I'm happy to read a doc on this… do you know how I specify a custom path for an execution module in the master's config?
19:32 dave_den it's the _modules dir in your extension_modules path
19:32 Psyke joined #salt
19:34 scoates ah. no wonder I couldn't find it; it's not here: http://docs.saltstack.com/ref/configuration/master.html
19:34 scoates dave_den: thanks. I'll work with that. also, IIRC it's `modules` not `_modules`
19:34 dave_den ah, my bad
19:35 psyl0n joined #salt
19:40 sroegner_ joined #salt
19:41 ndrei joined #salt
19:41 dave_den anyone here use scrivener or something similar for technical writing?
19:42 kalloc joined #salt
19:42 zooz joined #salt
19:42 jankowiak joined #salt
19:43 scoates weird that external_modules doesn't take a list…
19:43 scoates `extension_modules` I meant
19:43 kalloc joined #salt
19:43 dave_den it's a string.
19:44 scoates yep. the other dirs seem to be lists; that's why I was confused.
19:44 kalloc joined #salt
19:45 n8n joined #salt
19:46 MrTango joined #salt
19:46 cpenner4611 joined #salt
19:47 sgflt joined #salt
19:50 gfa_ how can i set the ENV before pkg.install? i need it to install some debs
19:52 faef dave_den: but I need it now!
19:54 scoates I think I just managed to make my master block itself… and get into state D… and stop responding to `kill -9` … fun? (-:
19:57 SpeeR joined #salt
19:59 btorch hmm can I do a from .. import on a template jinja file instead of within the .sls or that is just wrong ?
20:00 btorch and I should perhaps just import on the state sls file and use context
20:00 dave_den gfa_: there is not a way to do that unless you set the environment of the salt-minion in your startup scripts
20:01 gfa_ dave_den: tempting...
20:01 gfa_ thanks!
20:03 JordanRinke joined #salt
20:07 scoates I'm going to assume that the hard crash was a virtualbox (disk mount) problem
20:08 ml_1 joined #salt
20:10 redondos joined #salt
20:10 redondos joined #salt
20:12 jankowiak joined #salt
20:15 psyl0n joined #salt
20:15 psyl0n joined #salt
20:15 kalloc joined #salt
20:17 dave_den gfa_: out of curiosity, what debs are you needing to set env for?
20:18 gfa_ dave_den: openstack packages, nova-common by now. almost official packages
20:19 gfa_ if i set DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true pkgs can be installed without issues or prompts
20:20 ndrei joined #salt
20:22 dave_den gfa_: can you use debconf to set the info before trying to install the packages? http://docs.saltstack.com/ref/states/all/salt.states.debconfmod.html
20:25 gfa_ dave_den: i'm doing it but is not enough, but there is a lot of questions. it would be easier just overwrite the config with a managed file
20:27 StDiluted joined #salt
20:29 jrdx joined #salt
20:29 MrTango joined #salt
20:31 sgviking joined #salt
20:31 austin987 joined #salt
20:36 magenbrot joined #salt
20:38 faef anyone know if there is any way of communicating with the master from the master that is more efficient than LocalClient?
20:38 joehoyle joined #salt
20:38 faef found it odd that modules called from pillars and pillars themselves don't actually have access to the running master
20:38 btorch is there a way to make a grains call not fail if that grain does not exist ?
20:38 faef whereas remote pillars/states can use the masterapi daemon to get that info
20:38 forrest btorch, do you mean in a state?
20:39 vbabiy_ joined #salt
20:40 btorch forrest: well I mean like in this http://goo.gl/s12JUy
20:41 btorch I'm testing this on a master and minion VMs
20:43 btorch if I remove test it out without using those two grains and instead use like lsb_distrib_id grain it works fine
20:44 btorch so I can only assume it's failing because those productname and manufacturer grains on the VM minion does not exist
20:44 dave_den faef: the pillar is always compiled on the master. the master 'pretends' to be the minion id when compiling the pillar.
20:45 forrest btorch, you mean the productname and manufacturer grains?
20:45 faef dave_den: when pretending to be the minion, it doesn't get the proper file_roots
20:45 btorch forrest: should I perhaps be using salt['grain.item']('XXXX') ?
20:45 forrest btorch, what happens when you query those grains directly?
20:45 n8n joined #salt
20:45 btorch forrest: yes
20:45 btorch forrest: they don't exist
20:45 forrest so you're going to write them?
20:45 dave_den faef: the file_roots variable is changed to the pillar_roots path during the pillar compilation.
20:45 kalloc joined #salt
20:47 dave_den faef: https://github.com/saltstack/salt/blob/develop/salt/pillar/__init__.py#L93
20:47 dave_den it's switched back on line 115.
20:47 btorch forrest: hehe no :) I actually didn't expect the VM not have it ... but I was also hoping that if it didn't exist it would just fall back to an empty string. that's why I'm wondering if perhaps I should be using salt['grains.get']
20:47 forrest btorch, it could be due to you trying to query the grain when the data doesn't exist. As lame as it sounds, you might need to nest an if statement to say {% if grains['productname'] %} then do the {% if grains['productname'] == "item" %}
20:47 forrest btorch, you could also try grains.get
20:47 faef dave_den: yeah I know about the switch, I had to hackily create a MasterMinion to get the REAL file_roots (which essentially reparses master conf) in a module called from a pillar
20:48 btorch forrest: cool let me give that a try
20:48 forrest btorch, I don't know if grains.get will pass it through, worth trying :P
20:49 faef dave_den: but my point stands, there is no way a function that is called within a MWorker can get the currently running Master instance
20:50 scoates is there a way to have salt spit out the rendered jinja before trying to parse it as sls?
20:51 scoates spit out = output on the console/log
20:51 forrest scoates, I would say no, but dave_den will probably prove me wrong again :P
20:51 darless btorch: can't you do {% if salt['grains.get']('productname', '')
20:51 darless forgot a %} at the end of the line
20:51 scoates I like when dave_den does that (-;
20:51 btorch yeah that seemed to have worked now .. jyust testing
20:51 vbabiy_ joined #salt
20:52 forrest btorch, the grains.get, or the if loop?
20:52 forrest if you can do the grains.get, much cleaner
20:52 dave_den scoates: the debug (or maybe 'trace') shows the rendered template data
20:52 btorch using {% if salt['grains.get']('productname', 'None') == "PowerEdge R720" %}
20:52 darless btorch: yup, that should work
20:52 forrest btorch, nice
20:53 scoates dave_den: I think I only see it if the sls was parsed properly… is that possible?
20:53 kballou joined #salt
20:55 btorch yay it works great :)
20:55 rgbkrk joined #salt
20:55 quickdry21 joined #salt
20:55 dave_den scoates: oh, so you wanna see how it's rendering from jinja before it parses the states because you have a state compile error?
20:55 rgbkrk Hey all
20:55 rgbkrk Is there a good way to set an environment variable before I use http://docs.saltstack.com/ref/states/all/salt.states.virtualenv.html
20:55 scoates dave_den: yes
20:56 rgbkrk .9
20:56 scoates exactly
20:56 rgbkrk .5
20:56 dave_den i thought it spits out the rendered template regardless, but you may be right…
20:56 rgbkrk g
20:56 rgbkrk Sorry, toddler got the keyboard
20:56 scoates heh
20:56 forrest rgbkrk, it's ok you don't have to talk about yourself like that.
20:56 rgbkrk LOL
20:56 dave_den little saltstackers in the house!
20:56 scoates toddler is good at decimals
20:57 zach Anyone interested in doing some devops/ops/automation on contract to hire or full time basis? :-)
20:57 * zach needs someone
20:57 dave_den i do independent contracting.
20:57 rgbkrk Yeah, I had my keyboard that has a numpad off on the side
20:57 forrest I don't know dave_den
20:57 rgbkrk http://i.imgur.com/LtfoAaK.png
20:58 forrest I aw that picture of you
20:58 forrest *saw
20:58 forrest and you don't have long hair or a beard
20:58 forrest so I'm not sure how qualified you are :P
20:58 dave_den i wish i had hair
20:58 dave_den :D
20:58 forrest see exactly
20:58 zach I require the person to be hip
20:58 zach Are you hip dave_den ?
20:59 dave_den not nearly enough
20:59 forrest rgbkrk, do you mean an environment variable specifically for the virtualenv? I think you'd have to do a cmd.run
20:59 rgbkrk Well, specifically for a package that gets built in the virtualenv
21:00 forrest oh
21:00 forrest hmmm
21:00 rgbkrk https://github.com/ipython/nbviewer/issues/191#issuecomment-35024032
21:00 rgbkrk brb
21:00 martoss joined #salt
21:00 scoates … noting a `|indent(12)` didn't solve
21:00 cewood joined #salt
21:00 MrTango joined #salt
21:00 scoates have I extolled my love for YAML today, yet⸮
21:01 forrest heh
21:01 forrest I mean, you're more than welcome to head to puppet land and use their syntax :P
21:02 scoates isn't that a little like saying "taste this; I think it only has a LITTLE bit of poop in it" ?
21:02 forrest no
21:02 scoates (-;
21:02 forrest it's like making a cupcake out of shit, and putting frosting on the top, then saying 'oh no they taste delicious, look at that frosting!'
21:03 dave_den rgbkrk: I am actually writing an environment state right now, since that seems to be something that would be useful and has come up twice in the last hour here
21:03 rgbkrk oh heh
21:03 forrest scoates, don't be too nice here :D
21:03 rgbkrk well major props to you dave_den
21:04 kohaku_river joined #salt
21:04 rgbkrk :+1:
21:04 forrest dave_den for virtualenv?
21:04 dave_den forrest: no, just a state module that will set or get the salt process ENV
21:04 forrest ahh cool
21:05 dave_den so you can set an env in a state, then require that in say a virtualenv state.
21:05 forrest yea that will be slick
21:06 forrest dave_den, did you already write the module for it?
21:06 skippy_ joined #salt
21:06 dave_den no, just a test state module
21:06 forrest ahh ok
21:07 alice|wl joined #salt
21:07 dave_den it works, though.
21:07 alice|wl hey, anybody doing incremental backup with saltstack?
21:07 dave_den will let you know when i submit PR rgbkrk
21:08 n8n joined #salt
21:08 carmony scoates: having YAML issues? :P
21:08 xmltok joined #salt
21:08 yomilk joined #salt
21:08 scoates cleared up now. it's just a huge pain to debug jinja+yaml
21:08 tyler-baker joined #salt
21:08 sroegner_ joined #salt
21:13 rgbkrk Yeah
21:13 rgbkrk Especially when the failures are fairly silent
21:14 AdamSewell joined #salt
21:16 austin987 joined #salt
21:17 taion809 joined #salt
21:18 vbabiy_ joined #salt
21:19 tim_ joined #salt
21:19 astol joined #salt
21:20 harobed_ joined #salt
21:23 giantlock joined #salt
21:25 vbabiy_ joined #salt
21:26 dfinn joined #salt
21:26 MindDrive joined #salt
21:28 opapo joined #salt
21:29 puppet_ joined #salt
21:30 Mua joined #salt
21:33 dfinn if you set the schedule in the minion config does it log every time it does a highstate or whatever you tell it to do?  I don't seem to see anything in the logs and I don't think the scheduler is working
21:36 brianhicks joined #salt
21:38 vbabiy_ joined #salt
21:39 andrej I'm trying to understand the inner workings of salt.states.user (namely because I need to make some changes, or create a seperate module w/ a slightly different view of the accounts on machines).  But I fail to understand how the module interacts w/ the OS.
21:41 david_a joined #salt
21:44 druonysus joined #salt
21:45 kalloc joined #salt
21:46 vbabiy_ joined #salt
21:47 diegows joined #salt
21:48 kalloc_ joined #salt
21:48 iShmingmIRC joined #salt
21:51 thayne joined #salt
21:53 Shish_ joined #salt
21:54 iShming_ joined #salt
21:54 martoss left #salt
21:57 mgw1 How can I utilize file.exists and cmd.run to create a file if it is missing?
21:59 felixhummel joined #salt
21:59 dfinn would it be better to just use file.managed
21:59 dfinn ?
21:59 mgw1 dfinn: A script needs to be run to create the file
21:59 dfinn ah
21:59 dfinn have the script check first if the file exists?
21:59 mgw1 tha'ts not very salty
22:00 joehillen in puppet you define a command and then you say that it 'creates' a file
22:00 joehillen by default it won't rerun the command if that file exists and other puppet directives can refer to the file by name
22:00 joehillen there has to be a parallel for salt
22:00 scoates I'd probably use `onlyif: ls /path/to/file`
22:01 joehillen ick
22:01 mgw1 Looks like it's time for a pull request :-)
22:02 joehillen I can't believe I'm the first person to ask for this.
22:02 scoates it's not very saltish/puppetish to use a command to create a file in the first place (-:
22:02 joehillen it's perfectly puppetish
22:03 scoates not worth the debate, but in my puppet manifsts, that's always a hack
22:03 scoates I meant unless, not onlyif, FWIW
22:03 mgw1 scoates: I agree, but there are places where it could be useful
22:03 joehillen run { creates => ' ' } is as old as puppet
22:04 mgw1 I'm thinking to add it to file.exists, which presently does not create files
22:05 scoates could use file.managed with `contents: salt['cmd.run'](…)`
22:06 scoates (untested, obviously (-; )
22:06 mgw1 scoates: that would run the cmd every time
22:07 scoates mgw1: even if `create: False` ?
22:07 mgw1 then it would never create it, right?
22:07 scoates ah, yes. because it would be {{salt['cmd.run'](…)}} which would run it at the jinja layer. nevermind.
22:08 mgw1 and I think it would be: contents: {{ salt['cmd.run'](..) }}
22:08 mgw1 which would run the cmd in the templating phase
22:08 scoates :parrot:
22:08 scoates (-:
22:10 martoss joined #salt
22:11 ioni left #salt
22:12 jslatts joined #salt
22:17 yomilk joined #salt
22:19 ndrei joined #salt
22:21 ndrei joined #salt
22:23 joehillen scoates: 'creates' was added in 0.25 of puppet which is around when I started using it, which is part of why I am shocked that there is no salt equivalent http://docs.puppetlabs.com/references/0.25.0/type.html#exec
22:23 * scoates nods
22:23 scoates I guess my point was that I'd manage that kind of thing externally. Not really relevant though. You need what you need.
22:25 joehillen my feeling is that configuration management should completely replace your shell scripts. salt seems to just have the goal of managing your shell scripts
22:28 jesusaurus if the salt-minion service is purposefully configured to not auto-restart, then shouldn't it not die if its waiting on the master accepting the key?
22:29 cstelma joined #salt
22:30 cstelma could someone give me a hint about how to include https://github.com/saltstack/salt-contrib/blob/master/grains/facter.py on my minions?  I'm not sure where to put the file or how to reference it.
22:31 forrest cstelma, http://docs.saltstack.com/topics/targeting/grains.html#grains-in-etc-salt-grains
22:31 jesusaurus cstelma: you can put it in the _grains/ directory of one of your file_roots
22:32 forrest oh wrong link, derp
22:32 forrest cstelma, http://docs.saltstack.com/topics/targeting/grains.html#precedence there we go
22:32 forrest and yea, jesusaurus is right
22:33 jesusaurus cstelma: theres also a script you can use according to https://github.com/saltstack/salt-contrib/blob/master/README.rst
22:33 nextdoorwarren joined #salt
22:33 markizano joined #salt
22:34 jesusaurus forrest: we should probably change that 'Development' header to something more appropriate, can you think of something better to call it?
22:34 jesusaurus Usage?
22:34 nextdoorwarren Could anyone point me in the right direction to find documentation on how to change the name of a machine in the salt master (example if I type salt \* grains.get os) the box name that is displayed is no longer valid
22:35 forrest jesusaurus, where at?
22:35 jesusaurus forrest: that readme i just linked
22:35 forrest oh sorry, I thought you were talking about on what I linked.
22:35 jesusaurus oh, ha, sorry
22:35 forrest jesusaurus, yea an update on that would be good, I think usage is much more accurate.
22:35 jfzhu_us joined #salt
22:37 pass_by_value left #salt
22:37 forrest nextdoorwarren, did you check in the /etc/salt/pki/master/minions? I can't remember if you can just straight up change that file or not.
22:38 forrest well, the files within that directory
22:38 TJ1980 joined #salt
22:38 nextdoorwarren let me give that a shot
22:38 nextdoorwarren thanks
22:38 forrest np, make sure you create a backup just in case
22:39 jesusaurus nextdoorwarren: do you mean that you changed the value that `hostname` returns?
22:39 chrisjones joined #salt
22:39 nextdoorwarren let me pastebin and example of my problem
22:40 nextdoorwarren http://pastebin.com/Ur54Stgj
22:40 nextdoorwarren The one server before I added it to salt was nicely named
22:40 nextdoorwarren via it's hostname
22:40 nextdoorwarren but the second server I spun up programatically from AWS
22:40 nextdoorwarren and it had an ugly ip-10-.... aws hostname when it was added to salt
22:41 ndrei joined #salt
22:41 forrest right
22:42 forrest did you spin up the second system with salt-cloud?
22:42 forrest you should have been able to specify a name when you did so...
22:42 nextdoorwarren no, I used a bunch of custom scripts using boto and fabric
22:42 forrest the downside of amazon's hostname conventions
22:42 forrest ahh alright
22:42 nextdoorwarren yup
22:42 alunduil joined #salt
22:43 nextdoorwarren I am not good with computers btw, totally in over my head on this one
22:44 forrest Gotta start somewhere
22:44 nextdoorwarren I know in the 'cloud world' I am supposed to learn to not to server hug and worry about meaningful hostnames... but in an environment of 100+ boxes this is very painful to look at
22:44 forrest you just decided to step into the deep end.
22:44 forrest yea understandable, is there any reason you aren't using salt-cloud to stand up your machines? Or do you not use salt to do some of the configuration still?
22:45 gw joined #salt
22:45 nextdoorwarren I do not even know what salt cloud is
22:45 gw joined #salt
22:45 d1gital "[ERROR   ] Failed to change user to root; Failed to change group to apache" -- with "-l debug", that's all I get in the way of an error message.. Why would this fail?  Surely salt runs as root, so it can't be a permissions thing?
22:46 nextdoorwarren I have a lot invested (engineering time) in the current system, it would just be nice to make the hostnames in salt warm and fuzzy
22:46 gw joined #salt
22:46 forrest d1gital, can you see if there is anything else going on with the minion?
22:46 jesusaurus d1gital: it can be a permissions thing
22:46 jesusaurus what are the perms on the file?
22:46 jesusaurus is it a local file?
22:46 xmltok joined #salt
22:47 forrest nextdoorwarren, yea understandable. jesusaurus have you come up with an easy way to change the name associated with salt for an already provisioned machine?
22:47 * jesusaurus wonders if the file is on a network share
22:47 forrest dun dun dunnnnn
22:47 bhosmer joined #salt
22:47 d1gital jesusaurus: vagrant:vagrant, 750
22:47 kalloc joined #salt
22:48 d1gital no, it's a local file
22:48 jesusaurus nextdoorwarren: forrest: yeah, changing the name of pki file on the master is step one, step two is changing the "id: " in the minion config
22:48 d1gital ohwait..
22:48 d1gital it's in a shared folder.  yeah, it's a network share.
22:48 tomtomtomtom joined #salt
22:48 jesusaurus d1gital: :)
22:48 jesusaurus ive run into that myself a few times
22:48 bhosmer joined #salt
22:48 nextdoorwarren gotcha
22:48 nextdoorwarren thanks
22:48 JasonSwindle joined #salt
22:48 nextdoorwarren I will give it a try
22:49 nextdoorwarren @jesusaurus thanks
22:49 nextdoorwarren @forrest thanks
22:49 forrest jesusaurus, ahh right, I forgot about the minion config ID
22:49 forrest nextdoorwarren, yea np, if you have time take a look at salt-cloud :D
22:49 nextdoorwarren will do
22:50 forrest jesusaurus, thanks
22:50 jesusaurus np
22:52 skippy_ joined #salt
22:52 tru_tru joined #salt
22:56 vejdmn joined #salt
22:58 scoates d1gital: FWIW, you can use bindfs to pretend to mount something as a different user. we had to do this with vagrant+puppet; we're just putting stuff in different places now with salt.
23:00 pdayton joined #salt
23:02 d1gital scoates: good idea... I was just going to add apache to the vagrant group xS
23:02 martoss joined #salt
23:02 jabsalon joined #salt
23:13 ndrei joined #salt
23:14 Ryan_Lane1 joined #salt
23:14 AdamSewell joined #salt
23:16 AdamSewell joined #salt
23:23 fllr joined #salt
23:23 Gareth 20
23:23 Gareth erm
23:28 forrest 21?
23:32 jabsalon Greetings. I am playing around with the salt.client.api.Client and am looking for assistance with how to check the result of multple jobs.  The salt.client.api.Client.get_event() method sometimes times out for jobs that I know have already returned after checking the salt master debug output. Any ideas?
23:36 cstelma forrest: thanks! I think I understand what those docs are trying to tell me about grains now.
23:36 dfinn how do you see what jobs are running on a minion?
23:38 forrest cstelma, yea np
23:38 Gareth forrest: atempting to switch windows, failing :)
23:39 forrest Gareth on your laptop?
23:39 forrest or desktop
23:39 forrest why
23:40 Gareth forrest: irssi client.
23:40 forrest ahh gotcha
23:41 diegows joined #salt
23:46 kalloc joined #salt
23:46 dave_den rgbkrk: https://github.com/saltstack/salt/pull/10436
23:47 rojem joined #salt
23:47 forrest dave_den, nice!
23:47 nebuchadnezzar joined #salt
23:48 dfinn what are people doing about upgrading zeromq to v3 on RHEL/CENT 5 servers?
23:48 krow joined #salt
23:49 forrest dfinn, custom compiles
23:49 forrest a few guys in here have actually compiled it already, if you google around I'm sure you can find one
23:49 forrest it's dumb
23:49 dfinn i was hoping that wasn't the anser
23:50 forrest that's what we originally hoped as well
23:50 Eugene We're using 6 instead
23:50 Eugene Because it was released in the correct decade
23:50 forrest I have no idea why the zeromq guys themselves don't provide a version for 5, it's dumb
23:50 dfinn upgrading to 6 is our plan but it's not going to happen anytime soon
23:50 forrest dfinn, are you running java apps?
23:50 dfinn yes
23:50 forrest of course
23:50 dfinn mostly actually
23:50 Eugene "Because that OSwas released 7 years ago" is a pretty good reason forrest :-p
23:51 joehoyle joined #salt
23:51 forrest dfinn, I knew, because it's keeping us from going to 6 on a few boxes as well
23:51 forrest it's the only thing that's ever kept me from upgrading systems
23:51 forrest crappy jva
23:51 forrest *java
23:51 dfinn we actually don't have any reason not to other than time and taking outages on prod systems
23:51 forrest Eugene, heh
23:51 forrest dfinn, oh that's nice at least
23:51 dfinn most of our devs ask for 6 because they hate dealing with the old software
23:51 forrest in our case it would require some fixes for apps, and support for some tools which don't support rhel6
23:51 Eugene Looking forward to the 7 release soon
23:51 dfinn and of course our new standard is 6
23:51 forrest Eugene, lots of changes in 7
23:51 forrest dfinn, yea legacy apps
23:51 Eugene If you're still on 5, quite honestly just wait for 7.
23:52 forrest Eugene, 5-> 7 is a huge change
23:52 Eugene I haven't gotten around to trying the Beta yet, but I don't think it'll be too much of a problem
23:52 Eugene Easier to make one upgrade than two.
23:52 dfinn looks like zeromq themselves provide a repo for 5 that includes 3.x
23:52 dfinn http://zeromq.org/distro:centos
23:52 Eugene It'll still taste like red hats.
23:53 kermit joined #salt
23:53 forrest dfinn, that isn't their build though
23:53 forrest that's the one everyone is using from fengshuo
23:53 dfinn i was wondering about that, looked like someones personal thing
23:53 forrest it works
23:53 dfinn i guess that's all I care about ;)
23:53 forrest the guys who were working it previously confirmed last time this was asked ;P
23:53 dfinn although I always get nervous using some random dudes repo
23:53 forrest I have yet to hear of issues from the guys who are using it
23:54 dfinn so far I haven't noticed any stability issues with 2.x but I'm sure I will eventually based on all the talk
23:54 jroweboy joined #salt
23:54 forrest dfinn, what release are you on??
23:54 forrest of salt
23:54 dfinn 0.,17.4 i think
23:55 forrest wow, glad it's working
23:55 dfinn .2 actually, on the master
23:55 forrest I know some people were having issues with zeromq on 17.x
23:55 dfinn but most minions are .4
23:55 forrest cool
23:55 dfinn we are still in the conversion process but so far we have all our dev/qa servers on salt and so far so good
23:55 dfinn but I'm only talking a couple of weeks
23:55 forrest nice
23:55 dfinn I'm not sure how long people were seeing the timeouts take to happen
23:55 forrest yea it's easy to get going with
23:56 forrest heh
23:56 vbabiy_ joined #salt
23:57 yomilk joined #salt
23:59 Gifflen joined #salt
23:59 swa_work joined #salt

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