Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-03-15

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

All times shown according to UTC.

Time Nick Message
00:02 ilbot3 joined #salt
00:02 Topic for #salt is now Welcome to #salt | Thanks to everyone who made SaltConf 2014 amazing! | 2014.1.0 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
00:02 21WAADKRL joined #salt
00:02 hillna_ joined #salt
00:02 babilen joined #salt
00:02 abele_ joined #salt
00:03 bezaban_ joined #salt
00:03 jcristau_ joined #salt
00:03 razor joined #salt
00:03 harobed joined #salt
00:03 godog_ joined #salt
00:03 Guest34539 joined #salt
00:03 dopp_ joined #salt
00:04 octarine_ joined #salt
00:04 msciciel joined #salt
00:04 jab416171_ joined #salt
00:04 thayne joined #salt
00:04 vegardx_ joined #salt
00:04 googolhash joined #salt
00:05 svx_ joined #salt
00:06 Guest10400 joined #salt
00:06 arapaho_ joined #salt
00:06 tzero_ joined #salt
00:07 cornmander joined #salt
00:07 23LAATFF2 joined #salt
00:07 23LAATE9A joined #salt
00:07 lionel joined #salt
00:07 23LAATE6A joined #salt
00:07 23LAATEUA joined #salt
00:07 23LAATEMN joined #salt
00:07 xt joined #salt
00:07 zz_Cidan joined #salt
00:07 nocturn joined #salt
00:07 dstanek_afk joined #salt
00:07 che-arne joined #salt
00:07 gparent joined #salt
00:07 philipsd6 joined #salt
00:07 dave_den joined #salt
00:07 Teknix joined #salt
00:07 Guest87778 joined #salt
00:07 pass_by_value joined #salt
00:07 che-arne joined #salt
00:07 bonezed joined #salt
00:07 23LAATEMN joined #salt
00:07 manicouman joined #salt
00:07 23LAATE6A joined #salt
00:07 23LAATFF2 joined #salt
00:08 nocturn joined #salt
00:08 kaictl joined #salt
00:08 kedo39 joined #salt
00:08 EnTeQuAk_ joined #salt
00:10 Tinuva joined #salt
00:10 jgelens joined #salt
00:10 simonmcc joined #salt
00:10 cb joined #salt
00:10 simonmcc joined #salt
00:10 jbub joined #salt
00:11 copelco______ joined #salt
00:11 lyddonb joined #salt
00:11 jeffro joined #salt
00:11 jeffro joined #salt
00:11 APLU joined #salt
00:11 novastar2 joined #salt
00:11 munhitsu_ joined #salt
00:11 Nazzy joined #salt
00:13 rojem joined #salt
00:13 MTecknology joined #salt
00:13 cyrusdavid joined #salt
00:13 jforest joined #salt
00:13 zain joined #salt
00:13 vimalloc joined #salt
00:14 dave_den joined #salt
00:15 jpcw joined #salt
00:15 amckinley joined #salt
00:15 toastedpenguin joined #salt
00:15 che-arne joined #salt
00:15 Guest87778 joined #salt
00:17 forrest joined #salt
00:17 herzi__ joined #salt
00:18 gamingrobot joined #salt
00:18 nocturn00 joined #salt
00:19 jab416171 joined #salt
00:19 philipsd7 joined #salt
00:20 samkottler joined #salt
00:20 kermit joined #salt
00:20 xt\ joined #salt
00:22 nocturn joined #salt
00:25 lionel__ joined #salt
00:28 hunter joined #salt
00:28 gparent joined #salt
00:28 baniir joined #salt
00:29 rhand joined #salt
00:29 MTecknology joined #salt
00:30 pass_by_value joined #salt
00:30 gldnspud__ joined #salt
00:31 runnyspot joined #salt
00:31 runnyspot joined #salt
00:31 zz_Cidan joined #salt
00:32 symroe joined #salt
00:32 gmoro joined #salt
00:33 cornmander joined #salt
00:34 jbub_ joined #salt
00:35 cb_ joined #salt
00:35 kaictl joined #salt
00:35 Teknix joined #salt
00:36 Nazzy_ joined #salt
00:37 Nazzy_ joined #salt
00:40 ndrei joined #salt
00:42 philipsd6 joined #salt
00:43 nocturn joined #salt
00:44 fllr joined #salt
00:44 baniir for some reason on freebsd postgresql isn't initializing via salt but runs fine from command line. does anyone have experience with postgres / freebsd / salt
00:44 _fllr_ joined #salt
00:44 jforest joined #salt
00:45 hunter joined #salt
00:45 rojem joined #salt
00:45 ndrei_ joined #salt
00:45 gparent_ joined #salt
00:48 Steve_ joined #salt
00:49 MTecknology joined #salt
00:50 lionel joined #salt
00:51 Steve_ Hi I'm trying to get aws_elb working from contrib
00:52 Steve_ Not clear how to actually run it
00:52 Steve_ linked _modules to /srv/salt/base then synced files...
00:52 manicouman joined #salt
00:52 Steve_ ran salt 'jenkins-prod-1' aws_elb.join
00:53 Steve_ and got     'aws_elb.join' is not available.
00:53 Steve_ anybody know how to get contrib modules working?
00:53 zain what do i put in my topfile to have it match multiple ids? i'm trying this but it doesn't seem to match postgres.qa or postgres.prod like i'd expect it: 'postgres.(qa|prod)': ...
00:54 faldridge joined #salt
00:54 zain ah, was missing a match: pcre
00:55 arthabaska hey there everyone--I'm still new to salt, and am wondering about best practices, coming from a puppet perspective. How generally is key/value lookup done in salt..is there anything similar to Hiera? Also, how do most people manage large numbers of EC2 hostnames? Any help would be appreciated, thanks!
00:59 allanparsons @arthabaska - i ended up putting my hostnames in Route53 prior to running bootstrap
00:59 forrest hey arthabaska, here: http://docs.saltstack.com/topics/best_practices.html are some best practices. There isn't anything identical to hiera, however I know there are some people pulling data out of hiera (Ryan_Lane would be the man to ask when he's around), regarding managing a large number of EC2 hostnames, Most people are building cmdbs I think, or using some of the stuff available in contrib which lets you query EC2 info as grains.
01:01 krow joined #salt
01:01 manicouman joined #salt
01:01 runnyspot joined #salt
01:02 arthabaska forrest, thanks a ton for that! that's about what I imagined would be the case at the moment--I'll keep my eye out for the right fit for this environment. allanparsons that idea might work as well--I was reading this older article, and it seems promising: http://shlomoswidler.com/2010/12/using-aws-route-53-to-keep-track-of-ec2-instances.html
01:02 Nazzy joined #salt
01:02 sroegner joined #salt
01:02 allanparsons arthabaska - thats pretty much what we did
01:03 allanparsons but we use IAM roles + cloudformation
01:03 allanparsons so that we have the aws unified command available to us
01:03 allanparsons see:  https://gist.github.com/allanparsons/4ce9645e74c1a5ddda6a   (if you find it useful, email me... allan dot parsons at gmail dot com)
01:04 forrest arthabaska, yea np, allanparsons idea is a good one.
01:04 forrest allanparsons, I've starred that gist so don't delete it :P
01:04 allanparsons ha ha
01:04 allanparsons i may open source it
01:04 forrest even better
01:05 napper2 joined #salt
01:06 allanparsons also, i need to add a script to remove these hosts
01:06 allanparsons when they shutdown / terminate
01:06 arthabaska nice work, that will definitely help
01:07 schimmy joined #salt
01:08 gmoro joined #salt
01:10 mbowie joined #salt
01:10 schimmy1 joined #salt
01:23 akoumjian joined #salt
01:28 godog joined #salt
01:31 krow joined #salt
01:38 simonmcc_ joined #salt
01:45 anitak joined #salt
01:46 ndrei_ joined #salt
01:48 yomilk joined #salt
01:48 lyddonb joined #salt
01:49 jgelens joined #salt
01:50 Gifflen joined #salt
01:53 Tinuva joined #salt
01:54 wrale_ joined #salt
01:54 jalbretsen joined #salt
01:54 wrale_ left #salt
01:55 n8n joined #salt
01:56 kermit joined #salt
02:08 faldridge joined #salt
02:18 n8n joined #salt
02:19 Guest87778 joined #salt
02:20 dstanek_afk joined #salt
02:22 meteorfox joined #salt
02:23 rostam joined #salt
02:23 bizboo joined #salt
02:31 toastedpenguin joined #salt
02:33 kaictl joined #salt
02:34 [diecast] joined #salt
02:37 [diecast] joined #salt
02:39 baniir joined #salt
02:46 snuffeluffegus joined #salt
02:48 elfixit joined #salt
02:48 mgw joined #salt
02:51 sroegner joined #salt
02:54 yomilk joined #salt
03:04 jankowiak joined #salt
03:04 frasergraham joined #salt
03:07 elfixit joined #salt
03:13 dccc joined #salt
03:15 Nazca joined #salt
03:15 Nazca joined #salt
03:46 frasergraham joined #salt
03:48 frasergr_ joined #salt
03:49 fraserg__ joined #salt
03:49 [diecast] joined #salt
03:50 abele joined #salt
03:51 frasergraham joined #salt
03:53 frasergr_ joined #salt
03:54 baniir_ joined #salt
03:55 faldridge joined #salt
03:57 frasergraham joined #salt
04:00 frasergr_ joined #salt
04:03 frasergraham joined #salt
04:04 fraserg__ joined #salt
04:05 thayne joined #salt
04:05 favadi joined #salt
04:07 frasergr_ joined #salt
04:09 frasergraham joined #salt
04:11 fraserg__ joined #salt
04:13 mgw joined #salt
04:15 frasergraham joined #salt
04:17 frasergr_ joined #salt
04:18 fraserg__ joined #salt
04:22 frasergraham joined #salt
04:24 frasergr_ joined #salt
04:27 fraserg__ joined #salt
04:28 frasergraham joined #salt
04:29 HeadAIX joined #salt
04:30 frasergr_ joined #salt
04:33 fraserg__ joined #salt
04:36 frasergraham joined #salt
04:38 frasergr_ joined #salt
04:40 sroegner joined #salt
04:41 frasergraham joined #salt
04:45 frasergr_ joined #salt
04:46 frasergraham joined #salt
04:49 fraserg__ joined #salt
04:50 frasergr_ joined #salt
04:52 frasergraham joined #salt
04:54 fraserg__ joined #salt
04:55 apergos joined #salt
04:56 frasergr_ joined #salt
04:57 frasergraham joined #salt
04:59 fllr joined #salt
05:00 fraserg__ joined #salt
05:01 frasergr_ joined #salt
05:03 fraser___ joined #salt
05:09 yomilk joined #salt
05:14 ajw0100 joined #salt
05:14 krow joined #salt
05:14 johtso joined #salt
05:18 jalbretsen joined #salt
05:38 gparent joined #salt
05:41 yomilk joined #salt
05:42 zain_ joined #salt
05:45 thayne joined #salt
05:53 Gifflen joined #salt
06:02 thayne joined #salt
06:03 krow joined #salt
06:05 johtso joined #salt
06:06 frasergraham joined #salt
06:10 TyrfingMjolnir joined #salt
06:10 TyrfingMjolnir Does this channel have anything to do with saltstack?
06:11 forrest TyrfingMjolnir, Yep, sometimes the team members from saltstack are in here
06:13 TyrfingMjolnir How would I download a file on 10 macs, and then install them on each workstation?
06:13 TyrfingMjolnir using salt
06:13 TyrfingMjolnir ?
06:14 yomilk joined #salt
06:15 forrest TyrfingMjolnir, it would depend, is the salt minion installed on the macs?
06:15 TyrfingMjolnir Is that required for using salt-ssh?
06:15 forrest TyrfingMjolnir, no salt-ssh does not require minions installed
06:16 forrest TyrfingMjolnir, what kind of file are you trying to use to do the install?
06:16 TyrfingMjolnir using salt-ssh
06:16 TyrfingMjolnir zipped pkg file
06:16 TyrfingMjolnir I m not trying to do anything yet, I m looking for an example to get started.
06:17 TyrfingMjolnir I m also interested in making a script that adds a user and some config files
06:17 forrest TyrfingMjolnir, sure, you can either use the archive state: http://docs.saltstack.com/ref/states/all/salt.states.archive.html, or the archive module if you want to do the unzip straight from the command line: http://docs.saltstack.com/ref/modules/all/salt.modules.archive.html
06:19 TyrfingMjolnir Is there a curl function?
06:20 TyrfingMjolnir Hmmm, the salt archive also downloads?
06:20 TyrfingMjolnir I see the source in there.
06:21 forrest TyrfingMjolnir, There's no curl but you can use http://docs.saltstack.com/ref/modules/all/salt.modules.cmdmod.html#salt.modules.cmdmod.run or http://docs.saltstack.com/ref/states/all/salt.states.cmd.html
06:21 forrest depending if you want it in a state, or on the command line
06:21 TyrfingMjolnir I don t understand state
06:21 TyrfingMjolnir I know bash quite well
06:21 TyrfingMjolnir but state is a concept I do not know of
06:21 forrest TyrfingMjolnir, You probably want to start looking through the walkthrough docs then
06:22 forrest states are a salt concept, and the docs explain it more clearly than I will
06:22 TyrfingMjolnir Is there a way for the salt script to interact with GUI?
06:22 forrest As in click buttons on a graphical interface? Not that I'm aware of
06:29 sroegner joined #salt
06:34 symroe joined #salt
06:34 gldnspud__ joined #salt
06:34 simonmcc_ joined #salt
06:34 copelco______ joined #salt
06:34 rcsheets joined #salt
06:38 yomilk joined #salt
06:46 frasergraham joined #salt
07:18 abele joined #salt
07:18 Guest10400 joined #salt
07:21 modafinil_ joined #salt
07:36 Linz joined #salt
07:50 ml_1 joined #salt
07:57 CeBe joined #salt
07:58 faldridge joined #salt
08:01 n8n joined #salt
08:05 TyrfingMjolnir How can I do software installs on MacOS X? Most of the require GUI clicking
08:17 munhitsu_ joined #salt
08:17 JonGretar joined #salt
08:18 sroegner joined #salt
08:19 linjan_ joined #salt
08:20 googolhash joined #salt
08:21 TyrfingMjolnir What would a salt script look like that do the following in terms of BASh: cd /usr/src;curl -O https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.13.6.tar.xz;tar -Jxvf linux-3.13.6.tar.xz
08:24 samkottler joined #salt
08:32 Katafalkas joined #salt
08:47 frasergraham joined #salt
09:01 ndrei joined #salt
09:06 dh joined #salt
09:09 apergos joined #salt
09:31 APLU joined #salt
09:42 lionel joined #salt
09:48 frasergraham joined #salt
10:07 sroegner joined #salt
10:14 herzi__ joined #salt
10:16 AdamSewell_ joined #salt
10:17 felixhummel joined #salt
10:18 gildegoma joined #salt
10:19 ndrei joined #salt
10:19 felixhummel hi! i recently updated to 2014.1.0. highstate on 12 minions takes 30+ minutes now (<5 min before) and master is on 100% cpu all the time. any ideas how to address this problem?
10:44 hillna_ joined #salt
10:46 jab416171 joined #salt
10:53 felixhummel found it: https://github.com/saltstack/salt/issues/10798
10:54 felixhummel basically: "state_events: False" in master config fixes things. will be the default again in 2014.1.1
11:06 alunduil joined #salt
11:18 ola joined #salt
11:21 Calcx joined #salt
11:23 zooz joined #salt
11:27 aleszoulek joined #salt
11:50 frasergraham joined #salt
11:53 montyboy joined #salt
11:56 sroegner joined #salt
11:57 mgw joined #salt
12:22 taion809 joined #salt
12:25 mgw joined #salt
12:50 frasergraham joined #salt
13:01 faldridge joined #salt
13:13 DaveQB joined #salt
13:17 sroegner joined #salt
13:19 baniir joined #salt
13:19 ndrei joined #salt
13:22 gnugnu9 joined #salt
13:23 ndrei joined #salt
13:30 Furao joined #salt
13:32 dstanek joined #salt
13:38 montyboy joined #salt
13:42 HeadAIX joined #salt
13:51 frasergraham joined #salt
13:53 akitada joined #salt
14:12 shoemonkey joined #salt
14:19 johtso joined #salt
14:19 shoemonkey joined #salt
14:20 johtso joined #salt
14:20 johtso joined #salt
14:20 ndrei joined #salt
14:22 rostam joined #salt
14:34 fllr joined #salt
14:36 diegows joined #salt
14:40 bhosmer joined #salt
14:44 tmandry joined #salt
14:51 shiin joined #salt
14:52 shiin can I run salt master and minion on osx?
15:03 faldridge joined #salt
15:05 napper2 joined #salt
15:06 montyboy joined #salt
15:09 sgviking joined #salt
15:10 rojem joined #salt
15:21 ChaosPsyke joined #salt
15:22 goodwill I think its in homebrew
15:24 fllr joined #salt
15:27 shiin and itll allow installing apps through homebrew?
15:29 fllr joined #salt
15:32 jeremyfelt joined #salt
15:34 ckao joined #salt
15:35 alekibango joined #salt
15:38 octarine_ joined #salt
15:39 modafinil_ joined #salt
15:39 lietu shiin: google for "salt.modules.brew"
15:42 pfallenop joined #salt
15:49 johtso joined #salt
15:52 kedo39 joined #salt
15:59 shiin joined #salt
16:01 ndrei joined #salt
16:08 ndrei joined #salt
16:10 che-arne joined #salt
16:16 fllr How can I check which ip address is my master using to communicate with my minion?
16:27 naiyte joined #salt
16:31 bhosmer joined #salt
16:36 gigaroby joined #salt
16:36 gigaroby hey guys
16:37 gigaroby I just installed salt minion on a server and accepted the key on the master
16:37 gigaroby but while I can run salt 'machine' test.ping
16:37 gigaroby just fine
16:38 gigaroby I can not run salt 'machine' state.highstate because it returns an error saying "No Top file or external nodes data matches found"
16:38 gigaroby does anybody have an idea about why ?
16:39 xmj because you forgot to modify the minion config
16:41 gigaroby i modified it to set the master node
16:41 gigaroby isn't that enough ?
16:42 xmj nah, you need to adapt the path where salt state files are put in (and/or create it) iirc.
16:45 montyboy joined #salt
16:47 bhosmer joined #salt
16:49 gigaroby thanks for the advice but I looked it up
16:49 gigaroby and it has actually created /var/salt/minion
16:49 gigaroby and put some files in it
16:49 xmj huh
16:49 xmj isnt it normally /srv/salt ?
16:50 gigaroby apparently not on the default config
16:50 xmj i know freebsd overrides this and puts things to /usr/local/etc/salt/satates
16:50 gigaroby which is fine, on the other identical machine I have this default setup and it works
16:50 gigaroby fact is
16:50 gigaroby in the other machine
16:51 gigaroby the folder /var/cache/salt/minion/files/base
16:51 gigaroby is actually populated with the mirror of /srv/salt on the master
16:51 gigaroby where on the new machine it isn't
16:51 xmj uhm
16:51 xmj that one depends on your operating system
16:52 gigaroby they are identical ubuntu 13.10 machines
16:52 xmj the *default* location is /srv/salt as per salt-2014-1.0.tar.gz conf/minion
16:52 gigaroby yeah, I did not update to that yet
16:53 xmj it might be like that in the older tar.gzs too, i don't have them lying around tho
16:53 gigaroby actually that might be it
16:53 xmj might/will
16:53 che-arne joined #salt
16:53 gigaroby I have 2014.1.0 on the minion
16:53 gigaroby but I have an older version on the master
16:53 jslatts joined #salt
16:54 xmj might want to make them have the same version :)
16:55 gigaroby yep, trying to roll it back now
16:56 sroegner joined #salt
16:58 xmj right, anyway, the directory (/var/cache/salt/minion or whatever) is OS-specific
16:58 johtso joined #salt
17:00 gigaroby xmj: thanks, it looks like it is doing something now
17:10 elfixit joined #salt
17:10 zooz joined #salt
17:13 Networkn3rd joined #salt
17:18 fllr How can I print out the configuration file to make sure salt is seeing my changes?
17:20 ajw0100 joined #salt
17:22 shoemonkey joined #salt
17:31 shoemonkey joined #salt
17:35 fllr Hey guys. I'm trying to copy a directory from my salt master to my minion using file.recurse. After upgrading to 2014.1.0, that state is not working anymore, and I'm getting this error: The directory 'salt://books/' does not exist on the salt fileserver in environment 'base'. What's happening?
17:36 bhosmer joined #salt
17:40 bhosmer joined #salt
17:42 n8n joined #salt
17:46 thayne joined #salt
17:50 jeffro joined #salt
17:54 schimmy joined #salt
17:56 faldridge joined #salt
17:56 quickdry21 joined #salt
18:04 rojem joined #salt
18:05 che-arne joined #salt
18:11 shoemonkey joined #salt
18:12 Linz_ joined #salt
18:13 gnugnu9 joined #salt
18:13 ndrei joined #salt
18:14 harobed_ joined #salt
18:14 hillna_ joined #salt
18:17 jab416171 joined #salt
18:18 akitada joined #salt
18:19 modafinil_ joined #salt
18:20 shoemonkey joined #salt
18:20 octarine_ joined #salt
18:23 fllr joined #salt
18:24 shoemonkey joined #salt
18:44 faldridge joined #salt
18:45 fllr joined #salt
18:53 sroegner joined #salt
18:58 kickerdog joined #salt
19:01 yomilk joined #salt
19:03 rojem joined #salt
19:13 harobed joined #salt
19:14 harobed joined #salt
19:15 schimmy joined #salt
19:15 napper2 joined #salt
19:15 harobed joined #salt
19:16 harobed joined #salt
19:18 schimmy joined #salt
19:21 schimmy1 joined #salt
19:22 johno joined #salt
19:24 johtso joined #salt
19:28 johno hi there, i am trying to do a simple state that reinstall a .deb package when a file is changed. This https://gist.github.com/jsuchal/e63c85b4ca0a2eb9a939 seems to work fine, but the package install is not triggered when the .deb file changes. Any ideas?
19:32 \ask joined #salt
19:33 kickerdog joined #salt
19:39 montyboy joined #salt
19:40 dave_den johno: requires and watches are in the form:   - require:\n  - module: ID declaration
19:45 johno dave_den: i am looking into it right now and seems that pkg does not support mod_watch call and is interpreted as a plain require
19:47 johno dave_den: but i don't quite follow. i think i have the form right, there is no syntax error it just does not watch the file
19:47 shoemonkey joined #salt
19:48 bhosmer joined #salt
19:49 APLU joined #salt
19:53 dave_den johno: i added a comment to your gist
19:53 dave_den pkg does not need a mod_watch because there it does the same action whether it's a watch or require
19:53 dave_den bbl
19:54 shoemonkey joined #salt
19:58 johno dave_den: hmm the formatting is gone for your comment, but have you done something more than just expanded the shorthand notations?
20:00 n8n joined #salt
20:10 fxhp I just gave my IRC bot (https://bitbucket.org/russellballestrini/foxbot) the ability to run canned remove executions via Salt Stack API
20:11 fxhp remote*
20:12 dave_den johno: i edited my gist comment to keep formatting
20:13 johno dave_den: hmm. seems like you just expanded the shorthand notation. or?
20:14 dave_den johno: http://docs.saltstack.com/ref/states/requisites.html
20:15 dave_den try it without the shorthand
20:16 johno dave_den: there is no problem with the shorthand notation. the watch part does not work as expected in any case. -- btw i tried.
20:17 dave_den then something's broken
20:17 dave_den hat version are you running
20:17 dave_den salt-call --versions-report
20:18 dave_den and what's the output from that state run
20:19 johno dave_den: the problem is that it just runs ok. but when i change the version of the downloaded .deb file i would expect a reinstall and service restart. this does not happen
20:20 johno vagrant@precise64:~$ salt-call --versions-report            Salt: 2014.1.0          Python: 2.7.3 (default, Apr 20 2012, 22:39:59)          Jinja2: 2.6        M2Crypto: 0.21.1  msgpack-python: 0.1.10    msgpack-pure: Not Installed        pycrypto: 2.4.1          PyYAML: 3.10           PyZMQ: 13.0.0             ZMQ: 3.2.2
20:20 dave_den yes, that would be a bug to me
20:21 Gifflen joined #salt
20:22 dave_den are you sure the pkg.installed state is actually installing the new version of the .deb?
20:23 dave_den or is it just saying 'pkg elasticsearch is already installed'?
20:24 faldridge joined #salt
20:25 dave_den the pkg.installed state need to change before the service's watch will be invoked.
20:26 johno dave_den: there are two steps that should trigger. first you change the deb. then you expect a reinstall and then you expect a service restart.
20:26 dave_den yes, and i am asking if the reinstall is actually happening
20:27 johno no, it is not, that's the issue. https://gist.github.com/jsuchal/e63c85b4ca0a2eb9a939#comment-1191510 this is what happens when i change the download url (just version of ES)
20:27 dave_den because if it is actually installing the new version of the .deb and the service's watch is not being invoked, that is a bug. but if the pkg state is just saying 'elasticsearch is already installed', then the service will not change.
20:28 johno the problem now is in the first step. when i change the .deb file (which is managed) i want to trigger pkg reinstall.
20:29 johno i don't know how to do this or if it's even possible
20:29 dave_den there's an issue with salt and locally installed packages where it will not detect the version change
20:29 johno but seems like a basic scenario for my.
20:29 johno dave_den: hmm that seems to be the case. any github issue on that one?
20:29 johno my = me.
20:29 dave_den i am looking, i was pretty sure there used to be one
20:30 dave_den https://github.com/saltstack/salt/issues/7772
20:32 johno oh thanks! bummer that i ran into this for my first .sls state file. i am a total newbie to saltstack.
20:33 dave_den i keep all my packages in my own repo, but i know not everyone wants to maintain their own repo just to work around that
20:34 fxhp http://russell.ballestrini.net/irc-bot-foxbot-runs-canned-remote-executions-using-salt-stack/
20:35 dave_den johno: that's not a good first taste of salt, but i wouldn't let it turn you off from salt.
20:37 johno dave_den: so far i am loving it. i've tried chef (since i am a ruby guy mostly) but it's a horrible hack.
20:37 dave_den yeah, same here
20:38 dave_den besides the workaround of removing/installing like in that issue you could always create a small stateful bash script
20:38 dave_den that would run dpkg -i if the version changes
20:39 dave_den http://docs.saltstack.com/ref/states/all/salt.states.cmd.html#salt.states.cmd.wait_script
20:40 dave_den then your service would watch that cmd and would know when to reload/restart elasticsearch
20:41 sroegner joined #salt
20:45 shoemonkey joined #salt
20:52 johno btw another thing. i want to publish this as a formula. but leave the room to choose your prefered java (oracle/openjdk) what is the best practice for such "requirement"
21:05 ajw0100 joined #salt
21:08 Linz joined #salt
21:10 ajw0100 joined #salt
21:11 johno dave_den: got it! https://gist.github.com/jsuchal/da156a97fa4cf7c4d856
21:12 dave_den johno: the service watch should be - cmd: elasticserach
21:12 dave_den requisites are in the format module: id declaration
21:13 johno maybe it can watch the package, the version should change right?
21:16 redondos joined #salt
21:16 redondos joined #salt
21:18 dave_den the way you have it now is fine, with the exception of the wrong thing in the watch for service
21:18 dave_den you could watch the file, because salt now runs the states in the order they are defined so your cmd.wait *should* be run before the service does
21:19 dave_den but it's always nice to explicitly define your watch dependency on what really matters, which is when the cmd.run installs a new version with dpkg -i
21:20 dave_den before the state runs were ordered, it would be possible to have a state which was defined last in your state file run before the states that were listed above it
21:20 johno ok updated https://gist.github.com/jsuchal/da156a97fa4cf7c4d856
21:20 johno seems to work
21:20 dave_den which would force you to make tight requisites and watches of your states.
21:21 johno when i upgrade or downgrade es
21:21 dave_den but i digress
21:21 dave_den yep, that will work as excepted now
21:21 dave_den expected
21:22 johno thanks
21:26 elfixit joined #salt
21:26 che-arne joined #salt
21:29 johno btw what about the java requirement. i don't want to hardcode oracle/openjdk into my formula
21:29 johno ?
21:34 forrest joined #salt
21:34 diegows joined #salt
21:36 faldridge joined #salt
21:40 bhosmer joined #salt
21:41 dstanek joined #salt
21:43 tmandry joined #salt
21:44 faldridge joined #salt
21:47 akoumjian joined #salt
21:48 yomilk joined #salt
21:54 ajw0100 joined #salt
22:00 scalability-junk joined #salt
22:06 redondos joined #salt
22:07 ajw0100 joined #salt
22:14 baniir joined #salt
22:21 zain_ joined #salt
22:30 sroegner joined #salt
22:50 n8n joined #salt
23:01 johtso joined #salt
23:03 xmltok joined #salt
23:13 sroegner joined #salt
23:16 harobed_ joined #salt
23:17 harobed_ joined #salt
23:22 kloplop321 left #salt
23:25 ajw0100 joined #salt
23:34 jeddi joined #salt
23:34 jeffro joined #salt
23:43 bemehow joined #salt
23:57 wkf_ joined #salt

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