Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-06-29

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

All times shown according to UTC.

Time Nick Message
00:00 msciciel_ joined #salt
00:00 zain__ joined #salt
00:00 redondos- joined #salt
00:01 tmmt_ joined #salt
00:01 alexis1 joined #salt
00:01 clone1018 joined #salt
00:01 dimeshake_ joined #salt
00:02 Karunamon|2 joined #salt
00:02 CaptTofu_ joined #salt
00:02 jY- joined #salt
00:03 kossy_ joined #salt
00:03 nyov_ joined #salt
00:03 dwfreed_ joined #salt
00:04 ksalman in the reactor, instead of cmd.state.highstate how can i use a specific state file? naievely i tried cmd.state.test to deploy the test.sls but that didn't work
00:04 rcsheets_ joined #salt
00:04 codekobe_ joined #salt
00:04 toastedpenguin joined #salt
00:04 balltongu joined #salt
00:04 taterbase joined #salt
00:04 mariusv joined #salt
00:04 seblu joined #salt
00:05 bensons joined #salt
00:05 terminalmage joined #salt
00:05 etw joined #salt
00:05 ndrei joined #salt
00:05 alainv joined #salt
00:05 manfred joined #salt
00:05 ze-_ joined #salt
00:06 jmccree joined #salt
00:06 whitepaws joined #salt
00:06 neilf_ joined #salt
00:06 shano_ joined #salt
00:06 zz_Cidan joined #salt
00:06 Cidan joined #salt
00:07 nlb joined #salt
00:07 bejer_ joined #salt
00:07 delkins_ joined #salt
00:07 huleboer joined #salt
00:07 AlcariTh1Mad joined #salt
00:07 Striki joined #salt
00:07 _Flusher joined #salt
00:07 madduck__ joined #salt
00:07 thunderbolt joined #salt
00:08 copelco joined #salt
00:08 blackjid joined #salt
00:08 Hollinski joined #salt
00:08 mephx joined #salt
00:08 kula joined #salt
00:09 oz_akan_ joined #salt
00:09 jab416171 joined #salt
00:09 pfalleno1 joined #salt
00:09 Sypher joined #salt
00:09 nliadm joined #salt
00:09 Sway joined #salt
00:09 Jahkeup joined #salt
00:09 xenoxaos joined #salt
00:09 Yoda-BZH joined #salt
00:09 Yoda-BZH joined #salt
00:10 Gareth joined #salt
00:10 kaictl joined #salt
00:10 djinni` joined #salt
00:10 CeBe1 joined #salt
00:10 Aletheuo joined #salt
00:10 codekoala joined #salt
00:10 codekoala joined #salt
00:11 Eugene joined #salt
00:11 jamesog joined #salt
00:11 georgemarshall joined #salt
00:11 munhitsu_ joined #salt
00:11 [vaelen] joined #salt
00:12 chutzpah joined #salt
00:12 HACKING-TWITTER joined #salt
00:17 blast_hardcheese joined #salt
00:17 maxskew_ joined #salt
00:17 nyov joined #salt
00:18 TaiSHi_ joined #salt
00:18 Ixan joined #salt
00:18 TaiSHi joined #salt
00:19 madduck joined #salt
00:19 oeuftete joined #salt
00:19 nahamu joined #salt
00:19 Flusher joined #salt
00:20 kalessin_ joined #salt
00:20 arapaho_ joined #salt
00:20 munhitsu_ joined #salt
00:21 clone1018 joined #salt
00:21 maber_ joined #salt
00:21 abele_ joined #salt
00:21 _blackjid joined #salt
00:21 CaptTofu_ joined #salt
00:22 erjohnso_ joined #salt
00:22 gamingrobot joined #salt
00:22 berto- joined #salt
00:22 bejer joined #salt
00:22 Striki_ joined #salt
00:23 ajolo joined #salt
00:23 jcristau joined #salt
00:23 amontalb1n joined #salt
00:23 lyddonb joined #salt
00:24 wiqd_ joined #salt
00:24 msciciel_ joined #salt
00:24 Karunamon|2 joined #salt
00:24 modafinil_ joined #salt
00:24 bensons joined #salt
00:24 v0rtex joined #salt
00:24 __alex joined #salt
00:24 goki joined #salt
00:25 agronholm joined #salt
00:25 Rebus joined #salt
00:25 SaveTheRbtz joined #salt
00:26 HACKING-TWITTER joined #salt
00:26 HACKING-TWITTER joined #salt
00:26 whiteinge joined #salt
00:27 HACKING-TWITTER joined #salt
00:28 codysoyland joined #salt
00:29 zartoosh joined #salt
00:29 rigor789z joined #salt
00:30 __number5__ joined #salt
00:30 seblu42 joined #salt
00:30 kevinbrolly_ joined #salt
00:30 jhauser_ joined #salt
00:30 sdebot_ joined #salt
00:31 micah_chatt_ joined #salt
00:32 nebuchad` joined #salt
00:32 errr_ joined #salt
00:32 kriberg joined #salt
00:32 luminous_ joined #salt
00:32 bonezed joined #salt
00:32 sindreij_ joined #salt
00:33 nyov_ joined #salt
00:33 jerrcs_ joined #salt
00:33 GnuLxUsr_ joined #salt
00:33 vandemar_ joined #salt
00:33 AdamSewell_ joined #salt
00:33 patrek_ joined #salt
00:33 viq_ joined #salt
00:33 vnico_ joined #salt
00:33 wigit_ joined #salt
00:33 E1NS_ joined #salt
00:33 djaykay_ joined #salt
00:34 ksalman in the reactor, instead of cmd.state.highstate how can i use a specific state file? naievely i tried cmd.state.test to deploy the test.sls but that didn't work
00:34 artificialexit joined #salt
00:35 tinuva joined #salt
00:36 E1NS_ joined #salt
00:36 schristensen_ joined #salt
00:36 manfred uhh, lemme find if mine are published anywhere yet
00:37 manfred salt_update:
00:37 manfred cmd.state.sls:
00:37 SaveTheR0btz joined #salt
00:37 manfred - tgt: '*'
00:37 manfred - arg:
00:37 manfred - salt-minion
00:37 manfred that passses the salt-minion/init.sls state
00:37 crashmag_ joined #salt
00:37 joelperras joined #salt
00:38 icebourg joined #salt
00:38 zz_cro joined #salt
00:38 etw joined #salt
00:38 JPaul joined #salt
00:38 maboum joined #salt
00:38 herlo joined #salt
00:38 the_lalelu joined #salt
00:39 Blacklite joined #salt
00:39 bretep joined #salt
00:39 ksalman manfred: thanks
00:39 JoeHazzers joined #salt
00:39 ph8 joined #salt
00:40 programmerq joined #salt
00:40 aquinas joined #salt
00:41 redondos joined #salt
00:42 marcinkuzminski joined #salt
00:43 thayne joined #salt
00:43 ilako joined #salt
00:48 ml_1 joined #salt
00:50 xt joined #salt
00:51 HACKING-TWITTER joined #salt
00:52 HACKING-TWITTER joined #salt
00:52 manfred np
00:52 ajolo joined #salt
00:52 HACKING-TWITTER joined #salt
00:53 HACKING-TWITTER joined #salt
00:54 HACKING-TWITTER joined #salt
00:58 ajolo_ joined #salt
01:09 otter768 joined #salt
01:09 oz_akan_ joined #salt
01:26 otter768 joined #salt
01:32 jhauser_ joined #salt
01:33 mateoconfeugo joined #salt
01:40 schimmy joined #salt
01:42 bhosmer joined #salt
01:44 krow joined #salt
02:01 Linuturk joined #salt
02:05 scoates joined #salt
02:08 CeBe2 joined #salt
02:08 CeBe3 joined #salt
02:09 ramishra joined #salt
02:10 oz_akan_ joined #salt
02:23 schimmy joined #salt
02:33 luminous joined #salt
02:36 ramishra joined #salt
02:41 micah_chatt joined #salt
02:44 sxar joined #salt
02:45 micah_chatt_ joined #salt
03:05 luminous Service kibana is already enabled, and is in the desired state
03:06 luminous how could salt's service.running be so horribly wrong?
03:06 luminous #  service kibana status
03:06 luminous kibana: no instances running
03:06 luminous digging thru salt's logs, salt runs "service kibana status"
03:07 luminous how does salt translate this as 'yes, it's running'?
03:07 ganbie joined #salt
03:07 ganbie howdy,
03:07 * luminous waves
03:08 ganbie question, if I reinstall salt-master on my master server do I have to reconfigure new keys with my minions?
03:09 manfred you shouldn't have to
03:09 manfred the keys should be in /etc/salt/pki
03:09 manfred and not touched by a package
03:10 luminous ganbie: reinstalling shoudl not change those files
03:10 luminous even using states/service.py from develop fails
03:10 * luminous *sadface*
03:11 oz_akan_ joined #salt
03:11 luminous anyone else running ubuntu see this failure with service foo status?
03:11 luminous could it be init.d script?
03:12 manfred luminous: https://github.com/saltstack/salt/blob/develop/salt/states/service.py#L290
03:12 manfred https://github.com/saltstack/salt/blob/develop/salt/states/service.py#L290
03:13 manfred looks like it is just looking for the pid
03:13 luminous manfred: no, salt is using "service kibana status" to confirm
03:13 luminous manfred: believe me, I got completely lost in that code
03:13 luminous but I can see this in the logs
03:13 manfred right
03:13 luminous and when you run 'service foo status'
03:14 manfred is it redhat?
03:14 luminous you use the init.d script (or whatever)
03:14 luminous no, ubuntu
03:14 ganbie awesome thanks
03:16 manfred luminous: https://github.com/saltstack/salt/blob/develop/salt/modules/upstart.py#L407
03:16 manfred that is where it runs it
03:16 luminous so my initi.d script uses 'ruby $KIBANA_BIN $1'  (or, ruby kibana-daemon.rb status)
03:17 manfred luminous: if the word 'start' or 'running' is in the return, it returns True and thinks that the service is already running
03:17 manfred or actually
03:17 manfred hold on
03:17 manfred if it is in /etc/init/*.conf so an upstart script, it returns if start/running is in the status return
03:18 manfred luminous: otherwise it returns the ret number of service <service> status
03:18 luminous no, not upstart
03:18 luminous init.d
03:19 manfred then it returns th retcode of service <service> status
03:19 manfred like i said
03:20 manfred luminous: it still uses the upstart.py because it matches https://github.com/saltstack/salt/blob/develop/salt/modules/upstart.py#L62 , and then the module name is https://github.com/saltstack/salt/blob/develop/salt/modules/upstart.py#L54 for anything that __virtual__ returns for
03:21 manfred so it overrides the def status() function in service.py module, on ubuntu linaro and elementary Os systems, and any debian and raspbian that has the initctl file available, meaning it is using upstart
03:21 manfred as pid 1
03:21 luminous so if ruby returns ok, salt thinks it's successful/enabled?
03:21 manfred if service <service> status returns a retcode of 0, then it will think that it is started
03:21 manfred and running
03:21 manfred try echo $? after service <service> status
03:22 luminous ruby would return 0 if succesful, me thinks
03:22 manfred if it is a 0, it returns True
03:22 manfred probably
03:22 luminous how to test with echo?
03:22 manfred meaning that the service is written badly, because status should return a 1 or something if it isn't started
03:22 luminous yes
03:22 manfred luminous: run service <service> status and then echo $?
03:22 luminous ah ok
03:22 manfred $? will give the retcode of the last command
03:22 luminous yes, 0
03:23 manfred yup, needs to be fixed upstream on your application to return a 1 if it isn't started
03:23 luminous so I will find a way to have ruby return 1? or -1?
03:23 luminous yes, ok
03:23 luminous will do
03:23 manfred anything but a 1 should work
03:23 manfred or
03:23 manfred i mean 0
03:23 manfred anything but a 0 will work
03:23 luminous :)
03:23 luminous thanks for confirming!
03:23 manfred np!
03:23 manfred luminous: https://github.com/saltstack/salt/blob/develop/salt/modules/upstart.py#L410
03:23 luminous this has driven me nuts today
03:24 manfred right there, it inverses the after doing a bool() on the retcode
03:24 manfred so 0 would be False, but the return not makes it return True, since python evaluates a 0 as false
03:24 jnials_laptop joined #salt
03:27 luminous it sort of really sucks that the search with ps aux doesn't win..
03:27 manfred ps aux doesn't get used
03:27 manfred because it it is ubuntu
03:27 luminous in some cases it does, right, not on ubuntut
03:27 manfred yes
03:27 luminous and that annoys me, because the ps would work correctly
03:27 luminous regardless of ruby sucking
03:27 manfred if you are not matched by one of the modules that has a __virtualname__='service' in it
03:27 luminous well.. it's actually both sucking
03:28 luminous because ruby executes fine, so it SHOULD return 0
03:28 manfred luminous: http://paste.gtmanfred.com/gVgP/
03:29 sxar joined #salt
03:29 manfred if it isn't matched by the __virtual__() in any of those states, then it would succeed
03:33 Mathnerd626 joined #salt
03:34 schimmy joined #salt
03:35 schimmy1 joined #salt
03:37 Mathnerd626 joined #salt
03:37 mosen joined #salt
03:42 krow joined #salt
03:42 sxar joined #salt
03:52 ramishra joined #salt
03:54 sxar joined #salt
04:01 Heartsbane joined #salt
04:01 Mathnerd626 joined #salt
04:04 sxar joined #salt
04:05 seventy3 joined #salt
04:06 sxar joined #salt
04:10 surgex joined #salt
04:12 oz_akan_ joined #salt
04:14 Nexpro joined #salt
04:17 sxar joined #salt
04:50 ml_1 joined #salt
04:57 sxar joined #salt
05:00 schimmy joined #salt
05:02 otter768 joined #salt
05:02 aquinas joined #salt
05:03 sxar joined #salt
05:12 oz_akan_ joined #salt
05:14 otter768 joined #salt
05:16 dcmorton joined #salt
05:18 ramishra joined #salt
05:19 bhosmer joined #salt
05:19 dcmorton joined #salt
05:34 seventy3 joined #salt
05:44 sxar joined #salt
05:47 sxar joined #salt
05:48 JayfordRo joined #salt
06:01 sxar joined #salt
06:07 sxar joined #salt
06:10 sxar joined #salt
06:13 oz_akan_ joined #salt
06:13 sxar joined #salt
06:17 sxar joined #salt
07:02 sxar joined #salt
07:03 ramteid joined #salt
07:07 bhosmer joined #salt
07:08 scott_w joined #salt
07:11 sxar joined #salt
07:14 oz_akan_ joined #salt
07:18 ramishra joined #salt
07:18 ml_1 joined #salt
07:19 ipalreadytaken joined #salt
07:19 TyrfingMjolnir joined #salt
07:22 sxar joined #salt
07:24 yomilk joined #salt
07:38 rcsheets joined #salt
07:38 codekobe joined #salt
07:38 neilf_ joined #salt
07:39 thunderbolt joined #salt
07:39 copelco joined #salt
07:39 munhitsu_ joined #salt
07:39 abele joined #salt
07:39 gamingrobot joined #salt
07:39 CaptTofu_ joined #salt
07:39 erjohnso_ joined #salt
07:39 Striki joined #salt
07:39 wiqd_ joined #salt
07:39 modafinil_ joined #salt
07:39 goki joined #salt
07:39 zartoosh joined #salt
07:40 kriberg joined #salt
07:43 ab_ joined #salt
08:14 Bosch[] joined #salt
08:15 oz_akan_ joined #salt
08:27 felskrone joined #salt
08:41 marco_en_voyage joined #salt
08:47 sxar joined #salt
08:55 sxar joined #salt
08:55 bhosmer joined #salt
08:57 marco_en_voyage joined #salt
09:03 bhosmer joined #salt
09:09 sxar joined #salt
09:10 krow joined #salt
09:11 gildegoma joined #salt
09:15 oz_akan_ joined #salt
09:19 ahale joined #salt
09:24 sxar joined #salt
09:26 sxar joined #salt
09:27 sxar joined #salt
09:35 vnico joined #salt
09:38 ramteid_ joined #salt
09:42 TyrfingMjolnir_ joined #salt
09:43 TheThing joined #salt
09:53 ilako joined #salt
09:57 chutzpah joined #salt
10:03 arapaho joined #salt
10:04 scarcry_ joined #salt
10:04 rcsheets_ joined #salt
10:04 abele_ joined #salt
10:04 neilf__ joined #salt
10:04 simonmcc_ joined #salt
10:05 octarine_ joined #salt
10:08 zsoftich joined #salt
10:10 cb joined #salt
10:10 Hollinski joined #salt
10:11 zz_RedDeath joined #salt
10:12 jbub joined #salt
10:15 kedo39 joined #salt
10:15 chutzpah joined #salt
10:15 Nazzy joined #salt
10:16 oz_akan_ joined #salt
10:25 Striki joined #salt
10:28 Flusher joined #salt
10:28 abele_ joined #salt
10:29 Sway joined #salt
10:32 happytux_ joined #salt
10:33 kaictl joined #salt
10:34 djinni` joined #salt
10:43 acabrera joined #salt
10:43 bhosmer joined #salt
10:45 yidhra joined #salt
10:54 scott_w joined #salt
11:00 scott_w_ joined #salt
11:05 chitown joined #salt
11:14 scalability-junk joined #salt
11:15 bhosmer joined #salt
11:17 oz_akan_ joined #salt
11:18 Jarus joined #salt
11:33 JohanR joined #salt
11:36 JohanR Hi, If I'm using salt-formula and want to have a pillar with different hosts and set id for each host. Is there any nice way to do this?
11:41 scott_w joined #salt
11:49 mapu joined #salt
11:55 ilako joined #salt
11:55 kedo39 joined #salt
11:58 Shish joined #salt
12:07 arnoldB hm. any ideas how to define tuples in pillars with the default renderer?
12:18 oz_akan_ joined #salt
12:22 bhosmer joined #salt
12:26 diegows joined #salt
12:29 elfixit joined #salt
12:29 vu joined #salt
12:31 arnoldB trying the pure python renderer
12:31 bhosmer_ joined #salt
12:33 arnoldB and it seems to work. hell yeah
12:38 non7top joined #salt
12:45 arnoldB hm but salt doesn't output parentheses
12:54 arnoldB #13831
13:03 taterbase joined #salt
13:17 thayne joined #salt
13:18 dude051 joined #salt
13:19 oz_akan_ joined #salt
13:23 ggoZ joined #salt
13:24 ggoZ joined #salt
13:25 Mathnerd626 joined #salt
13:27 yomilk joined #salt
13:33 Sway|Away joined #salt
13:45 malinoff joined #salt
13:53 non7top is it possible to check in sls whether some id exists or not?
13:58 diegows joined #salt
14:00 nkuttler non7top: hm, can you give an example? do you have conditional entries?
14:01 non7top I want to add a require_in but only of there is some other id, if that id doesn't exist it results in error
14:03 non7top something like {% if '/etc/yum.repos.d' in salt['ids'] %}
14:19 oz_akan_ joined #salt
14:20 bhosmer_ joined #salt
14:24 thayne joined #salt
14:29 felskrone joined #salt
14:37 acabrera joined #salt
14:49 bhosmer joined #salt
14:57 scarcry joined #salt
15:08 Nexus_x1 joined #salt
15:17 vu joined #salt
15:20 oz_akan_ joined #salt
15:24 bhosmer joined #salt
15:28 Luke__ joined #salt
15:33 oz_akan_ joined #salt
15:36 bhosmer joined #salt
15:39 happytux joined #salt
15:47 thedodd joined #salt
15:53 nlb joined #salt
16:02 scarcry joined #salt
16:03 * xmj checks for Salt 2014.1.6
16:04 xmj joehh: terminalmage: as it's getting closer - which mailing list do I want to read?
16:06 linjan joined #salt
16:08 bhosmer_ joined #salt
16:08 linjan joined #salt
16:10 linjan joined #salt
16:17 phx joined #salt
16:17 phx joined #salt
16:21 ajolo joined #salt
16:21 ajolo_ joined #salt
16:24 diegows joined #salt
16:34 bhosmer joined #salt
16:34 manfred xmj: it isn't tagged yet afaik
16:34 manfred or at least the tag isn't pushed to git
16:39 arnoldB does anyone of you know how to extend salt to accept tuples using the pyyaml renderer?
16:41 xmj manfred: doesn't answer the question which mailing list the notification of tag being pushed goes to :p
16:43 masterkorp Guys any sensu formula
16:44 arnoldB masterkorp: http://lmgtfy.com/?q=saltstack+sensu+formula
16:45 krow joined #salt
16:46 Gareth xmj: Tom usually sends out an announcement on salt-users
16:48 xmj there we are.
16:48 masterkorp arnoldB: i tried that thank you
16:48 danielbachhuber joined #salt
16:48 masterkorp if you look at the results yourself you will see I am asking
16:49 xmj Gareth: is that before or after things hit salt-announce?
16:49 Gareth probably around the same time.
16:49 xmj a-ha
16:49 xmj and is that before packages are readied or after? :p
16:50 Gareth announcement about new release usually goes out before packages are ready, that takes a bit of time.
16:50 arnoldB masterkorp: hm no I don't get it. what's with https://github.com/ministryofjustice/sensu-formula/tree/master/sensu?
16:53 xmj cool
17:00 micah_chatt joined #salt
17:07 elfixit joined #salt
17:13 Nazca__ joined #salt
17:14 Mathnerd626 joined #salt
17:23 oz_akan_ joined #salt
17:26 nyov_ joehh: is there a reason why salt-minion (through salt-common) recommends python-git (and all it's depends)? in short, is there a good reason for pulling in git on minions?
17:28 nyov when installing my minions, I dropped this recommendation, and it seems to be the difference between installing ~18mb to installing ~35mb with all the git depends
17:35 Eugene Because gitfs:// is one of the recommended ways to do file distribution
17:35 Eugene If you're not doing that then you probably don't need it.
17:37 nyov Eugene: hmm, I thought that's the master distributing files from it's git (mirror)?
17:37 nyov do the minions pull from a git remote instead of the master?
17:37 nyov (rather, can they)
17:38 Eugene I'm not actually sure
17:38 Eugene It could be a leaky library need
17:38 Eugene http://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html
17:39 nyov yeah I know this page. and it says "In a master/minion setup, files from a GitFS remote are cached once by the master; so minions do not need direct access to the git repository"
17:39 Eugene It says id you're doing masterless then they need it
17:43 taterbase joined #salt
17:56 bhosmer joined #salt
18:04 dvogt joined #salt
18:15 jforest joined #salt
18:21 ckao joined #salt
18:26 danielbachhuber joined #salt
18:26 oz_akan_ joined #salt
18:35 oz_akan_ joined #salt
18:48 fxdgear joined #salt
18:51 dvogt joined #salt
18:52 Luke__ joined #salt
18:53 vu_ joined #salt
18:55 tru_tru joined #salt
18:58 acabrera joined #salt
19:06 acabrera joined #salt
19:24 dvogt joined #salt
19:24 linjan joined #salt
19:30 yomilk joined #salt
19:31 ndrei joined #salt
19:36 vu joined #salt
19:38 oz_akan_ joined #salt
19:42 scott_w joined #salt
19:44 bhosmer joined #salt
19:48 scott_w joined #salt
19:53 krow joined #salt
20:06 danielbachhuber- joined #salt
20:09 Vitalik_London joined #salt
20:11 linjan_ joined #salt
20:12 ggoZ1 joined #salt
20:13 krow1 joined #salt
20:15 dvogt joined #salt
20:17 hardwire joined #salt
20:17 kedo39 joined #salt
20:19 kedo39 joined #salt
20:21 troyready joined #salt
20:22 AdamSewell joined #salt
20:22 AdamSewell joined #salt
20:23 neilf__ joined #salt
20:23 ilako joined #salt
20:23 TheThing joined #salt
20:25 abele_ joined #salt
20:25 octarine_ joined #salt
20:26 SaveTheR0btz joined #salt
20:26 ggoZ joined #salt
20:27 lyddonb_ joined #salt
20:28 whiteing1 joined #salt
20:28 aquinas__ joined #salt
20:28 sdebot joined #salt
20:28 dotplus_ joined #salt
20:29 sirtaj_ joined #salt
20:29 E1NS_ joined #salt
20:29 whiteinge joined #salt
20:29 GnuLxUsr joined #salt
20:30 scalability-junk joined #salt
20:30 zz_RedDeath joined #salt
20:30 Linuturk joined #salt
20:30 notpeter_ joined #salt
20:31 icebourg joined #salt
20:32 Nazca__ joined #salt
20:32 grep_away joined #salt
20:33 acabrera joined #salt
20:33 wigit joined #salt
20:34 crashmag joined #salt
20:34 seblu joined #salt
20:34 goki joined #salt
20:34 programmerq joined #salt
20:40 oz_akan_ joined #salt
20:41 steffo joined #salt
20:42 gildegoma joined #salt
20:43 ksk joined #salt
20:50 jalaziz joined #salt
21:02 aquinas_1 joined #salt
21:03 dvogt joined #salt
21:04 temha joined #salt
21:04 temha hi
21:04 temha I'm new salt
21:04 temha I configure user with salt
21:05 temha my user.sls is http://paste.debian.net/107318/
21:05 temha bu I get error
21:06 temha Comment: These values could not be changed: {'passwd': '$6$M8ScITQg$2upLxQB6/./77LJ3Z1iBw.cEUQp75L.IoZsCM84NWCCnYvXk0xVl3u7d0HyC1NV/:16250:0:99999:7:::'}
21:07 temha http://paste.debian.net/107319/
21:07 bhosmer joined #salt
21:14 bmatt temha: if you run salt-call, and look at the output, you'll be able to see the actual command that salt is running to make the change
21:14 bmatt (probably usermod)
21:14 dude^2 joined #salt
21:14 bmatt I'd try running that command manually and see what the output/error is
21:16 thayne joined #salt
21:17 temha bmatt, how can I do
21:17 bmatt how are you invoking user.sls?
21:19 temha bmatt, I runs all states, output is http://paste.debian.net/107323/
21:19 tech__ joined #salt
21:19 bmatt temha, are you running state.highstate?
21:19 temha bmatt, yes
21:19 temha salt '*' state.highstate -l debug
21:20 bmatt okay, so instead of doing that
21:20 bmatt on a minion, run "salt-call state.highstate"
21:20 bmatt and watch the output (there may be lots of it)
21:21 temha bmatt, I run on minion and get same output
21:21 bmatt of course
21:21 krow joined #salt
21:21 temha These values could not be changed: {'passwd': '$6$M8ScITQg$2upLxQB6/./77LJ3Z1iBw.cEUQp75L.IoZsCM84NWCCnYvXk0xVl3u7d0HyC1NCCocWL1M/:16250:0:99999:7:::'}
21:21 bmatt but that output has a line somewhere that shows what command salt running when it tries to change the password
21:22 bmatt what is that command?
21:23 temha I looked: https://gist.github.com/UtahDave/3785738
21:23 bmatt can you post the output from running salt-call state.highstate please?
21:28 temha bmatt, http://paste.debian.net/107326/
21:29 bmatt can you post it with -l debug? sorry, I assumed you would continue using it :)
21:32 bhosmer joined #salt
21:34 temha bmatt, ok, for you:) http://paste.debian.net/107327/
21:35 jslatts joined #salt
21:35 bmatt here we go
21:35 bmatt check line 626
21:36 bmatt that might be the issue
21:36 temha Optional group "admin" for user "rfuuh" is not present
21:36 temha ?
21:36 bmatt yes
21:36 bmatt the error message is most likely incorrect/confusing
21:36 bmatt can you file an issue about that?
21:37 dude051 joined #salt
21:37 bmatt (after you create the 'admin' group and verify that it works) :)
21:39 temha bmatt, yes, I fixed group problem:) thanks but get error couldnot change password
21:39 temha again
21:39 bmatt hm.
21:42 temha bmatt, I think doesnt work user.present.password :(
21:42 temha temha, doesnt change password of user
21:42 bmatt hm, can you file an issue for this? it'll require some further digging
21:43 oz_akan_ joined #salt
21:44 krow joined #salt
21:45 zain_ joined #salt
21:47 bmatt oh, actually
21:47 temha bmatt, I changed sls file like as http://paste.debian.net/107331/   and output is  http://paste.debian.net/107330/
21:47 bmatt does the user already exist?
21:47 temha bmatt, user already exist yes
21:48 bmatt are you sure your hash is correct?
21:48 bmatt what's the ":16250:0:99999:7:::" at the end?
21:49 bmatt password hashes should usually only have the form $...$......$............
21:49 bmatt but I don't know what hash mode 6 is
21:50 bmatt yeah, sha512, okay
21:50 bmatt that stuff at the end is wrong; where did it come from?
21:51 temha bmatt,  /etc/shadow  :)
21:51 Corey Looks like it was blindly copied out of /etc/shadow.
21:51 tech__ joined #salt
21:51 bmatt temha: you copied more than just the hash
22:01 temha bmatt, I couldnot do
22:01 scott_w joined #salt
22:02 bmatt temha: remove ":16250:0:99999:7:::" from the end and try again
22:09 bhosmer joined #salt
22:13 dude051 joined #salt
22:15 DaveQB joined #salt
22:18 sxar_ joined #salt
22:19 temha bmatt, fixed error and updated shadow file in minion but incorrect password :( I'm sure my password
22:20 sxar_ joined #salt
22:20 bmatt what do you mean when you say "updated shadow file"?
22:21 Hell_Lap joined #salt
22:21 temha all states run correctly
22:22 bmatt ah, I see. and you have confirmed that the data in the shadow file matches the hash in the state?
22:22 temha bmatt, yes
22:23 bmatt try using sample hashes from here: http://openwall.info/wiki/john/sample-hashes
22:26 bhosmer joined #salt
22:31 temha bmatt, ok, thanks a lot . I fixed my problem.
22:31 temha bmatt, change password correctly now
22:31 bmatt temha: you're very welcome
22:31 bmatt was it just the value of the hash?
22:33 mgw joined #salt
22:38 Hollinski joined #salt
22:43 oz_akan_ joined #salt
22:46 Luke_ joined #salt
22:48 tkharju joined #salt
23:00 temha bmatt, yes
23:01 mosen joined #salt
23:05 yomilk joined #salt
23:06 tkharju joined #salt
23:07 quickdry21 joined #salt
23:10 kivihtin joined #salt
23:15 krow joined #salt
23:17 mosen joined #salt
23:20 bhosmer joined #salt
23:28 kivihtin joined #salt
23:29 E1NS joined #salt
23:34 joehh nyov: I think you are right - it can be relaxed and probably just put on the master
23:34 joehh looking at the original bug, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700174
23:34 joehh I didn't understand salt enough at the time to put it just on the master
23:35 joehh I'll shift that over in the next release (expecting 2014.1.6 in next 24-48 hours or so)
23:40 yomilk joined #salt
23:42 dvogt joined #salt
23:43 dude051 joined #salt
23:44 oz_akan_ joined #salt
23:45 mgw joined #salt
23:45 kivihtin joined #salt
23:53 aw110f joined #salt
23:59 aw110f_ joined #salt

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