Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-02

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

All times shown according to UTC.

Time Nick Message
00:09 teebes joined #salt
00:10 fllr joined #salt
00:24 jacksontj joined #salt
00:27 jacksontj joined #salt
00:32 Teknix joined #salt
01:03 jsm joined #salt
01:21 xzarth joined #salt
01:27 dlindquist joined #salt
01:41 imaginarysteve joined #salt
01:48 jfzhu_us1 hgfs apparently needs a file named /var/cache/salt/master/hgfs/hash. Can anyone tell me why it needs that file?
01:59 jimallman joined #salt
02:00 ndrei joined #salt
02:11 jfzhu_us joined #salt
02:22 mgw joined #salt
02:25 munderwo joined #salt
02:32 yomilk joined #salt
02:36 fllr joined #salt
02:39 ndrei joined #salt
02:41 fllr joined #salt
03:00 Gordonz joined #salt
03:01 zzzirk joined #salt
03:02 kermit joined #salt
03:04 kermit joined #salt
03:12 Linuturk any saltstack employees on here?
03:23 n8n joined #salt
03:27 quickdry21 joined #salt
03:27 ravibhure joined #salt
03:27 _ikke_ joined #salt
03:30 ravibhure1 joined #salt
04:04 gjaber joined #salt
04:15 brianhicks joined #salt
04:21 anuvrat joined #salt
04:28 elfixit joined #salt
04:39 kedo39 joined #salt
04:40 honestly_ joined #salt
04:42 cyp__ joined #salt
04:42 bejer_ joined #salt
04:43 sulky_ joined #salt
04:45 AdamSewell joined #salt
04:46 kedoodek joined #salt
04:47 kedoodek left #salt
04:47 jeffrubic joined #salt
04:48 kedoodek joined #salt
04:54 lightsey joined #salt
04:55 NotreDev joined #salt
04:57 MTecknology Ahlee: did you figure it out yet?!
04:57 MTecknology Linuturk: yup, a few of them hang out in here
05:11 ilbot3 joined #salt
05:11 Topic for #salt is now Welcome to #salt | Thanks to everyone who made SaltConf 2014 amazing! | 0.17.5 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/
05:13 Mua joined #salt
05:16 fragamus joined #salt
05:33 fllr joined #salt
05:41 yomilk joined #salt
05:47 anitak joined #salt
05:54 toofer joined #salt
05:58 yomilk joined #salt
06:13 Gordonz joined #salt
06:17 anitak joined #salt
06:35 jeremyBass left #salt
06:39 dlindquist joined #salt
06:44 MTecknology How hard is it to write states to compile an application?
06:46 forrest You could just use cmd.run
06:48 MTecknology hrm...
06:48 MTecknology that could work
06:51 n8n joined #salt
07:04 jasonrm joined #salt
07:09 jasonrm joined #salt
07:12 cast joined #salt
07:12 cast joined #salt
07:13 matanya joined #salt
07:14 anitak joined #salt
07:28 ndrei joined #salt
07:30 jimallman joined #salt
07:31 DaveQB joined #salt
07:33 BenCoinanke joined #salt
07:40 ckao joined #salt
07:44 dlindquist joined #salt
07:45 dccc joined #salt
08:11 pdayton joined #salt
08:19 anitak joined #salt
08:33 Hipikat joined #salt
08:44 jsm joined #salt
08:49 dlindquist joined #salt
08:58 yomilk joined #salt
09:00 timc3 joined #salt
09:00 devric joined #salt
09:01 devric hey whats the best way to test salt commands with vagrant?
09:06 yomilk joined #salt
09:15 harobed_ joined #salt
09:19 anitak joined #salt
09:30 MTecknology Can I have cmd.run only run if another state changed?
09:33 ndrei joined #salt
09:34 kedo39 you could have a cmd.wait watch the other state
09:35 kedo39 and you can have an "onlyif" parameter in cmd.wait
09:35 MTecknology http://docs.saltstack.com/ref/modules/all/salt.modules.cmd.html  <-- should cmd.wait not be listed here?
09:36 gasbakid joined #salt
09:36 kedo39 that's under the cmd module, not to be confused with the cmd state http://docs.saltstack.com/ref/states/all/salt.states.cmd.html#salt.states.cmd.wait
09:37 MTecknology uhm... wow
09:37 MTecknology thanks for pointing that out!
09:37 MTecknology wow
09:37 kedo39 yea, it's a little confusing xD
09:37 MTecknology nah, not confusing... 03:37
09:38 kedo39 it might be easier to just do it in python instead of in the sls state format
09:38 kedo39 using the py renderer http://docs.saltstack.com/ref/renderers/index.html
09:39 MTecknology pretty much... I'm trying to run a command, only if a git state changed (meaning it updated)
09:40 MTecknology oh!
09:41 MTecknology cmd.wait has -watch... perfect and exactly what I want!
09:41 MTecknology kedo39: thanks!
09:41 kedo39 np!
09:41 ndrei_ joined #salt
09:42 MTecknology yup, that works 100% exactly how I want it to
09:42 MTecknology I'm deploying cgit from source with salt
09:46 kedo39 that sounds a little gross. why not make packages for it or something?
09:46 MTecknology when I write the states, it'll just update itself
09:46 MTecknology if the repo changed, update the software
09:47 kedo39 ooh, i see
09:47 ndrei joined #salt
09:47 MTecknology I guess I got this far... it compiles and installs. I just need to add nginx and an init script
09:47 MTecknology good task for tomorrow!
09:47 MTecknology thanks again and g'night!
09:48 kedo39 adios!
09:54 dlindquist joined #salt
09:59 a_sk joined #salt
09:59 ndrei joined #salt
10:13 zzzirk joined #salt
10:20 anitak joined #salt
10:30 ndrei joined #salt
10:31 joehh Corey_FOSDEM: thanks for the shout out
10:31 joehh do you know if the slides/talks are going online ata ll?
10:31 anuvrat joined #salt
10:32 devric_ joined #salt
10:32 Tekni joined #salt
10:32 kossy_ joined #salt
10:34 eliasp_ joined #salt
10:34 backjlack_ joined #salt
10:34 kamal__ joined #salt
10:34 kalloc joined #salt
10:36 EWDurbin_ joined #salt
10:36 dwfreed_ joined #salt
10:36 scassidy_ joined #salt
10:36 Damoun_ joined #salt
10:36 gfa_ joined #salt
10:39 vipuls joined #salt
10:39 twinshadow_ joined #salt
10:39 jmccree_ joined #salt
10:40 lahwran_ joined #salt
10:41 brucewang joined #salt
10:47 decwrl joined #salt
10:48 twiedenbein joined #salt
10:48 Ixan joined #salt
10:49 tinuva joined #salt
10:50 linjan joined #salt
10:58 dlindquist joined #salt
10:58 Corey_FOSDEM joehh: Thanks for the packaging Ubuntu work. :-)
11:20 anitak joined #salt
11:21 yomilk joined #salt
11:23 kossy joined #salt
11:28 ravibhure joined #salt
11:28 kossy joined #salt
11:33 ravibhure joined #salt
11:36 ajw0100 joined #salt
11:38 timc3 joined #salt
11:46 Katafalkas joined #salt
12:03 dlindquist joined #salt
12:21 anitak joined #salt
12:38 yomilk joined #salt
12:47 justBob joined #salt
12:48 ndrei_ joined #salt
12:50 martoss joined #salt
13:02 dlindquist joined #salt
13:03 martoss joined #salt
13:08 martoss joined #salt
13:10 baoboa joined #salt
13:13 BenCoinanke joined #salt
13:21 anitak joined #salt
13:23 ndrei joined #salt
13:23 ndrei_ joined #salt
13:24 MrTango joined #salt
13:27 martoss joined #salt
13:27 martoss joined #salt
13:33 taion809 joined #salt
13:35 martoss joined #salt
13:35 kedo39 joined #salt
13:36 _mrtango_ joined #salt
13:36 Ryan_Lane joined #salt
13:37 MrTango joined #salt
13:42 ndrei joined #salt
13:42 ndrei_ joined #salt
13:50 mgw joined #salt
14:03 nbzz57 joined #salt
14:22 anitak joined #salt
14:30 Ryan_Lane joined #salt
14:31 AdamSewell joined #salt
14:35 helderco joined #salt
14:36 dlindquist joined #salt
14:42 jankowiak joined #salt
14:54 Shenril joined #salt
15:00 [vaelen] joined #salt
15:00 yomilk joined #salt
15:07 jimallman joined #salt
15:13 martoss joined #salt
15:16 herzi joined #salt
15:20 Corey Apparently there's a Salt sprint event at CfgMgmtCamp in Ghent tomorrow?
15:23 anitak joined #salt
15:23 gjaber hello
15:23 gjaber anyone around??
15:28 Corey gjaber: It helps if you ask a question.
15:29 nbzz57 so can i define a nodegroup based on other nodegroups?
15:30 gjaber what is the prefered way to execute one-time task, like system upgrades or partition setup, using salt??
15:30 gjaber tasks*
15:31 gjaber well, system upgrades are actually periodic
15:31 Ryan_Lane joined #salt
15:33 Corey gjaber: salt '*' pkg.upgrade works. :-)
15:34 herzi hej hej
15:34 Corey (From the master, obviously)
15:34 herzi I have some trouble setting up the gitfs fileserver backend; is there any way to debug salt to find out what's not working?
15:35 gjaber Corey: So it is not recommended to put that kind of stuff in a state that gets executed with state.highstate??
15:35 Corey gjaber: That will depend upon your environment. If you have locked repositories that you manage the content of, it's fine to put in a state, otherwise I'd probably not.
15:36 herzi I used to have a working setup with files from /srv/salt; then created a git repo and mirrored that folder (however, it's not picking up the git stuff and yields “No Top file or external nodes data matches found”)
15:38 gjaber Corey: would partitioning be another thing best left out of the highstate??
15:38 herzi this is what my config file snippet for salt-master looks like (just the gitfs related stuff): http://pastebin.com/DPXFqGB3
15:38 Corey gjaber: I'd argue it's something best left out of salt / configuration management in general.
15:39 oleg joined #salt
15:40 oleg Hi guys
15:41 Corey Hello.
15:41 dlindquist joined #salt
15:41 oleg I want to receive feedback from you, how you use salt in real environment. Let me describe my confusion...
15:41 oleg Suppose I have some network with some hosts. Single master, several minons
15:41 oleg I want to store my state files and pillar data to git repository
15:41 oleg I read the documentation, setup gitfs backend, nice
15:41 Corey oleg: State and pillar should be different repositories, but go on.
15:42 oleg Yes
15:42 oleg I know
15:42 oleg Now I can call fileserver.update and than state.highstate
15:42 oleg It works, nice
15:42 oleg So, suppose I want to setup some automatic update from repository and apply highstate
15:43 oleg With sending email about success/problem
15:43 oleg Etcetera
15:43 Corey That's what cron is for.
15:43 oleg Yes, cron
15:43 oleg So, does anybody use this scheme?
15:44 gjaber Corey: What is the usual way to manage states from wich a lot of dependencies spawn??
15:45 ccase joined #salt
15:46 gjaber Corey: for example, a software that must be installed in a python virtualenv, wich includes some packages that must be downloaded and installed "manually" (make, make install)
15:46 oleg Corey: do you use this scheme?
15:47 gjaber Corey: so the path to the previouly created virtualenv must exist. My problem is that I end up importing the virtualenv creation sls and putting it as a requirement on a lot of states. Is there a better way to ensure that the virtualenv is created beforehand__
15:47 gjaber ??
15:48 xmj no. why would you need anything outside of state.highstate ? :o
15:50 Corey gjaber: A refactor to spell out the dependencies more clearly? Each independent module should be a different state.
15:51 Corey gjaber: In the same state file, it's processed top to bottom-- but be aware that if one step fails, the next will still run, unlike with an explicit requires statement.
15:51 Corey oleg: In some environments, not all.
15:51 Corey Hah, minor freakout on Twitter at the moment about Saltstack replacing ZeroMQ. :-)
15:52 dwfreed heh
15:52 Corey (And yes, it is. Eventually.)
15:54 gjaber Corey: I thought Salt didnt ensure that the order of execution of states was the same on the file, but that it used dependencies
15:54 Corey gjaber: That behavior was changed in 0.16.0.
15:55 gjaber Corey: So by default, I can be sure that a state is gonna execute before another given the order they appear on the file, unless I explicitly declare a requirement??
15:55 Corey gjaber: Yes. With the obvious dependency caveat.
15:56 Corey That said, if there's an a hard dep you won't hurt anything with requires:
15:56 bhosmer joined #salt
15:57 gjaber Corey: Ok, I get it
15:57 Corey Yay!
16:01 oleg Corey: Thank you very much
16:01 oleg Extra queston. Why pillar and states must be in different repositores? What is the motivation?
16:01 oleg From my point of view it is not very usefulll
16:04 Corey oleg: Separates code from data.
16:04 martoss joined #salt
16:05 Corey pillar contains secure data-- ssl certs and whatnot. Later in time you might not want that in /srv/salt, which should be at least somewhat modular and generic.
16:06 oleg Corey thank you for your answer, I got it
16:06 oleg Last question (I guess)
16:06 oleg https://github.com/saltstack-formulas/resolver-formula/
16:07 oleg What the motivation use explicit function call like this?
16:07 oleg When I should use explicit call and when - pillar?
16:08 Corey oleg: Where are you seeing an explicit function call?
16:09 martoss joined #salt
16:09 Corey I'm seeing that you can populte different resolvers for different servers via pillar, and pillar will render differently to each one.
16:12 xmj salt zombie eats graaaains
16:14 kamal_ joined #salt
16:18 oleg Corey:     Extend formula by your settings:....
16:18 oleg I see the use data - doman name and DNS address - in state files. Is it right?
16:20 oleg From my understand, it should be in pillar, no?
16:20 oleg *understanding
16:21 xmj yes
16:22 btorch joined #salt
16:23 oleg xmj: yes what? should be in pillar or can be in state file?
16:24 anitak joined #salt
16:27 bretep So salt-call pillar.items shows correctly on the target minion. However when I do a Pillar raw: {{ pillar }} inside a template file, I see pillars, but none that target the minion... Seems like a bug.
16:28 bretep Any ideas before I go digging through source
16:32 Ryan_Lane joined #salt
16:32 Ryan_Lane joined #salt
16:32 bretep Anyone know a clean way to uninstall a bootstraped master to download and build the develop?  or can I just run curl -L http://bootstrap.saltstack.org | sudo sh -s -- -M -N git develop and it will overwrite or update the current install?
16:32 xmltok joined #salt
16:33 StDiluted joined #salt
16:35 mlen joined #salt
16:41 bhosmer joined #salt
16:41 clearclaw joined #salt
16:45 dlindquist joined #salt
16:47 bhosmer joined #salt
16:48 a_sk joined #salt
16:59 martoss joined #salt
17:03 fllr joined #salt
17:04 anuvrat joined #salt
17:09 jimallman joined #salt
17:12 munderwo joined #salt
17:16 jfzhu_us joined #salt
17:19 bhosmer joined #salt
17:19 dlindquist joined #salt
17:21 clearclaw joined #salt
17:24 anitak joined #salt
17:28 clearclaw joined #salt
17:32 Ryan_Lane joined #salt
17:43 fllr joined #salt
17:47 franz_ joined #salt
17:50 ndrei joined #salt
17:50 ndrei_ joined #salt
17:51 munderwo joined #salt
17:56 fllr joined #salt
18:08 smnjozela joined #salt
18:10 harobed_ joined #salt
18:15 AviMarcus joined #salt
18:19 lzhang joined #salt
18:32 justBob joined #salt
18:33 ndrei joined #salt
18:33 ndrei_ joined #salt
18:37 matanya joined #salt
18:37 matanya joined #salt
18:39 bhosmer joined #salt
18:43 teebes joined #salt
18:44 matanya joined #salt
18:49 UtahDave joined #salt
18:49 oleg__ joined #salt
18:55 anitak joined #salt
18:56 matanya joined #salt
18:57 martoss joined #salt
18:59 n8n joined #salt
19:00 jeremyfelt joined #salt
19:01 jimallman joined #salt
19:13 lzhang joined #salt
19:13 timc3 joined #salt
19:14 justBob_ joined #salt
19:15 Jahkeup joined #salt
19:21 ajw0100 joined #salt
19:22 ccase_ joined #salt
19:26 ccase_ joined #salt
19:27 fllr joined #salt
19:28 fllr joined #salt
19:30 martoss joined #salt
19:34 Ryan_Lane joined #salt
19:49 fllr joined #salt
19:52 zzzirk joined #salt
19:57 bemehow joined #salt
20:00 ndrei_ joined #salt
20:19 fllr joined #salt
20:21 fllr joined #salt
20:24 lzhang joined #salt
20:24 n8n joined #salt
20:24 beach joined #salt
20:25 beach hey guys, does anyone have any examples of accessing key:value data in a pillar from the salt-api? I'd like to access things like passwords within a deployment script from pillars
20:26 matanya joined #salt
20:26 beach I keep going in circles with the same examples that aren't quite what I'm looking for, nor helpful in getting me what I need to understand
20:27 bhosmer joined #salt
20:28 martoss joined #salt
20:31 kalloc joined #salt
20:39 kalloc joined #salt
20:41 kalloc joined #salt
20:51 oleg__ joined #salt
20:53 zzzirk_ joined #salt
20:55 cewood joined #salt
20:55 guest____ joined #salt
21:06 darrend joined #salt
21:25 Ryan_Lane joined #salt
21:37 teebes joined #salt
21:38 BrendanGilmore joined #salt
21:39 jsm joined #salt
21:41 kalloc joined #salt
21:45 MTecknology so... I have cgit being updated, compiled, and made working with salt, yay
21:48 StDiluted joined #salt
21:49 backjlack joined #salt
21:50 ajw0100 joined #salt
21:51 MTecknology Now that I have my git server up and running... I think it's time to move my salt configs to git
21:51 AdamSewell joined #salt
21:56 ajw0100 joined #salt
21:57 lzhang joined #salt
21:58 yomilk joined #salt
22:00 teebes joined #salt
22:02 ndrei joined #salt
22:11 yomilk_ joined #salt
22:15 bhosmer joined #salt
22:19 emostar MTecknology: using git to manage your salt configs is a good idea ;)
22:21 a_sk joined #salt
22:23 MTecknology emostar: I'm dedicated to having salt manage 100% of my servers
22:23 MTecknology when it comes to home, every single one of my servers is read-only
22:24 yomilk_ joined #salt
22:24 MTecknology hm.. in a config, there should be a way to get all accepted salt keys
22:24 MTecknology I wonder what that is
22:28 emostar you want the list of all keys that are accepted on the master?
22:29 UtahDave joined #salt
22:30 Marion joined #salt
22:38 mgw joined #salt
22:39 kalloc joined #salt
22:40 Corey oleg__: Yes, that's sourcing it from pillar data.
22:40 Corey Hence the default. :-)
22:59 DaveQB joined #salt
23:05 bemehow_ joined #salt
23:13 lzhang left #salt
23:29 bhosmer joined #salt
23:31 fejjerai joined #salt
23:39 kalloc joined #salt
23:40 dlindquist joined #salt
23:42 yomilk joined #salt
23:46 jimallman joined #salt
23:47 mgw joined #salt
23:51 bhosmer joined #salt
23:52 mgw joined #salt

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