Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-05-25

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

All times shown according to UTC.

Time Nick Message
00:09 st0newa11_ joined #salt
00:22 micko joined #salt
00:29 ml_1 joined #salt
00:30 bhosmer joined #salt
00:37 oz_akan_ joined #salt
00:57 micko joined #salt
01:08 micah_chatt joined #salt
01:10 mateoconfeugo joined #salt
01:15 jaycedars joined #salt
01:16 dsolsona joined #salt
01:20 rgbkrk joined #salt
01:23 jslatts joined #salt
01:25 xzarth joined #salt
01:29 ipalreadytaken joined #salt
01:38 oz_akan_ joined #salt
01:44 alunduil joined #salt
01:51 n8n joined #salt
01:59 ckao joined #salt
02:03 brucelee_ joined #salt
02:11 mgw joined #salt
02:18 bhosmer joined #salt
02:21 sroegner___ joined #salt
02:22 ashw7n joined #salt
02:25 anuvrat joined #salt
02:26 lareth joined #salt
02:30 taion809 joined #salt
02:30 ml_1 joined #salt
02:36 meteorfox joined #salt
02:36 _FL1SK joined #salt
02:38 oz_akan_ joined #salt
02:54 benturner joined #salt
03:17 mgw joined #salt
03:20 tharkun joined #salt
03:25 brucelee_ joined #salt
03:25 bhosmer joined #salt
03:39 oz_akan_ joined #salt
03:44 ashw7n joined #salt
03:48 catpigger joined #salt
03:48 meteorfox joined #salt
03:58 tharkun joined #salt
03:58 lionel joined #salt
04:04 Furao joined #salt
04:07 bhosmer joined #salt
04:10 n8n joined #salt
04:23 zain_ joined #salt
04:31 ml_1 joined #salt
04:40 oz_akan_ joined #salt
04:45 ashw7n joined #salt
04:54 freelock joined #salt
05:06 brucelee_ joined #salt
05:07 ashw7n joined #salt
05:11 meteorfox joined #salt
05:21 CheKolyN joined #salt
05:39 combusean joined #salt
05:41 krow joined #salt
05:41 oz_akan_ joined #salt
05:45 thayne joined #salt
05:52 jalaziz joined #salt
05:55 bhosmer joined #salt
06:08 fragamus joined #salt
06:10 CheKolyN joined #salt
06:33 ramteid joined #salt
06:40 combusean joined #salt
06:42 oz_akan_ joined #salt
06:44 anuvrat joined #salt
06:48 saravanans joined #salt
06:50 brucelee_ joined #salt
06:55 krow joined #salt
07:03 ajw0100 joined #salt
07:05 saravanans joined #salt
07:09 saravana_ joined #salt
07:29 felskrone joined #salt
07:41 combusean joined #salt
07:42 oz_akan_ joined #salt
07:43 bhosmer joined #salt
07:45 the_drow joined #salt
07:45 the_drow Hi is there a way to install my fork using salt bootstrap?
07:46 meteorfox joined #salt
07:46 CeBe joined #salt
07:46 the_drow nevermind.
07:46 the_drow Found it
07:57 saravanans joined #salt
08:04 mihait joined #salt
08:07 roolo joined #salt
08:14 anuvrat joined #salt
08:25 krow joined #salt
08:27 the_drow I think something is wrong with develop
08:27 the_drow basepi: ping
08:30 ghartz_ joined #salt
08:31 the_drow I can't install any package
08:35 malinoff joined #salt
08:37 cruatta joined #salt
08:41 combusean joined #salt
08:43 oz_akan_ joined #salt
08:59 the_drow Here's the error log: http://pastebin.com/vMKNuSiq
08:59 the_drow This is the state.
08:59 the_drow http://pastebin.com/KF1BT3Jz
09:00 the_drow Something is wrong with develop
09:00 the_drow help :(
09:00 TyrfingMjolnir joined #salt
09:11 TyrfingMjolnir joined #salt
09:16 markm joined #salt
09:20 combusean joined #salt
09:31 bhosmer joined #salt
09:36 TyrfingMjolnir joined #salt
09:38 brucelee_ joined #salt
09:44 oz_akan_ joined #salt
09:46 brucelee_ joined #salt
09:48 krow joined #salt
09:52 ggoZ joined #salt
09:55 brucelee_ joined #salt
10:06 TyrfingMjolnir joined #salt
10:11 Chrisje joined #salt
10:13 brucelee_ joined #salt
10:15 saravanans joined #salt
10:15 ant_s joined #salt
10:24 ml_1 joined #salt
10:35 brucelee_ joined #salt
10:37 lareth joined #salt
10:45 oz_akan_ joined #salt
10:57 brucelee_ joined #salt
11:05 krow joined #salt
11:09 ggoZ joined #salt
11:20 bhosmer joined #salt
11:22 n8n joined #salt
11:27 CeBe1 joined #salt
11:38 philipsd6 the_drow: shouldn't the packages be under 'names', not 'pkgs'?
11:39 the_drow philipsd6: pkgs also work
11:39 combusean joined #salt
11:39 the_drow but I mispelled it
11:41 brucelee_ joined #salt
11:45 oz_akan_ joined #salt
11:48 the_drow The rbenv state and module still use runas.
11:48 the_drow How do I convert them to use user?
11:49 elfixit joined #salt
11:49 the_drow I'm porting that module and state to pyenv
11:51 bhosmer joined #salt
12:03 brucelee_ joined #salt
12:13 taion809 joined #salt
12:24 brucelee_ joined #salt
12:30 bluenemo joined #salt
12:31 bluenemo hi guys. i have multiple files one service depends on (its dovecot and it depends on config files in /etc/dovecot/conf.d/*). I want to first template the files and then, if any file needs to be changed by saltstack again, restart dovecot. how could I write this? Can you link me to an example? I cant quite figure it out.
12:32 the_drow bluenemo: I haven't tried such a thing but you need to use the watch requisite
12:33 the_drow There is an example in the docs
12:33 the_drow http://docs.saltstack.com/en/latest/ref/states/requisites.html#watch
12:41 jeddi joined #salt
12:41 bluenemo the_drow, thanks :)
12:46 oz_akan_ joined #salt
12:46 brucelee_ joined #salt
12:49 bluenemo the_drow, i found a pretty awesome answer: https://groups.google.com/forum/#!topic/salt-users/x6RqLoJCmjk
13:05 krow1 joined #salt
13:08 bhosmer_ joined #salt
13:08 fragamus joined #salt
13:08 brucelee_ joined #salt
13:10 felskrone joined #salt
13:25 the_drow How do I install a gem with the --pre argument?
13:30 brucelee_ joined #salt
13:34 malinoff joined #salt
13:40 diegows joined #salt
13:45 Linuturk joined #salt
13:47 oz_akan_ joined #salt
13:50 Comradephate joined #salt
13:52 brucelee_ joined #salt
13:53 bluenemo i want to install multiple packages, and if this works out do other things (require pkg). how can I do this with multiple packages? My idea doesnt work: http://pastebin.com/wjkG9QZF
13:54 the_drow bluenemo: That should work
13:54 manfred bluenemo: that is the correct way
13:54 babilen It looks fine
13:54 bluenemo ah cool. them i'm getting the right feeling over it now :) thank you guys :)
13:55 babilen bluenemo: So, please be more specific about the "doesn't work" part. I am sure it just doesn't just drink G&T all day
13:55 babilen - 1 "just"
13:57 bluenemo my error was somewhere else, sorry. thought this was it that wasnt working..
13:58 babilen np :)
14:13 brucelee_ joined #salt
14:30 mateoconfeugo joined #salt
14:32 ramteid joined #salt
14:35 brucelee_ joined #salt
14:36 x5257 joined #salt
14:37 googolhash joined #salt
14:41 bluenemo can I iterate through a bunch of files in a local 'file_roots' and get the names of each, so to create multiple config files by just having them named right in a directory (for later templating)? if that would work recursive through directories in postfix/templates (as in giving back "conf.d/foobar.conf" that would be awesome). My approach http://pastebin.com/ELnJQ2tL gives me the error pasted there too.
14:42 bluenemo postfix/templates/* would be the dir I take the jinja templates from.
14:45 bluenemo I think my approach is not.. good.
14:45 bluenemo is it?
14:45 thayne joined #salt
14:48 oz_akan_ joined #salt
14:56 bhosmer joined #salt
14:57 brucelee_ joined #salt
15:00 bluenemo is there any way to get to the output of a 'ls $directory' on the master server?
15:00 bluenemo (in a state)
15:00 manfred cp.list_master ?
15:01 manfred https://github.com/saltstack/salt/blob/develop/salt/modules/cp.py#L484
15:02 bluenemo YES! nice :D thank you manfred!
15:04 manfred you can also do cp.list_states
15:05 googolhash_m joined #salt
15:19 bluenemo manfred, no, as the files I'm looking for are not .sls files (but templates for jinja). as it shows the path from the file_roots however, I still need to "cut off" two leading directories from the string to be able to use the string in the target path definition for the minion.
15:19 bluenemo trying to see if I can fidle it out with jinja2 filters.
15:19 brucelee_ joined #salt
15:41 brucelee_ joined #salt
15:45 anuvrat joined #salt
15:46 bluenemo cant I use cp.list_master in a for loop for a state file? http://pastebin.com/xrBmPxqp
15:47 bluenemo gives me Jinja variable 'cp' is undefined
15:47 krow joined #salt
15:49 oz_akan_ joined #salt
15:55 babilen bluenemo: You might have to use "salt['cp.list_master']()"
15:58 zz_cro joined #salt
16:12 Networkn3rd joined #salt
16:12 patrek_ joined #salt
16:14 bluenemo babilen, thank you, good thought. still cant figure out how to implement it though :/ http://pastebin.com/znWKvJAF
16:14 bougie joined #salt
16:14 bougie hello
16:15 bougie How can I debug formulas written in full python ? Why a simply print does not work ?
16:18 babilen bluenemo: Okay, it doesn't work that way. *Iff* cp.list_master would take arguments to filter/glob the matches (it doesn't does it?) you would use salt['cp.list_master'](arg1, arg2, ...)
16:19 babilen bluenemo: I think that cp.list_master simply returns an iterable/list of *all* directories on the master and that you cannot filter that by passing additional arguments.
16:20 brucelee_ joined #salt
16:20 babilen bluenemo: I guess that it makes sense to use full-blown Python in this case as detailed in, say, http://docs.saltstack.com/en/latest/ref/renderers/
16:20 bluenemo hm. thats sad. i thought about hacking around the basename problem even if it worked like:     - name: /etc/dovecot/{{ dovecot_template_file|replace('dovecot/templates/', '') }}
16:20 ilako joined #salt
16:20 bluenemo which i think works
16:22 babilen Can you use cp.list_master with arguments on the command line?
16:22 babilen I haven't played with it, so i am not entirely sure about that.
16:22 bluenemo root@mail /srv/salt/apache/apache # salt-call cp.list_master saltenv=mailserver prefix=dovecot/templates works like a charm
16:22 bluenemo gives me only files below dovecot/templates
16:24 bluenemo cmd.run? >:)
16:24 babilen bluenemo: But it doesn't work if you give those in the right place?
16:24 babilen That is: salt['cp.list_master'](HERE)
16:26 n8n joined #salt
16:27 bluenemo babilen, do you mean like this: http://pastebin.com/Abp91Mdq ?
16:27 n8n joined #salt
16:28 babilen bluenemo: Well, obviously without the ".items()" but yeah. (you cannot call .items() on a list only on dictionaries.
16:28 babilen bluenemo: Also: Could you do me a favour and use a less shitty pastebing such as, say, http://refheap.com, http://bpaste.net or http://paste.debian.net ?
16:29 n8n joined #salt
16:29 bluenemo yes, sry
16:30 babilen No problem, I only just mentioned it. I just strongly dislike pastebin.com with all its unecessary clutter (facebook? really?) and occasional need to enter captchas.
16:31 bluenemo np. yeah, this works except for not iteratable dicts: {% for dovecot_template_file in salt['cp.list_master']('saltenv=mailserver', 'prefix=dovecot/templates', {}).items() %}
16:32 babilen cp.list_master returns a list, so you don't need .items() there .. you can iterate over it directly.
16:34 bluenemo of course, thx
16:35 Comradephate_ joined #salt
16:35 vbabiy_ joined #salt
16:36 bhosmer joined #salt
16:37 acabrera joined #salt
16:38 crop joined #salt
16:39 patrek joined #salt
16:39 jergerber joined #salt
16:41 schimmy joined #salt
16:42 Chrisje joined #salt
16:43 mfournier joined #salt
16:44 bhosmer_ joined #salt
16:45 bigmstone joined #salt
16:45 schimmy joined #salt
16:46 catpigger joined #salt
16:46 brucelee_ joined #salt
16:49 kedo39 joined #salt
16:49 xmj joined #salt
16:49 oz_akan_ joined #salt
16:49 xmj joined #salt
16:50 jergerber joined #salt
16:50 babilen bluenemo: So, is that working as expected?
16:50 bluenemo babilen, no, when I give it options in the correct way it returns an empty [].
16:51 babilen bluenemo: What are you using there exactly?
16:52 bluenemo http://paste.debian.net/101710/
16:52 bluenemo I have to add i'm just starting with salt; so yes, this is very kiddo ;)
16:52 bluenemo and a little trial and error..
16:52 agronholm is it possible to attach to a minion on Windows?
16:53 agronholm to listen to events
16:53 babilen bluenemo: You want "{{ salt['cp.list_master']() }}" on line three I think.
16:53 babilen agronholm: Have you tried it with eventlisten.py already?
16:53 babilen (no idea if that is *nix specific)
16:53 agronholm I don't have windows minions yet
16:53 agronholm but it looks like it wants a directory for unix sockets
16:54 babilen agronholm: Sorry, can't answer that question as I don't have to play with Windows boxes at all.
16:54 agronholm and I wish I didn't have to :(
16:54 bluenemo babilen, yes, right. Gives back:      Comment: Command "foobar="[]"; echo $foobar" run
16:55 bluenemo wait..
16:55 bluenemo had to add the saltenv.. but also with this; just [] :/
16:56 babilen bluenemo: Sorry, that concludes the part that I can guide you from the top of my head :(
16:57 agronholm babilen: the underlying reason for why it's *nix only is because zeromq doesn't have ipc:// implemented for named pipes yet
16:58 agronholm or any other way Windows could use
16:59 babilen agronholm: Thanks for elaborating. Still no named pipes on Windows eh?!
16:59 agronholm zeromq is not great on its Windows support
17:00 agronholm I had to add tcp keepalive controls myself to it because setting keepalive options was a no-op on Windows before (and it failed silenty and this was undocumented)
17:00 babilen Yet something else that will be wonderful once we switch to RAET?
17:01 bluenemo babilen, strange, other people seem to use it too.. maybe because my file_roots is non default..? http://comments.gmane.org/gmane.comp.sysutils.salt.user/11247
17:01 bougie left #salt
17:01 bluenemo (would be not /srv/salt but /srv/salt/mailserver, actually have multiple.)
17:01 babilen bluenemo: It looks perfectly fine to me
17:03 bluenemo do you get the same nothing when you run it? just the test here for example: http://paste.debian.net/101712/
17:03 bluenemo i'm really wondering as this dude in the mailing list writes it works..
17:05 bluenemo sry, without the modules'
17:07 CeBe joined #salt
17:10 CeBe2 joined #salt
17:11 taterbase joined #salt
17:15 bluenemo does it work for anyone else? can it be because i'm using salt local? (as in file_store: local)?
17:23 cruatta joined #salt
17:32 schimmy1 joined #salt
17:33 bluenemo babilen, i though i could hack around it (as i'm using this local salt) by just running it in bash, sadly i'm again failing to get the syntax right. hope you can help one more time: http://paste.debian.net/101719/
17:36 babilen bluenemo: Use } not )
17:36 schimmy joined #salt
17:39 bluenemo argh.. yes.. ok. enough for today I think ;) thanks man.
17:42 cruatta joined #salt
17:44 bluenemo hm if I do it like that items has no attribute. and if it would, the first would be the "output:" thingy. this is to hacky.. guess I have to wait for the mailing list to answer the question :/
17:45 bluenemo http://pastebin.com/ugq76kct
17:50 oz_akan_ joined #salt
17:55 ndrei joined #salt
18:11 babilen joined #salt
18:13 ajw0100 joined #salt
18:18 rigor789_ joined #salt
18:18 rigor789_ Hey guys!
18:19 vbabiy joined #salt
18:19 rigor789_ In a state file, can I have a managed file in one directory, and another file that is a symling to the first one?
18:24 nkuttler rigor789_: sure. file.symlink
18:24 rigor789_ Tried it, but i also have file: -managed
18:24 rigor789_ is there a pattern I should use to use both?
18:25 nkuttler tried what? show your state file, command you ran + error
18:25 rigor789_ http://pastie.org/9212489
18:25 rigor789_ state
18:25 rigor789_ no errors
18:25 rigor789_ but no symlink either
18:25 nkuttler that looks wrong
18:26 timoguin rigor789_: no, you can't have two "file" states under one state ID
18:26 rigor789_ tried using file.symlink aswell
18:26 timoguin you'd need to do another block and require that first one
18:26 rigor789_ Let me check the docs
18:26 nkuttler right, block was the word i was looking for :)
18:26 rigor789_ I'm pretty new to this... :/
18:26 rigor789_ Thanks
18:26 babilen rigor789_: YOu can't have "- managed" and "- symlink" at the same time. You have to make that explicit (i.e. two "file stanzas")
18:27 babilen rigor789_: So create one "foo-bar-website" and another "foo-bar-symlink" with file.managed and file.symlink respectively.
18:27 rigor789_ Is this what you mean? http://pastie.org/9212493
18:28 babilen yeah
18:28 rigor789_ oh I see what you mean
18:29 babilen rigor789_: And I would adhere to one style. Use "file: \n - managed" and "file: \n - symlink" or "file.managed:" and "file.symlink" (IMHO, doesn't make a difference)
18:29 rigor789_ Alright, I will do that
18:29 nkuttler rigor789_: btw, target should be the target of the symlink, not it's name
18:30 rigor789_ Oh yeah
18:30 rigor789_ fixed it thank you
18:33 mfournier joined #salt
18:33 bhosmer joined #salt
18:33 ashw7n joined #salt
18:35 TyrfingMjolnir joined #salt
18:36 babilen heh, the old symlink problem :)
18:40 picker joined #salt
18:45 alunduil joined #salt
18:50 vexati0n awesome, i found out why many of my minions keep failing to reply in time. turns out it helps to have valid DNS configured...
18:51 oz_akan_ joined #salt
18:54 ndrei joined #salt
18:54 TyrfingMjolnir joined #salt
18:55 ajw0100 joined #salt
19:01 Luke__ joined #salt
19:07 schimmy joined #salt
19:08 rigor789_ Umm, another question! :P
19:08 rigor789_ Can I remove a symlink?
19:08 rigor789_ in a state I mean
19:09 alunduil joined #salt
19:09 schimmy1 joined #salt
19:11 babilen rigor789_: You remove it just like any other file
19:12 rigor789_ ik
19:12 rigor789_ nvm
19:12 smaboshe left #salt
19:15 molaAMINE joined #salt
19:30 nosleep77 joined #salt
19:35 TyrfingMjolnir joined #salt
19:49 krow joined #salt
19:51 oz_akan_ joined #salt
19:59 linjan joined #salt
20:14 combusean joined #salt
20:18 cliffstah joined #salt
20:19 mateoconfeugo joined #salt
20:20 cliffstah Hey folks, I have a few simple questions if I may. I've used Ansible, Chef and Puppet and now I'm evaluating Salt. I really like the look of it so far, but whereas with the other three I have found a way to satisfy my (slightly unusual) requirements, I'm not sure how to do this with Salt.
20:21 n8n joined #salt
20:21 cliffstah Basically, the "unusual requirement" is that I have a small group of VMs, divided between four separate projects - and I'd like to be able to configure them independently and allow access to different team members, but I'd like to run a single master.  Is that possible?  Am I going too much against the grain to do that?
20:21 bhosmer joined #salt
20:22 agronholm cliffstah: the VMs would have minions installed, right?
20:22 agronholm and you run the master somewhere else
20:22 agronholm and configure the ACLs to give access to each VM to whomever you want
20:22 cliffstah yes, each VM would have a minion, and I have a master here on my own network (static, solid connection)
20:23 cliffstah so I could feasibly (ignoring redundancy, etc) configure the projects independently but using 1 master?
20:23 agronholm normally you only run a single master anyway
20:24 agronholm more advanced applications have a topology of masters (a chain of command if you will)
20:24 agronholm but your requirements don't strike me as unusual in the least
20:24 cliffstah I see, I figured I would usually need a master per "project".  I was looking at environments, and the documentation seems to indicate environments in 1 project, rather than separate projects.
20:24 cliffstah well that's good to know - I say unusual because what I want doesn't seem to fit the documentation
20:25 agronholm environments and projects are orthogonal concerns
20:25 saravanans joined #salt
20:25 cliffstah I see, even though each "project" has several machines of its own?
20:26 agronholm not a problem
20:26 cliffstah I've only been reading the docs for a day or so, so some of the concepts are a little unclear still
20:26 agronholm you can mix and match projects and minions any way you want
20:27 cliffstah well, this is promising
20:27 cliffstah even though I do nearly all the configuration right now, that won't always be the case, so I need to allow this kind of flexibility from the start
20:28 cliffstah am I looking in the right place by looking at file_roots to start?
20:28 cliffstah file_roots -> projects -> environments -> configuration
20:28 ajw0100 joined #salt
20:30 ndrei joined #salt
20:30 viq cliffstah: or you could read up on syndic - each project has it's own master, but then all are connected to a single master-of-masters which can issue commands to all of them
20:31 agronholm that's what I was referring to earlier
20:31 agronholm but it doesn't look like cliffstah needs more than one master
20:31 viq mhmm
20:31 cliffstah yeah I think that would be a bit overkill at this point
20:32 combusean joined #salt
20:50 CeBe joined #salt
20:52 oz_akan_ joined #salt
20:53 bhosmer joined #salt
21:02 thayne joined #salt
21:05 cliffstah thanks for the help, I have to run for now - back later :-)
21:05 ggoZ joined #salt
21:14 cruatta joined #salt
21:22 ashw7n joined #salt
21:22 acabrera joined #salt
21:26 mateoconfeugo joined #salt
21:31 mateocon_ joined #salt
21:34 ashw7n joined #salt
21:42 cruatta joined #salt
21:47 rigor789 joined #salt
21:47 rigor789 Hey guys!
21:48 rigor789 Is anyone here who has a good understanding of automatic deployment of php apps? I'm interested to learn!
21:49 ashw7n joined #salt
21:53 Corey rigor789: PHP apps are generally "drop into a directory a webserver is serving." They're prime candidates for including in an RPM or deb.
21:53 oz_akan_ joined #salt
21:54 rigor789 Corey: pretty much yes, but what about auto deploying instances? including a db and a webserver
21:54 rigor789 ?
21:56 rigor789 I'm kinda new to the whole infrastructuring stuff, so i'm interested to know, should a new vm instance be made for each app instance, or can I stack a few of them on the same webserver? with dns resolving?
21:57 rigor789 It's a little confusing at first, and I'm still in the "confused" phase :P
22:09 bhosmer joined #salt
22:10 combusean joined #salt
22:12 baffle joined #salt
22:13 DaveQB joined #salt
22:30 acabrera joined #salt
22:34 felskrone joined #salt
22:40 oz_akan_ joined #salt
22:45 anthony joined #salt
22:47 oz_akan_ joined #salt
22:48 ashw7n joined #salt
22:50 Comradephate joined #salt
22:52 miqui joined #salt
22:58 diegows joined #salt
23:01 Nexus_x1 joined #salt
23:02 pentabular joined #salt
23:06 roolo joined #salt
23:20 garthk joined #salt
23:43 n8n joined #salt
23:49 combusean joined #salt
23:57 bhosmer joined #salt

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