Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-03-23

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

All times shown according to UTC.

Time Nick Message
00:02 dman777_alter joined #salt
00:03 dman777_alter does salt have a test command to see if pillar and the sls files are correct?
00:06 quickdry21 joined #salt
00:11 tvle joined #salt
00:11 mortis will next saltconf also be in salt city?
00:11 mortis :D
00:11 mortis i mean
00:11 mortis naturally its there ...
00:15 dman777_alter is there a way to specify a primary group for a user in salt? didn't see it in salt.states.user.present
00:15 googolhash joined #salt
00:16 lionel joined #salt
00:23 seblu joined #salt
00:24 quickdry21 joined #salt
00:30 seblu42 joined #salt
00:36 quickdry21 joined #salt
00:43 googolhash joined #salt
00:46 seblu joined #salt
00:49 colttt joined #salt
00:49 colttt hello
00:50 dman777 hello
00:50 dopp dman777: you just specify the gid
00:52 colttt i am new in saltstack.. i have this init.sls http://pastebin.com/nugCBAz3
00:52 colttt when i run salt '*' state.sls zabbixA
00:53 colttt i get the following error: http://pastebin.com/u9tTpQN5
00:53 colttt but i dont know why
00:54 colttt any ideas?
01:03 dman777 How can I add a piller list of group names in /srv/salt/users/init.sls? http://bpaste.net/show/wEQt7rm3wCWVAXUcVNuj/ tried it in jinja but  salt '*' pillar.item isn't showing the groups
01:13 waffle_cat joined #salt
01:15 bhosmer joined #salt
01:15 diegows joined #salt
01:16 oz_akan_ joined #salt
01:17 quickdry21 joined #salt
01:18 OwenW joined #salt
01:20 diegows dman777, yes, there is
01:20 diegows gid or group_name
01:26 forrest joined #salt
01:28 ckao joined #salt
01:29 colttt how can i add user/groups with saltstack..
01:30 dman777 is this correct? /etc/salt/base/top.sls or is it /etc/salt/top.sls?
01:30 colttt dma777: the first one..
01:31 colttt but it depends what you salt.conf said ;)
01:32 dman777 colttt: hmm...thanks. file_roots = /srv/salt/
01:33 dman777 I keep getting Comment: No Top file or external nodes data matches found for web1
01:34 dman777 but /etc/salt/base/top.sls has base : '*'  - users -groups
01:34 dman777 I am using pillar if that matters
01:35 colttt_ joined #salt
01:38 forrest dman777, the top file goes into /srv/salt/top.sls unless you've modified it in the conf.
01:38 dman777 forrest: thanks
01:38 Katafalkas joined #salt
01:39 dman777 how can I list groups from pillar in users.sls? http://bpaste.net/show/eYRmjWBi6lWUIglrjaUH/
01:40 dman777 I tried jinja but no success yet
01:40 forrest dman777, check out: https://gist.github.com/UtahDave/3785738
01:41 colttt_ forrest: i have a list of users in /srv/salt/users/zabbix.sls
01:42 colttt_ but when i run  salt '*' state.sls users
01:42 colttt_ he said:  No matching sls found for 'users' in env 'base'
01:42 forrest colttt_, right, because if you were doing that it would try to review /srv/salt/users/init.sls. do salt '*' state.sls users.zabbix.
01:43 colttt_ ahh ok, he also looks to an init.sls..
01:44 dman777 forrest: wow, thanks! for groups...can there be a requirement function at the top of the dependency? such as, I want every user to be in www-data...so first requirement is nginx be installed, then groups, then users?
01:45 dman777 that way when nginx is installed the correct guid for www-data group is linked and group, users get it?
01:45 forrest dman777, yea, if you use 'include': http://docs.saltstack.com/ref/states/include.html#include, then you can require whatever you want from nginx in the user state because including it basically runs that stuff first.
01:46 forrest dman777, so you'd probably want a state specific to the nginx users (otherwise ALL users in your user state might require nginx, which might not be ideal)
01:46 forrest the more modular you can keep things the better.
01:46 dman777 forrest: ah...I see. Are there any examples?
01:46 colttt_ hmm now he said:  Name zabbix in sls users.zabbix is not a dictionary
01:47 forrest colttt_, can you pastebin your zabbix state?
01:47 colttt_ yes: http://pastebin.com/5AqMsyEi
01:48 forrest dman777, not that I can think of off the top of my head for users like that. https://github.com/terminalmage/djangocon2013-sls/blob/master/foo/app.sls shows examples where include is being used however.
01:48 forrest colttt_, looks like your ID has a typo?
01:49 colttt_ forrest: sorry, but what do you mean with typo?
01:49 forrest line 1 is 'abbix'
01:49 dman777 forrest: thanks
01:49 colttt_ sorry: copy&paste ;) in my file it called zabbix in the first line?
01:50 forrest colttt_, you're also using a dash for group.present, and user.present, you don't do that for the initial call
01:50 colttt_ ;)
01:50 forrest dman777, yea np
01:51 forrest colttt_, https://gist.github.com/gravyboat/9717383
01:52 colttt_ forrest: thanks for you help, but it didnt work :(
01:52 forrest what error do you get now?
01:53 colttt_ No matching sls found for 'user.zabbix' in env 'base'
01:53 colttt_ ahh now, i forgott an s ;)
01:53 forrest isn't your directory name users?
01:53 forrest ok
02:10 oz_akan_ joined #salt
02:11 colttt_ does restart saltstack the service automaticly if any changes was made on the config-file?
02:11 forrest no
02:12 suckaplease joined #salt
02:14 MK_FG joined #salt
02:14 MK_FG joined #salt
02:16 colttt_ but why? is it possible to do that? or how can i restart the service?
02:17 colttt_ ahh i must use "watch", right?
02:18 quickdry21 joined #salt
02:20 OwenW_ joined #salt
02:22 colttt_ ok, that worked.. in an init.sls must i use a special order or does saltstack this?
02:23 OwenW joined #salt
02:23 colttt_ example: first i has a config file the owner is a user he does not exist on the system.. later in the .sls file i create the user..
02:24 colttt_ is that ok or must i first create the user
02:24 colttt_ (in the .sls- file
02:27 kryptt1 joined #salt
02:28 kryptt1 is this valid:
02:28 kryptt1 service.running:
02:28 kryptt1 - require:
02:28 kryptt1 - pkg: X
02:28 kryptt1 - pkg: Y
02:28 sroegner joined #salt
02:28 kryptt1 or should I write multiple pkg dependencies another way?
02:29 OwenW You can do multiple requires/watches afaik
02:30 kryptt1 :p
02:30 snuffeluffegus joined #salt
02:30 quickdry21 joined #salt
02:31 snuffeluffegus joined #salt
02:42 Shish joined #salt
02:48 faldridge joined #salt
02:54 quickdry21 joined #salt
02:56 danielbachhuber joined #salt
02:58 faldridge joined #salt
03:28 z3uS| joined #salt
03:32 StDiluted joined #salt
03:34 \ask joined #salt
03:34 frasergraham joined #salt
03:36 jianlee joined #salt
03:38 dman777 https://gist.github.com/UtahDave/3785738 in this example, does the last groups.sls go into  /srv/salt/groups/init.sls?
03:39 z3uS joined #salt
03:39 Ryan_Lane joined #salt
03:46 Hipikat left #salt
04:00 jeddi joined #salt
04:12 oz_akan_ joined #salt
04:21 dman777 http://bpaste.net/show/DBto7OgIyQ5U9RM966om/ why would I get Unknown yaml render error for group.present:?
04:23 frasergraham joined #salt
04:29 dman777 nevermind
04:56 dman777 http://bpaste.net/show/zdNoSaplpKAjI3UsTTF7/ I a little new to the salt tools. In jinja templateing, how can I expand /srv/pillar/groups/init.sls as a list for - groups: users, www-data...or however Salt requires - groups: list to be?
04:57 Psi-Jack joined #salt
04:58 Psi-Jack Well, this is strange. In a pillar state, I have: {% if 'timeserver' in salt['grains.get']('roles', []) %}, yet, on a server with timeserver set, that jinja doesn't match true as expected. This is in 2014.1.1
04:59 Psi-Jack However, if 'timeserver' in grains['roles'], this works.
05:10 Psi-Jack This worked in 0.17.x, I'm sure, but now, not in 2014.1.1
05:10 pentabular joined #salt
05:10 ajw0100 joined #salt
05:13 oz_akan_ joined #salt
05:28 Psi-Jack Reported as bug: https://github.com/saltstack/salt/issues/11453 similar to 10954, which others confirm similar aspects, but the actual issue was about something else.
05:31 ajw0100 joined #salt
05:35 xDam0x joined #salt
05:50 Ryan_Lane joined #salt
06:00 oz_akan_ joined #salt
06:01 ajw0100 joined #salt
06:06 googolhash_n joined #salt
06:08 ipalreadytaken joined #salt
06:32 n8n joined #salt
06:49 ivan reading salt.modules.file, am I correct in thinking that file contents are written before the permissions are set?
07:00 yomilk joined #salt
07:01 oz_akan_ joined #salt
07:04 Networkn3rd joined #salt
07:05 flebel_ joined #salt
07:18 mhlavac joined #salt
07:20 fllr joined #salt
07:22 kryptt1 left #salt
07:30 lionel joined #salt
07:30 ipalreadytaken joined #salt
07:31 thayne joined #salt
07:57 dman777 joined #salt
08:02 flebel joined #salt
08:02 oz_akan_ joined #salt
08:03 oz_akan__ joined #salt
08:17 pentabular1 joined #salt
08:30 aboe joined #salt
08:44 harobed_ joined #salt
08:44 fllr joined #salt
08:44 johtso joined #salt
08:45 che-arne joined #salt
08:48 yomilk joined #salt
08:52 mhlavac joined #salt
09:00 roolo joined #salt
09:04 oz_akan_ joined #salt
09:04 fllr joined #salt
09:06 _fllr_ joined #salt
09:09 anuvrat joined #salt
09:21 ldlework joined #salt
09:30 ldlework Hi, I'm trying to use the docker support in salt but its telling me that it is unavailable.
09:35 rojem joined #salt
09:35 yomilk joined #salt
09:41 Katafalkas joined #salt
09:44 fllr joined #salt
09:45 ldlework Any help is appreciated
10:07 oz_akan_ joined #salt
10:08 TamCore joined #salt
10:08 jbub joined #salt
10:08 kamal_ joined #salt
10:09 rojem joined #salt
10:09 jasonrm joined #salt
10:09 rawtaz joined #salt
10:09 goncalo joined #salt
10:10 crazysim joined #salt
10:14 fllr joined #salt
10:21 pentabular joined #salt
10:23 pentabular1 joined #salt
10:35 ggoZ joined #salt
10:36 balboah joined #salt
10:39 balboah joined #salt
10:52 alekibango joined #salt
10:52 babilen_ joined #salt
10:53 magenbrot_ joined #salt
10:53 dopp_ joined #salt
10:53 jeff___ joined #salt
10:53 bigmston1 joined #salt
10:53 defunctzombie_ joined #salt
10:53 crazysim_ joined #salt
10:53 icarus_ joined #salt
10:53 Nazzy joined #salt
10:53 shalicke_ joined #salt
10:53 cyrusdav- joined #salt
10:53 crop joined #salt
10:53 emilisto_ joined #salt
10:53 vlcn_ joined #salt
10:53 keekz_ joined #salt
10:53 Doqnach joined #salt
10:53 Jahkeup joined #salt
10:53 copelco_______ joined #salt
10:54 hvn_ joined #salt
10:54 bhosmer joined #salt
10:54 philipsd7 joined #salt
10:55 drags joined #salt
10:55 zach joined #salt
10:56 JesseCW joined #salt
10:56 pentabular joined #salt
10:58 jpcw joined #salt
11:01 Katafalkas joined #salt
11:06 oz_akan_ joined #salt
11:07 Katafalkas joined #salt
11:20 fllr joined #salt
11:27 Jahkeup joined #salt
11:32 ilbot3 joined #salt
11:32 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/
11:33 chesty joined #salt
11:33 Kyle joined #salt
11:33 xzarth joined #salt
11:35 ay joined #salt
11:35 crop joined #salt
11:36 j4son joined #salt
11:36 zain joined #salt
11:36 openxmark joined #salt
11:37 eofs joined #salt
11:37 erjohnso joined #salt
11:37 ze- joined #salt
11:38 jgelens joined #salt
11:39 svs joined #salt
11:39 zz_Cidan joined #salt
11:39 zz_cro joined #salt
11:40 mortis joined #salt
11:40 seblu joined #salt
11:42 rojem joined #salt
11:42 hardwire joined #salt
11:43 cb joined #salt
11:44 yota joined #salt
11:45 Nazzy_ joined #salt
11:45 Nazzy_ joined #salt
11:45 berto- joined #salt
11:45 mjulian joined #salt
11:45 scurry joined #salt
11:45 lyddonb joined #salt
11:45 anuvrat joined #salt
11:45 EWDurbin joined #salt
11:45 nliadm joined #salt
11:45 etw joined #salt
11:45 renoirb joined #salt
11:45 dimeshake joined #salt
11:45 gcbirzan joined #salt
11:45 Jahkeup joined #salt
11:46 crop joined #salt
11:56 rot joined #salt
11:59 lude1 joined #salt
11:59 zz_cro joined #salt
12:00 rot hi, is there something like test-kitchen for salt?
12:03 d3vz3r0 joined #salt
12:03 johtso joined #salt
12:06 crop joined #salt
12:06 oz_akan_ joined #salt
12:07 GoKage joined #salt
12:09 Katafalkas joined #salt
12:09 tl-ml joined #salt
12:10 __number5__ rot: yes https://github.com/simonmcc/kitchen-salt
12:11 mhlavac joined #salt
12:14 bhosmer joined #salt
12:14 fllr joined #salt
12:21 crop joined #salt
12:23 zz_cro joined #salt
12:27 DaveQB joined #salt
12:27 jeremyBass joined #salt
12:31 napper2 joined #salt
12:32 crop joined #salt
12:35 zz_cro joined #salt
12:37 jeff___ joined #salt
12:39 crop joined #salt
12:43 zz_cro joined #salt
12:46 torrancew joined #salt
12:48 oz_akan__ joined #salt
12:49 vejdmn joined #salt
12:52 twiedenbein joined #salt
12:55 simonmcc_ rot: kitchen-salt is a plugin for test-kitchen, I'd be delighted to help out if you get stuck anywhere
12:55 simonmcc_ Thank __number5__
12:56 gnugnu9 joined #salt
12:56 thayne joined #salt
13:00 GoKage joined #salt
13:02 oz_akan_ joined #salt
13:04 oz_akan__ joined #salt
13:07 ajprog_laptop joined #salt
13:08 Katafalk_ joined #salt
13:09 napper2 joined #salt
13:09 crop joined #salt
13:10 CeBe joined #salt
13:14 fllr joined #salt
13:15 lyddonb_ joined #salt
13:16 zz_cro joined #salt
13:19 mhlavac joined #salt
13:19 renoirb_ joined #salt
13:20 elfixit1 joined #salt
13:21 johtso joined #salt
13:22 nliadm joined #salt
13:22 Katafalkas joined #salt
13:23 anuvrat joined #salt
13:24 Kyle____ joined #salt
13:24 Jahkeup joined #salt
13:26 tzero joined #salt
13:29 crop joined #salt
13:32 croq joined #salt
13:36 johtso joined #salt
13:39 faldridge joined #salt
13:39 zz_cro joined #salt
13:40 GoKage joined #salt
13:47 jeddi joined #salt
13:52 zz_cro joined #salt
13:52 jslatts joined #salt
13:57 xmj terminalmage: I envy your git strea.
13:57 xmj streak.
14:03 StDiluted joined #salt
14:04 Hipikat joined #salt
14:13 crop joined #salt
14:14 fllr joined #salt
14:20 zz_cro joined #salt
14:22 zz_cro joined #salt
14:22 Katafalk_ joined #salt
14:23 EWDurbin_ joined #salt
14:24 scurry joined #salt
14:26 crop joined #salt
14:27 gcbirzan_ joined #salt
14:28 nliadm joined #salt
14:30 Jahkeup joined #salt
14:31 diegows joined #salt
14:34 mpr__ joined #salt
14:39 mpr__ hi, is https://github.com/saltstack/salt-thin the best bet to have an standalone and local-only salt install?
14:39 fendetestas left #salt
14:39 younqcass joined #salt
14:40 zz_cro joined #salt
14:41 mpr_ joined #salt
14:41 jamesog joined #salt
14:42 anuvrat joined #salt
14:48 mjulian joined #salt
14:50 srage joined #salt
14:52 crop joined #salt
14:52 bhosmer joined #salt
14:59 zz_cro joined #salt
15:03 yota joined #salt
15:10 crop joined #salt
15:13 Furao joined #salt
15:13 zz_cro joined #salt
15:14 fllr joined #salt
15:16 zz_cro joined #salt
15:17 dimeshake joined #salt
15:18 crop joined #salt
15:21 oz_akan_ joined #salt
15:22 zz_cro joined #salt
15:28 crop joined #salt
15:32 fllr joined #salt
15:58 kiorky xmj: look at techhat streak :p
15:59 kiorky xmj: xmj
15:59 kiorky https://github.com/techhat/
15:59 xmj gotcha
16:00 xmj i'm only at 16 days now
16:00 Eugene Just sayin' https://github.com/gelstudios/gitfiti
16:01 xmj nice, is that rebase magic?
16:02 Eugene Nope, just nonce commits.
16:02 Katafalkas joined #salt
16:04 suckaplease joined #salt
16:16 napper2 joined #salt
16:18 dman777 http://bpaste.net/show/zdNoSaplpKAjI3UsTTF7/ I a little new to the salt tools. In jinja templateing, how can I expand /srv/pillar/groups/init.sls as a list for - groups: users, www-data...or however Salt requires - groups: list to be?
16:19 sroegner joined #salt
16:22 oz_akan_ joined #salt
16:24 quickdry21 joined #salt
16:41 rojem joined #salt
16:50 arnoldB someone looking for a SaltStack formula for ISC bind dns server? => https://github.com/bechtoldt/binddns-formula (feedback welcome)
16:53 xmj not bad but a little too complex :)
16:56 arnoldB yeah it requres a bit of salt knowledge but I prefer flexibility (compared to other formulas on github)
16:59 napper2 joined #salt
17:00 srage joined #salt
17:02 Katafalk_ joined #salt
17:03 suckaplease joined #salt
17:08 fllr joined #salt
17:14 gnugnu9 joined #salt
17:23 oz_akan_ joined #salt
17:35 Psi-Jack arnoldB: heh, I rarely even use bind anymore, and ended up migrating most of my DNS and even DHCP, to dnsmasq.
17:37 dman777 http://bpaste.net/show/zdNoSaplpKAjI3UsTTF7/ I am little new to the salt tools. In jinja templateing, how can I expand /srv/pillar/groups/init.sls as a list for - groups: users, www-data...or however Salt requires - groups: list to be?
17:37 schimmy joined #salt
17:40 schimmy1 joined #salt
17:44 dman777 do ya'll usually hardcode users groups in per a user in pillar? because I can't do a recursive list of groups per a user in http://bpaste.net/show/zdNoSaplpKAjI3UsTTF7/
17:45 HarryMudd joined #salt
17:46 HarryMudd left #salt
17:49 arnoldB dman777: http://bpaste.net/show/8NCE4tFXOrWwgSTkj6qu/
17:50 arnoldB dman777: If you want to learn about writing simple Salt code, take a look at one of my formulas: https://github.com/bechtoldt?tab=repositories
17:50 cloudpie joined #salt
17:51 johtso joined #salt
17:52 dman777 arnoldB: ah! thanks!
17:52 arnoldB dman777: something like the following should also work when you define groups as simple list/ array (replace \n by newline):  {% for g in pillar.get('groups', {}).items() %}\n  - {{ g }}{% endfor %}
18:01 suckaplease joined #salt
18:04 suckaplease joined #salt
18:07 fllr joined #salt
18:12 napper2 joined #salt
18:22 rojem joined #salt
18:24 oz_akan_ joined #salt
18:27 n8n joined #salt
18:27 ajw0100 joined #salt
18:30 thayne joined #salt
18:52 Katafalkas joined #salt
18:53 hairyraven joined #salt
18:53 suckaplease joined #salt
18:56 suckaplease joined #salt
18:57 bastion2202 joined #salt
19:02 oz_akan_ joined #salt
19:05 dman777_alter joined #salt
19:06 younqcass joined #salt
19:08 dman777_alter I am using cloud servers...is it possible to spawn a cloud load balancer, some cloud servers, and have salt get the ip addresses of the cloud servers to give to the load balancer for configuration?
19:09 vbabiy joined #salt
19:18 ajw0100 joined #salt
19:22 nedrocks joined #salt
19:28 suckaplease joined #salt
19:38 yomilk joined #salt
19:38 harobed_ joined #salt
19:39 suckaplease joined #salt
19:44 ninkotech joined #salt
19:46 pdayton joined #salt
19:47 dman777_alter I removed a cloud server manually from Rackspace control panel and built it again with salt-cloud. But there is no communication after the server has been successfully built between the minion and salt master.
19:47 dman777_alter Is there something in salt I need to remove?
19:48 dman777_alter oh..nm
19:48 harobed joined #salt
19:49 dman777_alter naw, still a issue
19:51 Katafalk_ joined #salt
19:52 jslatts joined #salt
19:57 dman777_alter ah..nm...master wasn't running
19:59 Luke_ joined #salt
20:09 scoates borgstrom: ping?
20:10 dvogt joined #salt
20:12 oz_akan_ joined #salt
20:13 faldridge joined #salt
20:19 bhosmer joined #salt
20:20 cnelsonsic joined #salt
20:28 diegows joined #salt
20:28 bhosmer joined #salt
20:36 bastion2202 joined #salt
20:37 forrest joined #salt
20:37 johtso joined #salt
20:47 mpr_ left #salt
20:51 quickdry21 joined #salt
20:52 Katafalkas joined #salt
20:54 scoates do I need to do something special to enable the `#!pyobjects` renderer in 2014.1.0? Salt seems to think it's YAML.
20:55 thayne joined #salt
20:56 cewood joined #salt
20:58 DaveQB joined #salt
21:01 scoates ah. pyobjects isn't in 2014.1.0 /-:
21:01 scoates oh… yes it is in git… weird.
21:02 xmj blame packages.
21:03 scoates well, it's here… https://github.com/saltstack/salt/blob/2014.1/salt/renderers/pyobjects.py
21:04 scoates but only for the past 11 days…
21:04 xmj as i said, blame packages. :)
21:04 xmj 2014.1.0 has been out a while now
21:05 xmj more than 11 days, that is.
21:05 scoates I guess I don't understand how the branches work (-:
21:05 RandalSchwartz they work quite well :)
21:06 xmj git branching is fun
21:06 xmj especially with git flow :)
21:06 RandalSchwartz "a branch is only 40 bytes!" :)
21:07 scoates additionally: http://paste.roguecoders.com/p/cc0150388022939d0e91257d343a2702.txt
21:07 scoates fun! (-:
21:08 Kenzor joined #salt
21:10 scalability-junk joined #salt
21:12 RandalSchwartz I've been playing with git since a month after it was conceived
21:13 oz_akan_ joined #salt
21:13 RandalSchwartz I had invited Linus to lunch since he had moved into my home city, and I asked him mid-way through lunch "so what are you working on these days"
21:13 RandalSchwartz and he told me about git... so I said "does it run on BSD or OSX?" and he said "Why don't you let me know..."
21:13 RandalSchwartz so I became the canary in the coal mine for portability
21:16 Corey I just taught a git class. It was... eye opening.
21:17 suckaplease joined #salt
21:27 xmj RandalSchwartz: thank you.
21:27 xmj I finally found the guy who is responsible for having to deal with this crap that is Git.
21:27 * xmj cocks shotgun
21:27 RandalSchwartz ahh... c'mon.  It's still way better than SVN :)
21:28 xmj git koans.
21:28 snuffeluffegus joined #salt
21:30 mgw joined #salt
21:34 Kraln joined #salt
21:44 dvogt joined #salt
21:52 Katafalk_ joined #salt
21:54 Katafalk_ joined #salt
21:57 rojem joined #salt
22:03 oz_akan_ joined #salt
22:06 Ryan_Lane joined #salt
22:09 StDiluted joined #salt
22:11 mafro joined #salt
22:12 mafro lo salters
22:12 raizyr joined #salt
22:12 mafro I’m trying to use gitfs_remotes
22:13 mafro I have installed GitPython==0.1.7
22:13 mafro Yet I get this from the master:
22:13 mafro [ERROR   ] Git fileserver backend is enabled in configuration but could not be loaded, is GitPython installed?
22:13 mafro Any ideas?
22:15 RandalSchwartz OK... I'm confused again
22:15 RandalSchwartz top.sls maps 'chris1*' to chris1
22:15 RandalSchwartz what should chris1 contain to include nginx
22:16 RandalSchwartz oh.. nevermind
22:16 RandalSchwartz I keep forgetting it needs a hash-y sort of thing first
22:17 yomilk joined #salt
22:17 RandalSchwartz that's not it
22:17 RandalSchwartz Name chris1 in sls chris1 is not a dictionary
22:18 RandalSchwartz chris1.sls contains {chris1: nginx}
22:18 RandalSchwartz how do I say "now go look in nginx/init.sls ?
22:18 mafro RandalSchwartz: are you looking for “include”?
22:18 mafro include:
22:18 mafro - nginx
22:19 RandalSchwartz I'm not sure.  I just want to say "depends on having this installed"
22:19 RandalSchwartz is that require?
22:20 RandalSchwartz oh... maybe it is include
22:20 bhosmer joined #salt
22:20 mafro ah sounds like you want require
22:21 mafro Those curly brackets you posted above for the contents of chris1.sls dont look right at all
22:21 mafro it’s all yaml
22:21 mafro (altho saying that, it could stil be valid yaml :p)
22:21 RandalSchwartz I mapped it to json for pasting here
22:21 RandalSchwartz hard to type yaml here
22:21 mafro I see
22:21 RandalSchwartz json is a subset of yaml
22:22 RandalSchwartz (and legal too {grin})
22:22 mafro ok, in json then
22:22 RandalSchwartz ... State require.nginx found in sls chris1 is unavailable
22:23 RandalSchwartz that's for {chris1: require: [nginx]}
22:23 mafro {chris1: require: [nginx]}
22:23 mafro heh
22:23 RandalSchwartz err.  {chris1: {require: [nginx]}}
22:23 RandalSchwartz maybe I don't write the chris1 inside the chris1.sls?
22:23 mafro chris1 needs to actually do something, as the first line inside chris1 the action for that state
22:24 mafro the require should also specify the state
22:24 mafro - pkg: nginx
22:24 RandalSchwartz not pkg
22:24 RandalSchwartz I just want it to run my thing called nginx
22:25 RandalSchwartz setting only the config file
22:25 RandalSchwartz pkg is coming later :)
22:25 mafro check out the examples in here - http://docs.saltstack.com/ref/states/ordering.html
22:25 mafro you should be able to see how to structure a state file
22:26 RandalSchwartz I tried { include: nginx } and it complained that the top level isn't a dictionary
22:26 mafro is your “nginx” ref an sls?
22:26 mafro ie, nginx/init.sls
22:26 RandalSchwartz ahh... let me try include again
22:26 RandalSchwartz yes
22:27 RandalSchwartz ahh... include seems more like it
22:27 mafro so use include pull in nginx/init.sls like my example
22:27 RandalSchwartz now it just didn't find my source file!
22:27 RandalSchwartz aren't the names relative?
22:27 mafro then ref the relevant part of that file in your require
22:27 mafro it’s all relative from file_roots
22:28 mafro <file_roots>/top.sls
22:28 mafro <file_roots>/nginx/init.sls
22:28 RandalSchwartz ok... that seems a bit crazy... I'll have to say salt://nginx/nginx.conf
22:28 mafro umm
22:28 RandalSchwartz and if I ever move that directory around, I have to fix up all the paths again
22:28 mafro do you have: <file_roots>/nginx/init.sls
22:28 RandalSchwartz would be nice to have a relative reference
22:28 RandalSchwartz yes
22:28 mafro in that case my include statement will work
22:29 mafro or your file_roots var is wrong
22:29 RandalSchwartz yeah, I'm up to the point where it was trying to write the file
22:29 RandalSchwartz and... success!
22:30 yomilk_ joined #salt
22:37 ipmb joined #salt
22:37 RandalSchwartz wow - it even makes parent dirs automatically
22:39 mackstick joined #salt
22:39 scoates unless you tell it not to: https://salt.readthedocs.org/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed -> makedirs
22:39 RandalSchwartz well - the default was nice :)
22:42 RandalSchwartz is there something I can jinja so that I can say "all files in nginx/conf should be copied to the destiation"
22:42 RandalSchwartz I don't think I want recurse, because I don't want it to delete the other files that are also there
22:44 Katafalkas joined #salt
22:45 RandalSchwartz ahh.. maybe clean: False
22:45 RandalSchwartz and that's the default
22:48 RandalSchwartz Hmm.  I wonder if I could do two recurses, one for +x, one for -x, pointing at the same target directory
22:50 mgw joined #salt
22:53 RandalSchwartz wow.  yeah, so now everything in nginx/scripts gets copied in mode 0755, and everything in nginx/files gets copied in mode 0644
22:54 RandalSchwartz and other files in the directory are left alone!
22:54 RandalSchwartz ok - I think I'm starting to get the hang of this
22:55 Eugene I'd go one step further with the config files and define it all as templated stuff, but I'm nuts.
22:55 RandalSchwartz well - it will be templated... just doing one machine at a time
22:56 RandalSchwartz oops... it copied my emacs backup file... gotta add an ignore. :)
22:57 RandalSchwartz can you get a list of files in states as part of a template for the .sls?
22:58 RandalSchwartz I didn't see that in the jinja docs
23:01 Eugene Not sure what oyu mean?
23:01 RandalSchwartz as in you said you'd template that
23:01 RandalSchwartz can you make an .sls that can get a file list of nginx/scripts nearby, then build the correposnding file.manage?
23:01 Eugene Oh, gotcha. No clue.
23:02 RandalSchwartz ahh - so what were you thinking? :)
23:02 Eugene I have a list of sites in my Pillar, and then a generic MySite.conf
23:02 Eugene Values inside mysite get populated based on pillar, iterating across each site
23:02 RandalSchwartz oh - so templating the nginx file... yes
23:02 RandalSchwartz that's ultimately what I'm doing
23:02 RandalSchwartz but I'm setting up the mapping of salt:// to target machine
23:02 Eugene So where's the need for a file listing?
23:02 RandalSchwartz for easy maintenance
23:03 RandalSchwartz add a new conf, it gets added everywhere
23:03 RandalSchwartz no need to edit the .sls
23:03 Eugene So do that in Pillar.
23:03 RandalSchwartz I'd like to drive it from the filesystem
23:03 RandalSchwartz the machine knows better all the files in scripts/ better than me
23:03 RandalSchwartz fewer moving parts
23:03 Eugene Ah.
23:03 oz_akan_ joined #salt
23:04 RandalSchwartz just thinking of making it easier on my successor
23:04 Eugene I'm sure there's a way, just not sure where
23:04 RandalSchwartz or me, six months later when I forget how this works :)
23:04 Eugene try using the builtin python stuff for doing a dir lsisting?
23:04 Eugene But spelled right
23:05 RandalSchwartz Ugh.  that'd require me learning python
23:05 RandalSchwartz really trying to avoid that
23:05 Eugene Heheh
23:06 RandalSchwartz jinja is as close as I want to get
23:06 RandalSchwartz and even that keeps saying "this is similar to the python construct..."
23:06 RandalSchwartz at which point I plug my ears and go "la la la la la la"
23:07 Eugene Can't blame you, but it is a good language.
23:07 Eugene Anyway, they're about to call my boarding zone. Toodles.
23:07 schimmy joined #salt
23:07 RandalSchwartz it's a fair language.  like PHP. :)
23:09 fllr joined #salt
23:11 schimmy1 joined #salt
23:17 RandalSchwartz hmm.  does file.recurse normally preserve the mode anyway?  maybe what I did was overkill
23:25 mafrosis joined #salt
23:25 mafrosis lo me again
23:26 mafrosis just came into work, so unfortunately I'm going to repeat my question from an hour ago...
23:26 mafrosis I’m trying to use gitfs_remotes
23:26 mafrosis I have installed GitPython==0.1.7
23:26 dman777 would salt://users/{{ user }}/keys/key.pub be /users/{{ user }}/keys/key.pub on a linux system? I don't have that yet on my system but hightest states "Comment: All host keys in file salt://users/two/keys/key.pub are already present" which can't be true since I don't have the keys at /users/two/keys/key.pub
23:26 mafrosis [ERROR   ] Git fileserver backend is enabled in configuration but could not be loaded, is GitPython installed?
23:26 mafrosis Any ideas?
23:27 mafrosis dman777: the salt:// protocol naming thing means it starts looking from your file_roots setting
23:27 mafrosis <file_roots>/users/{{ user }}/keys/key.pub
23:29 dman777 mafrosis: ah...thanks!
23:32 googolhash joined #salt
23:44 fhdrin joined #salt
23:44 Katafalk_ joined #salt
23:51 nocturn joined #salt
23:58 StDiluted joined #salt

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