Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-07-06

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

All times shown according to UTC.

Time Nick Message
00:05 fragamus_ joined #salt
00:05 mgw joined #salt
00:06 mgw p-
00:08 emocakes joined #salt
00:09 whit joined #salt
00:15 dthom91 joined #salt
00:20 mgw2 joined #salt
00:28 krissaxton joined #salt
00:35 hazzadous joined #salt
00:39 Jahkeup_ joined #salt
00:41 fragamus joined #salt
00:45 hazzadous_ joined #salt
00:59 dthom91 joined #salt
00:59 whit joined #salt
01:06 bensix joined #salt
01:07 mgw joined #salt
01:19 Gifflen joined #salt
01:28 david_a joined #salt
01:29 krissaxton joined #salt
01:38 Psi-Jack joined #salt
01:39 mgw2 joined #salt
01:41 bluemoon joined #salt
01:45 jaequery joined #salt
01:47 jalbretsen joined #salt
02:13 juicer2 left #salt
02:16 aat joined #salt
02:17 andrewclegg joined #salt
02:20 logix812 joined #salt
02:30 krissaxton joined #salt
02:43 david_a joined #salt
02:53 capricorn_one joined #salt
02:55 alazylearner joined #salt
03:00 kcb joined #salt
03:05 Furao joined #salt
03:06 kcb joined #salt
03:23 Jahkeup_ joined #salt
03:30 auser joined #salt
03:30 krissaxton joined #salt
03:30 auser hey all
03:43 FreeSpencer joined #salt
03:48 david_a_ joined #salt
03:56 bluemoon joined #salt
04:02 auser joined #salt
04:04 jkleckner joined #salt
04:07 jaequery joined #salt
04:10 Psi-Jack joined #salt
04:11 teskew1 joined #salt
04:11 xrl joined #salt
04:12 jkleckner joined #salt
04:16 Nitron Anyone have any idea what's going on here? I can't tell if it's a salt problem or a problem with my tree: http://pastebin.com/V5urwuEs
04:17 linjan_ joined #salt
04:18 auser joined #salt
04:19 xerxas joined #salt
04:20 david_a_ joined #salt
04:21 Guest36200 joined #salt
04:22 david_a__ joined #salt
04:23 dthom911 joined #salt
04:25 wahahajun joined #salt
04:25 aat joined #salt
04:25 wahahajun hello everyone..
04:26 wahahajun now i my salt script run well with salt-minion  in debug mode. but when
04:27 wahahajun i run minion in normal service mode.   i get nothing from run my slat script...
04:30 wahahajun so weird.....BYW my minion service is starup not by administrator...do this matter?
04:30 auser joined #salt
04:31 krissaxton joined #salt
04:34 neilf joined #salt
04:34 wahahajun anyone met similar question?
04:35 wahahajun my minion is running on windows
04:37 ada__ joined #salt
04:41 Furao joined #salt
04:56 munhitsu joined #salt
04:58 pcarrier joined #salt
05:18 kcb joined #salt
05:18 alazylearner joined #salt
05:21 david_a_ joined #salt
05:22 __gotcha joined #salt
05:22 __gotcha joined #salt
05:26 dthom91 joined #salt
05:31 krissaxton joined #salt
05:39 wahahajun why this no log info generated with minion is service mode
05:58 wahahajun hello?
05:58 wahahajun anybody can help me..
05:59 wahahajun why no minion log info in windows...i have configued the conf\minion ..
06:00 wahahajun ??????????????????/
06:01 drdran joined #salt
06:07 bluemoon joined #salt
06:29 drdran left #salt
06:31 jefimenko joined #salt
06:32 krissaxton joined #salt
06:54 david_a_ joined #salt
07:03 lbotti joined #salt
07:04 azbarcea joined #salt
07:19 madduck What is mgw's Github login?
07:20 madduck is it Matthew Printz?
07:28 __gotcha joined #salt
07:30 Jahkeup_ joined #salt
07:31 dthom91 joined #salt
07:33 krissaxton joined #salt
07:36 lazyguru joined #salt
07:37 david_a joined #salt
07:42 aboe joined #salt
07:43 aboe joined #salt
07:44 aboe joined #salt
08:22 bluemoon joined #salt
08:27 Gamogo joined #salt
08:28 Gamogo Ahoy, I just discovered Salt and it sounds awesome. I do have one question however
08:29 david_a joined #salt
08:32 Jahkeup_ joined #salt
08:33 krissaxton joined #salt
09:22 spicyWith joined #salt
09:34 krissaxton joined #salt
09:35 aboe joined #salt
09:49 jeddi joined #salt
09:51 bluemoon joined #salt
10:05 backjlack joined #salt
10:11 madduck poor Gamogo
10:30 kerncore joined #salt
10:31 kerncore Hi,
10:32 kerncore I'm try to set some grains on targen through salt-api ( CURL )
10:32 kerncore But geting some error
10:32 kerncore curl -si https://localhost:8000/run  -H 'Accept: application/x-yaml' -d client='local' -d tgt='NewVM' -d fun='grains.setval'  -d arg='Type=[{"'['"LB","DB","App"']'"}]' -d username='username' -d password='password' -d eauth='pam'
10:32 kerncore return: - NewVM: 'Missing arguments executing "grains.setval":     ArgSpec(args=[''key'', ''val''], varargs=None, keywords=None, defaults=None)'
10:34 krissaxton joined #salt
11:07 efixit joined #salt
11:24 hazzadous joined #salt
11:35 krissaxton joined #salt
11:40 capricorn_one joined #salt
11:42 felixhummel joined #salt
11:44 david_a joined #salt
12:03 dthom91 joined #salt
12:04 bhosmer joined #salt
12:23 Furao joined #salt
12:23 david_a_ joined #salt
12:27 hotbox joined #salt
12:36 krissaxton joined #salt
12:36 efixit joined #salt
12:43 octarine joined #salt
12:44 pnl joined #salt
12:53 Jahkeup_ joined #salt
12:59 jbunting joined #salt
13:01 jaequery joined #salt
13:08 __gotcha joined #salt
13:08 __gotcha joined #salt
13:13 Furao joined #salt
13:22 Nexpro joined #salt
13:35 capricorn_one joined #salt
13:36 krissaxton joined #salt
13:43 jrgifford left #salt
13:50 Jahkeup_ joined #salt
13:58 Koma joined #salt
14:08 luminous kerncore: I don't think your args are specified correctly
14:10 luminous ArgSpec(args=[''key'', ''val''] >> args=[''Type'', ''["LB","DB","App"]'']
14:10 luminous or something to that effect..
14:11 aat joined #salt
14:12 jbunting joined #salt
14:13 hazzadous joined #salt
14:17 jslatts joined #salt
14:31 capricorn_one joined #salt
14:37 krissaxton joined #salt
14:59 krissaxton joined #salt
15:01 linjan_ joined #salt
15:07 jimallman joined #salt
15:17 ajw0100 joined #salt
15:22 oz_akan_ joined #salt
15:23 kmrhb joined #salt
16:09 krissaxton joined #salt
16:09 dthom91 joined #salt
16:42 jimallman joined #salt
16:49 spicyWith joined #salt
16:50 SpX joined #salt
16:58 mgw joined #salt
17:00 jslatts joined #salt
17:05 jkleckner joined #salt
17:10 madduck mgw: https://github.com/saltstack/salt/issues/5992 — that said, what's your github login?
17:10 jdenning joined #salt
17:10 madduck mgw: I am now working on this functionality in reclass because I walk the dict there anyway, and it's easier (since less complex as a whole) to get my fingers dirty.
17:15 Jahkeup_ joined #salt
17:22 capricorn_one joined #salt
17:23 Jahkeup__ joined #salt
17:24 kerncore -d arg=[''Type'', ''["LB","DB","App"]''] - same error
17:24 kerncore 'Missing arguments executing "grains.setval":     ArgSpec(args=[''key'', ''val''], varargs=None, keywords=None, defaults=None)'
17:26 Jahkeup_ joined #salt
17:42 krissaxton joined #salt
17:44 JJ_ joined #salt
17:48 jslatts joined #salt
17:49 diegows joined #salt
17:50 krissaxton joined #salt
17:55 capricorn_one joined #salt
17:58 jaequery joined #salt
18:05 oz_akan_ joined #salt
18:12 noob2 joined #salt
18:13 ajw0100 joined #salt
18:15 noob2 if i setup salt to manage my apache files and i set the service reload: True, will it reload apache whenever there are managed file changes?
18:15 noob2 i couldn't tell
18:16 akoumjian noob2: You need to specify a watch: on the managed file states. http://docs.saltstack.com/ref/states/requisites.html#watch
18:16 noob2 ok cool :)
18:17 akoumjian noob2: here is a better resource: http://docs.saltstack.com/ref/states/ordering.html#the-watch-requisite
18:17 noob2 oh that's perfect
18:17 noob2 i can specify what files trigger a reload
18:17 akoumjian noob2: Yes, that is precisely the main use case :-)
18:18 noob2 so would i add - reload: True under the watch there or under the service?
18:18 Xeago_ joined #salt
18:18 akoumjian noob2: And just to be clear. The watch statement "file: /my/foo/file" is not watching a file at /my/foo/file, it is watching a file.managed state named /my/foo/file
18:19 akoumjian noob2: I beleive reload is about the nature of the restart that the service.running state uses. reload vs restart
18:20 noob2 oh interesting
18:20 akoumjian noob2: The service.running state always issues a restart/reload if a state that it watches returns any changes. ie: if a file.managed state says the file was changed on the last run, it will reload/restart the service
18:20 linjan__ joined #salt
18:20 noob2 ok that's good
18:21 jdenning joined #salt
18:23 kerncore -d arg=[''Type'', ''["one","two"]''] - can't assign the grains to minion through salt-api, someone can help ?
18:23 kerncore please
18:29 ska joined #salt
18:29 noob2 akoumjian: i can have multiple file.managed: stanza's under the top level service right?
18:30 akoumjian noob2: Each file.managed exists as its own top leve state
18:30 noob2 can i paste my file so you can look at it?
18:30 akoumjian noob2: You reference one or more "file" state references underneath the watch option in the service.running state
18:30 akoumjian noob2: sure
18:30 Jahkeup_ joined #salt
18:31 noob2 http://fpaste.org/23442/35468137/
18:31 kmrhb joined #salt
18:32 akoumjian noob2: Okay, you're going to have a few problems there. The top part of your state declaration is the "name" of the state. This is a unique identifier. You cannot have multiple "file" states using the same name
18:33 noob2 ok
18:33 akoumjian noob2: You can have a "file" named "apache2" and a "service" named "apache2" but not more than one of each. The fact that you can place more than one type of state under a single name is just a small convenience
18:34 noob2 i see
18:34 akoumjian noob2: So the first thing you want to do is break out your file.managed and give them different identifiers. You can either use the value you are specifying in their "- name:' attribute, or just give them an arbitrary name
18:35 noob2 ok
18:36 noob2 so it'll look more like: http://fpaste.org/23443/13731357/
18:37 akoumjian noob2: Yep!
18:37 akoumjian noob2: You just need to add the watch statements now, like this https://gist.github.com/akoumjian/5940806
18:38 jeddi joined #salt
18:39 tomeff joined #salt
18:44 noob2 awesome :D
18:45 noob2 thanks for the big help
18:47 akoumjian noob2: You're welcome, good luck with salt
18:48 jaequery joined #salt
18:48 noob2 thanks :)
18:50 kstaken joined #salt
18:50 krissaxton joined #salt
18:54 noob2 akoumjian: can i have comments in the yaml files?  i didn't see anything mentioning that
18:55 akoumjian noob2: Yes, you can use normal yaml comments with #.
18:56 noob2 excellent
18:57 akoumjian noob2: Just keep in mind, if you are using jinja templating in your sls files that yaml comments are just regular lines to jinja. Since the default parser runs the sls files through jinja first, then yaml, any broken jinja syntax will cause your sls to fail to compile
18:57 Corey akoumjian: Any idea how to escale a # when you need a string literal?
18:57 akoumjian noob2: But you probably don't need to worry about that yet
18:57 Corey Does the | delimiter do it?
18:57 Corey escape**
18:57 noob2 ok i'll keep that in mind
18:58 akoumjian Corey: Don't know.
18:58 Corey akoumjian: May have to experiment.
18:58 akoumjian Corey: I believe yaml generally uses quotations, but don't know about how it handles #
18:58 Corey akoumjian: In other news I successfully used the | trick to use pillar to store an SSL cert.
18:59 akoumjian Corey: It's not a trick, it's the yaml spec for block text. :-)
18:59 Corey akoumjian: Well it was eye opening, whatever we want to call it, and it got me past a long-standing gripe about Salt's security model. :-)
19:00 akoumjian Corey: Well, that's good then. So I'm guessing you used that in conjunction with pillar to template out an ssl cert?
19:00 Corey akoumjian: Exactly, the .pem file was simply {{ pillar['cert'] }}
19:00 Corey After a bit of tweaking, there wasn't even a diff (the ssl cert predated Salt's presence on the box)
19:01 akoumjian Corey: Yep, that's a good way to do it.
19:02 ajw0100 joined #salt
19:13 jaequery joined #salt
19:20 dthom91 joined #salt
19:23 rustyrazorblade joined #salt
19:31 chadhs joined #salt
19:38 jbunting joined #salt
19:43 qx_ joined #salt
19:45 kmrhb joined #salt
19:52 krissaxton joined #salt
19:54 akoumjian If I want to programmatically pull in salt configuration data (either from a master, or a masterless minion) such as the file and pillar roots, what's the best way? LocalClient?
19:56 akoumjian Alternatively I'm thinking of using one of the functions in here: https://github.com/saltstack/salt/blob/develop/salt/config.py
19:56 azbarcea joined #salt
19:56 az87c joined #salt
19:59 jbunting joined #salt
20:02 krissaxton joined #salt
20:04 krissaxton1 joined #salt
20:05 hazzadous joined #salt
20:07 ninkotech joined #salt
20:14 jrgifford joined #salt
20:16 jimallman_ joined #salt
20:16 oz_akan_ joined #salt
20:21 chuffpdx joined #salt
20:22 chadhs trying to figure out what is the best way to push a config file to all hosts, but a subset of hosts get a different version
20:23 chadhs when i send highstate to '*' i get a complaint about having that file included twice
20:27 teskew1 joined #salt
20:28 herlo joined #salt
20:29 copec joined #salt
20:29 whit joined #salt
20:29 eightyeight joined #salt
20:30 copec joined #salt
20:30 ajw0100 joined #salt
20:33 rsimpkins Is there a way to replace the top state file with a database?
20:46 gadams I hate to be that guy; have there been any serious conversations about migrating to python 3
20:48 rustyrazorblade joined #salt
20:54 drdran joined #salt
20:55 Gifflen joined #salt
20:56 logix812 joined #salt
21:01 berto- joined #salt
21:05 david_a joined #salt
21:20 drdran joined #salt
21:21 drdran left #salt
21:32 Jahkeup_ joined #salt
21:35 krissaxton joined #salt
21:37 jalbretsen joined #salt
21:37 nrub joined #salt
21:37 drdran joined #salt
21:45 krissaxton joined #salt
21:46 capricorn_one joined #salt
21:49 drdran joined #salt
21:51 drdran left #salt
22:02 hazzadous joined #salt
22:17 jslatts joined #salt
22:20 lazyguru joined #salt
22:20 lemao joined #salt
22:21 jeddi chadhs: how do you identify the subset?
22:22 jeddi chadhs: i'd suggest the fall-through nature of source:  in the file.managed  state.  It means you can specify more than one source, and use grains to filter the first.  I have a small exapmle I can share if you're interested.
22:23 jeddi chadhs: http://rn0.ru/show/oDkcwebucw5OWV47q7vx/       If (for host foo) the file /srv/salt/fs/etc/ssh/sshd_config.foo DOES NOT exist, then that box will get the sshd_config.DEFAULT file.  You can have as many of these as you like - salt will match on the first one, and if that can't be found, it falls through to the second, and so on.
22:29 isomorphic joined #salt
22:32 jalbretsen joined #salt
22:33 UtahDave joined #salt
22:42 noob21 joined #salt
22:44 noob22 joined #salt
22:45 dthom91 joined #salt
22:45 aat joined #salt
22:46 krissaxton joined #salt
22:57 chadhs jeddi, thnx for the example.  basically for my current scenario i want pkg.conf to be the same on every system except on servers that i consider "webservers" i want that file to be different
23:00 EugeneKay chadhs - I do this; you can probably use {{grains['role']}} or such.https://gist.github.com/EugeneKay/5941597
23:01 david_a joined #salt
23:02 capricorn_one joined #salt
23:06 ajw0100 joined #salt
23:06 alazylearner joined #salt
23:07 jeddi chadhs: so specify the webservers prior to the standard file.
23:08 jeddi or if the roles are unique, as EugeneKay suggests, stick with them.
23:08 EugeneKay Or even do some detection within your jinja-templated config file
23:10 jeddi my gut feel is diving into jinja / yaml to work out what will happen - your business logic, so to speak - is less elegant than doing it with fall-throughs and/or specifying via roles or some other grain.
23:10 jeddi of course, i'm suggesting that's a hard and fast rule :)
23:10 EugeneKay Probably.
23:13 jeddi i'm *not* suggesting, sorry, I meant to write *not*.
23:13 capricorn_one joined #salt
23:18 capricorn_one joined #salt
23:28 dthom91 joined #salt
23:32 chadhs jeddi, eugenekay, looks like i need to look at pillars a bit more then as im working through my initial learning
23:32 chadhs just getting to know the structure and flow a bit with testing so far the past week since i've discovered salt
23:32 EugeneKay A lot of what I have in there is fluff, so don't worry about it
23:32 EugeneKay Just stuff to fill in config values for a given host
23:33 chadhs when it's time for Jinja i should be fine since i use Pelican as my blog engine and even made my own theme/template from scratch which is all jinja + css
23:33 chadhs thnx i have it up in my browser to review later this evening; much appreciated EugeneKay
23:34 jdenning joined #salt
23:35 capricorn_one joined #salt
23:45 aat joined #salt
23:46 joehh joined #salt
23:46 krissaxton joined #salt

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