Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-04-27

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

All times shown according to UTC.

Time Nick Message
00:00 rome joined #salt
00:04 cro joined #salt
00:08 JasonSwindle joined #salt
00:13 halfss joined #salt
00:19 JasonSwindle joined #salt
00:21 Voziv How can I troubleshoot " 'Error when fetching: fatal: Could not read from remote repository.'". I can clone the url I used as a git repo but the command: salt-run fileserver.update   gives me that error
00:42 Nexus_x1__ joined #salt
00:45 JasonSwindle joined #salt
00:52 jalaziz joined #salt
00:53 ericholscher joined #salt
00:54 ericholscher You all should really change this command where you are piping to sudo to at least be using https: http://docs.saltstack.com/en/latest/topics/tutorials/quickstart.html#bootstrap-salt-minion
00:54 JasonSwindle joined #salt
00:55 travisfischer joined #salt
00:57 diegows joined #salt
00:59 UtahDave joined #salt
01:01 Gordonz joined #salt
01:03 [diecast] joined #salt
01:14 jslatts joined #salt
01:21 mgw joined #salt
01:22 manfred ericholscher: https://github.com/saltstack/salt/pull/12328
01:22 ericholscher afaict, there isn't valid SSL on that server
01:23 manfred boo, i thought there was
01:23 manfred i remember there being something on there
01:23 zirpu joined #salt
01:23 ericholscher -> curl -I https://bootstrap.saltstack.org/
01:23 ericholscher curl: (35) Unknown SSL protocol error in connection to bootstrap.saltstack.org:-9800
01:23 manfred yeah
01:23 Voziv to answer my own question, salt-master doesn't like git@bitbucket.org:username so it must be changed to git@bitbucket.org/username  (the difference between the : and the /)
01:23 Nexus_x1__ joined #salt
01:23 manfred it does redirect to ssl on github though
01:24 xzarth joined #salt
01:26 manfred but yeah, it really should be ssl for bootstrap.saltstack.org
01:26 manfred that would have been why i got errors with urllib heh
01:27 elfixit joined #salt
01:27 ericholscher manfred: thanks for the quick turnaround on that
01:27 ericholscher !m manfred
01:27 ericholscher aww, no http://motivate.im/ :)
01:27 manfred heh
01:31 rome joined #salt
01:39 quickdry21 joined #salt
01:43 ckao joined #salt
01:54 dstufft How often does gitfs pull from the remote repository to check for updates?
01:59 JasonSwindle joined #salt
02:01 halfss joined #salt
02:04 JasonSwindle joined #salt
02:08 UtahDave dstufft: every 60 seconds, I believe
02:09 TyrfingMjolnir joined #salt
02:29 TyrfingMjolnir joined #salt
02:52 bhosmer joined #salt
02:55 faldridge joined #salt
03:02 Ryan_Lane joined #salt
03:05 smcquay joined #salt
03:05 zirpu joined #salt
03:06 catpigger joined #salt
03:08 TyrfingMjolnir joined #salt
03:31 TyrfingMjolnir joined #salt
03:33 jeddi joined #salt
03:40 joehoyle joined #salt
03:50 halfss joined #salt
03:51 sgviking joined #salt
03:53 jalaziz joined #salt
03:54 Nexus_x1___ joined #salt
03:56 Nexus_x1____ joined #salt
04:04 cruatta joined #salt
04:07 cruatta joined #salt
04:18 cruatta joined #salt
04:35 elfixit joined #salt
04:36 Nexus_x1____ joined #salt
04:42 napper joined #salt
04:46 mway joined #salt
04:47 mway you guys ever have an issue with running a salt state (even highstate) often not outputting a response?  seems like it just stops waiting for all the minions to complete their tasks?
04:47 Luke_ joined #salt
04:48 faldridge joined #salt
04:49 faldridge joined #salt
04:54 napper mway: it’s happend a few times, for me, its moved the process into a subshell and handled the forking. although there have been times I haven’t seen output.
04:54 smcquay joined #salt
05:04 ravibhure joined #salt
05:05 doanerock joined #salt
05:10 yusuket joined #salt
05:15 cruatta joined #salt
05:15 tharkun joined #salt
05:17 yusuket joined #salt
05:25 joehoyle joined #salt
05:53 logix812 joined #salt
05:57 cruatta joined #salt
06:20 fragamus joined #salt
06:27 joehoyle joined #salt
06:39 TyrfingMjolnir joined #salt
07:09 anuvrat joined #salt
07:11 giannello joined #salt
07:12 doanerock joined #salt
07:22 taterbase joined #salt
07:27 halfss joined #salt
07:35 ravibhure joined #salt
07:41 anuvrat joined #salt
07:41 TyrfingMjolnir joined #salt
07:53 anuvrat joined #salt
07:55 doanerock joined #salt
08:07 doanerock joined #salt
08:17 bhosmer joined #salt
08:20 jalaziz joined #salt
08:25 joehoyle joined #salt
08:25 chenxiongfei joined #salt
08:26 stephanbuys joined #salt
08:28 doanerock joined #salt
08:36 toddnni joined #salt
08:44 anuvrat joined #salt
09:02 TyrfingMjolnir joined #salt
09:04 doanerock joined #salt
09:10 aleszoulek joined #salt
09:13 harobed_ joined #salt
09:18 CeBe joined #salt
09:49 bhosmer joined #salt
09:52 ml_1 joined #salt
10:18 ggoZ joined #salt
10:22 ndrei joined #salt
10:27 doanerock joined #salt
10:30 MK_FG joined #salt
10:32 Gordonz joined #salt
10:50 joehh joined #salt
10:53 halfss joined #salt
10:56 bhosmer joined #salt
10:57 DaveQB joined #salt
11:05 Kenzor joined #salt
11:15 war2 joined #salt
11:15 madduck joined #salt
11:15 madduck joined #salt
11:16 entil left #salt
11:30 entil joined #salt
11:31 doanerock joined #salt
11:33 eliasp joined #salt
11:46 mapu joined #salt
11:50 doanerock joined #salt
12:02 doanerock joined #salt
12:10 svx joined #salt
12:24 ajw0100 joined #salt
12:38 ggoZ joined #salt
12:47 ajw0100 joined #salt
12:50 cruatta joined #salt
13:05 ravibhure1 joined #salt
13:13 bhosmer joined #salt
13:14 pdayton joined #salt
13:17 doanerock joined #salt
13:30 rome joined #salt
13:31 bhosmer joined #salt
13:35 rome joined #salt
13:36 ajw0100 joined #salt
13:44 JasonSwindle joined #salt
13:51 happytux joined #salt
14:01 joehoyle joined #salt
14:09 joehoyle joined #salt
14:10 ravibhure joined #salt
14:15 avienu joined #salt
14:29 joehoyle joined #salt
14:37 joehoyle joined #salt
14:39 piloupy joined #salt
14:40 ajw0100 joined #salt
14:46 joehoyle joined #salt
14:48 joehoyle_ joined #salt
14:51 cruatta joined #salt
14:53 happytux joined #salt
15:01 happytux_ joined #salt
15:01 joehoyle joined #salt
15:02 doanerock joined #salt
15:12 swa_work joined #salt
15:18 cruatta joined #salt
15:30 vbabiy joined #salt
15:35 iscsi joined #salt
15:36 halfss joined #salt
15:36 joehoyle joined #salt
15:37 happytux joined #salt
15:37 halfss joined #salt
15:38 halfss joined #salt
15:39 halfss joined #salt
15:40 halfss joined #salt
15:44 happytux_ joined #salt
16:08 napper joined #salt
16:09 Luke_ joined #salt
16:11 joehoyle joined #salt
16:16 napper joined #salt
16:22 napper joined #salt
16:22 happytux joined #salt
16:27 napper joined #salt
16:35 tkharju2 joined #salt
16:41 cnelsonsic joined #salt
16:44 happytux_ joined #salt
16:44 napper joined #salt
16:48 napper joined #salt
16:54 happytux joined #salt
17:00 joehoyle joined #salt
17:08 diegows joined #salt
17:11 zain_ joined #salt
17:26 logix812 joined #salt
17:29 cruatta joined #salt
17:31 ndrei joined #salt
17:34 travisfischer joined #salt
17:34 jcristau joined #salt
17:37 ipmb joined #salt
17:41 halfss joined #salt
17:43 JasonSwindle joined #salt
17:51 rome joined #salt
17:52 it_dude joined #salt
17:58 rome joined #salt
18:06 taterbase joined #salt
18:06 Luke_ joined #salt
18:07 mgw joined #salt
18:17 Sypher joined #salt
18:21 Nexus_x1 joined #salt
18:25 cruatta joined #salt
18:27 rjc joined #salt
18:30 danielbachhuber joined #salt
18:32 RandalSchwartz file.append doesn't support watch_in, apparently
18:32 RandalSchwartz unlike file.replace
18:33 manfred it should be supported by every state, it is built into state.py
18:34 manfred https://github.com/saltstack/salt/blob/develop/salt/state.py#L49
18:34 RandalSchwartz weird.
18:34 RandalSchwartz could it be that service.running doesn't watch file.append properly?
18:34 RandalSchwartz when I did the same thing with file.replace, that seemed to work as I expected
18:35 mateoconfeugo joined #salt
18:35 manfred you have watch_in in file.append?
18:35 RandalSchwartz yes
18:35 manfred can i see the state?
18:35 RandalSchwartz is there a preferred pastebin here?
18:36 manfred not really
18:36 RandalSchwartz .... http://pastebin.com/t8j50yNS
18:37 RandalSchwartz the file.replace works as expected
18:37 RandalSchwartz the file.append does not
18:37 manfred ok, one second
18:37 RandalSchwartz file.append *does* work with require_in, since I have another recipe using that
18:37 RandalSchwartz but I need it to bounce sshd if it made that change
18:38 manfred instead of your file.replace, have you seen file.comment?
18:38 manfred one second, lemme spin up my salt server
18:39 RandalSchwartz yeah, I just noticed file.comment
18:41 manfred so
18:41 manfred it is working for me
18:41 manfred http://ix.io/bXH
18:41 RandalSchwartz so the service already running gets bounced if that edit is made?
18:41 RandalSchwartz s/edit/append/
18:42 manfred yeah
18:42 manfred it appended 223, and then the 22345
18:42 RandalSchwartz weird.
18:42 manfred what is the state id of your service.running block?
18:42 RandalSchwartz sshd
18:43 RandalSchwartz but I don't have that -reload: thing
18:43 manfred ahh yeah
18:43 manfred you need reload: True
18:43 manfred without that it just makes sure that sshd is running
18:43 RandalSchwartz why did the file.replace restart sshd then?
18:44 RandalSchwartz it seems the behavior should be the same
18:45 RandalSchwartz nope... even adding -reload: True doesn't trigger the service reload or restart, even though it says my sshd_config whould be changed
18:46 manfred hrm, it is restarting it for me on just the file.append and no reload: True ... hrm
18:46 RandalSchwartz Maybe it's a bug in file.append
18:46 RandalSchwartz that has been fixed in your version
18:47 manfred i wonder... if it is just a bug in the logic...
18:47 RandalSchwartz yeah - I just tested it again
18:48 RandalSchwartz when I forced file.replace to run, I got a reload (not restart now)
18:48 manfred that it restartes it after file.replace, and then looks to make sure that it restarted after file.append
18:48 manfred but it won't restart it the second time because the block only runs once
18:49 RandalSchwartz no - that's not the behavior I'm seeing
18:49 RandalSchwartz if any file.replace triggers, I get a single reload
18:49 RandalSchwartz if only file.append triggers, I get nothing
18:50 manfred http://ix.io/bXI
18:50 manfred yeah, i don't know then :/
18:50 RandalSchwartz so are you seeing that same behavior?
18:50 UtahDave joined #salt
18:50 manfred http://ix.io/bXJ
18:51 RandalSchwartz did you try it with only the file.append hit?
18:51 manfred nope, it is restarting on both
18:51 RandalSchwartz bizarre
18:51 RandalSchwartz are you running a release of salt, or some bleeding edge?
18:51 RandalSchwartz salt 2014.1.3
18:51 manfred i am running straight off of develop
18:52 manfred lemme grab 2014.1.3 real quick
18:52 RandalSchwartz ahh, so maybe it's a bug that was fixed. :)
18:53 RandalSchwartz Hmm.  I could configure my two edits to both be replaces. :)
18:53 manfred nope, still works in 2014.1.3
18:54 RandalSchwartz weird
18:55 manfred hrm, yeah cleared the entire install, and it is still working for me with just file.append
18:56 RandalSchwartz weird
18:56 RandalSchwartz weird weird
18:59 rome joined #salt
19:02 rome joined #salt
19:04 rogst joined #salt
19:14 tonthon joined #salt
19:15 Luke_ joined #salt
19:17 bmonty where do I put the config for halite?
19:21 bmonty nevermind, I found a blog that answers my questions
19:21 doanerock joined #salt
19:23 fragamus joined #salt
19:31 RandalSchwartz I can't put both file.commment and file.uncomment on the same id?
19:31 RandalSchwartz I am still not getting the hang of this. :(
19:31 redondos joined #salt
19:31 RandalSchwartz I tried file.comment: \n - regex, file.uncomment: \n - regex
19:32 RandalSchwartz and then I also tried file: \n - comment: .... uncomment: ...
19:33 RandalSchwartz well - I'll use two seapart IDs then
19:34 Ryan_Lane joined #salt
19:34 UtahDave RandalSchwartz: that's correct.  You can only have one "file" state under one id.
19:35 UtahDave RandalSchwartz: In fact, you can only have one instance of any kind of a state under an id.   It's a python dictionary
19:35 UtahDave the "file"  in "file.comment"  is the python dictionary key
19:35 UtahDave which must be unique
19:35 syngin- joined #salt
19:36 RandalSchwartz then why doesn't having one "file:" with subentries of "comment" and "uncomment" work?
19:37 doanerock joined #salt
19:38 RandalSchwartz I guess I don't quite understand the underlying data structures well enough
19:39 RandalSchwartz Ahh... Test=true on file.comment didn't report a reload, but actually running it did the reload
19:39 UtahDave It's because inside the "file" dictionary, there's just one plain text argument,  "comment" for example.  Then there are n number of arguments and options
19:39 RandalSchwartz so maybe it *was* working earlier
19:39 RandalSchwartz for manfred
19:40 gildegoma joined #salt
19:40 UtahDave It is a bit confusing at first
19:41 ajw0100 joined #salt
19:42 halfss joined #salt
19:45 RandalSchwartz ugh.  file.uncomment loses the anchor, and is uncommenting an unrelated line
19:45 RandalSchwartz Back to using file.replace instead
19:46 Eugene file.managed ftw
19:47 manfred but you don't need to manage the full file, just one line in it... and you don't want to maintain the full file for every package update that may change the deafult file
19:48 Eugene I don't /like/ when packages change the defaults on me.
19:48 Eugene A proper "stable" distribution won't do that ;-)
19:50 manfred I prefer to use up to date software :)
19:50 Kenzor joined #salt
19:51 mgw joined #salt
19:54 cruatta joined #salt
19:54 mgarfias joined #salt
19:57 bhosmer joined #salt
19:57 RandalSchwartz does watch always imply require
19:58 RandalSchwartz as in, if a service is stopped, it won't be started until all the watch conditions are also satisfied?
19:58 RandalSchwartz or do I need both watch and require to ensure that the service won't be started until these configs are done
20:02 ggoZ joined #salt
20:02 UtahDave RandalSchwartz: Yes, watch always implies require
20:03 UtahDave watch IS a require, with the additional feature that it calls the mod_watch() function of the watching module
20:04 RandalSchwartz ok... I must be misreading, but it looks like file.blockreplace doesn't take a source: like file.append does
20:05 UtahDave let me look at the doc
20:06 UtahDave Looks like you are correct.  There's just a "content" argument
20:08 RandalSchwartz weird.  because I really would have wanted that. :)
20:08 alunduil joined #salt
20:08 RandalSchwartz I hate putting large content into my .sls file
20:09 RandalSchwartz makes it harder to see the overall plan
20:09 UtahDave I agree. Seems like we should have a source option there.  It probably wouldn't be hard to add in.
20:10 terminalmage yeah, just read in the information from the source file and use that as the content
20:11 RandalSchwartz oh - the example shows something interesting with file.accumulated
20:11 RandalSchwartz maybe I can use that.
20:12 UtahDave cool
20:17 RandalSchwartz oh weird.  even file.accumulated doesn't take a source
20:17 RandalSchwartz what the f
20:17 RandalSchwartz I guess these people like cluttering up their .sls files :(
20:18 RandalSchwartz how do I show a multiline string with embedded blank lines in YAML again?
20:19 manfred a pipe block?
20:19 manfred something: |
20:19 RandalSchwartz Yeah, but that stops at the first blank, right?
20:19 Ryan_Lane1 joined #salt
20:20 manfred i think it stops when you un indent?
20:20 manfred that i do not know, i only used it for certificates in pillar data
20:20 RandalSchwartz well, I really hate it when I have a line with signifcant white space but nothing tlse. :)
20:22 manfred i think it will work for you
20:22 manfred as long as you have the correct amount of indention on each line
20:22 manfred it will only absorb the amount of whitespace for that level
20:23 RandalSchwartz Ugh... ended up with a tab character in the file
20:24 mgw joined #salt
20:38 mway joined #salt
20:45 rygy joined #salt
20:46 RandalSchwartz Ugh.  I can run individual states now, but can't run highstate
20:47 RandalSchwartz I get "Data failed to compile:  No matching sls found for 'chris1' in env 'base'
20:47 RandalSchwartz but it's right there. :(
20:51 UtahDave what's your top file look like?
20:53 mway was it ever made possible to pass arguments to highstate (and have them be available in a jinja context)?
20:55 it_dude joined #salt
20:55 mgw joined #salt
20:57 UtahDave mway: you can pass in pillar variables from the cli
20:57 RandalSchwartz foudn it... included the wrong sls file
20:58 RandalSchwartz but "Data failed to compile" is pretty vaue
20:58 avienu joined #salt
20:59 harobed_ joined #salt
21:00 mway UtahDave: if you mean pillar='{"foo":"bar"}', then gotcha, thanks!
21:00 UtahDave mway: yep
21:00 harobed_ joined #salt
21:03 manfred RandalSchwartz: are you only running from the master?
21:10 mway UtahDave: Sorry, one more quick question - shouldn't I be able to access the provided pillar data from states (e.g. pillar.get('foo')) in that case?
21:14 cnelsonsic joined #salt
21:15 bhosmer joined #salt
21:28 NullWagon joined #salt
21:32 yomilk joined #salt
21:41 Ashtonian joined #salt
21:43 halfss joined #salt
21:43 Nexus_x1 joined #salt
21:45 scalability-junk joined #salt
21:59 mgw joined #salt
22:04 DaveQB joined #salt
22:04 faldridge joined #salt
22:15 Nexus_x1 joined #salt
22:17 cewood joined #salt
22:18 micko joined #salt
22:20 rawtaz joined #salt
22:22 Luke_ joined #salt
22:26 individuwill is the iptables state supposed to be idempotent?
22:26 borgstrom joined #salt
22:27 rome joined #salt
22:33 Gordonz joined #salt
22:37 rome joined #salt
22:42 beach joined #salt
22:43 beach does anyone know of a way to create a symlink for a directory? The only reference to symlinks in the documentation is for a file
22:43 Guest22561 joined #salt
22:45 mgw joined #salt
22:48 manfred beach: it works the same for both https://github.com/saltstack/salt/blob/develop/salt/states/file.py#L797
22:49 beach okay, great. I was just adding a test into a state for just that. Thanks manfred!
22:51 doanerock joined #salt
22:57 joehoyle joined #salt
22:57 joehoyle joined #salt
22:59 bhosmer joined #salt
23:00 Gordonz joined #salt
23:00 mateoconfeugo joined #salt
23:04 mgw joined #salt
23:16 acabrera joined #salt
23:18 bmonty joined #salt
23:21 avienu joined #salt
23:25 rome joined #salt
23:29 pdayton joined #salt
23:31 andrej Trying to define a nodegroup by enumerating a bunch of host names as a comma-separated list ... I get a "no minions matched" when I do 'salt -N group1 test.ping ... is a comma-separated list of hosts not acceptable?
23:34 Luke_ joined #salt
23:35 andrej Meh ... answering my own question: prepending the list w/ L@ helps ...
23:39 elfixit joined #salt
23:43 doanerock joined #salt
23:44 halfss joined #salt
23:58 micko__ joined #salt

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