Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-09-08

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

All times shown according to UTC.

Time Nick Message
00:09 jslatts joined #salt
00:10 lineman60 joined #salt
00:13 forrest joined #salt
00:14 kenbolton joined #salt
00:26 Jahkeup joined #salt
00:30 whit joined #salt
00:34 msheiny joined #salt
00:40 msheiny joined #salt
00:40 Teknix joined #salt
00:56 Teknix joined #salt
00:57 felixhummel joined #salt
00:59 jpeach joined #salt
01:04 jpeach joined #salt
01:04 kenbolton joined #salt
01:09 mgw joined #salt
01:16 andermic_ joined #salt
01:30 bhosmer joined #salt
01:35 hannesstruss_ joined #salt
01:38 Jahkeup joined #salt
01:40 Katafalkas joined #salt
01:46 mwillhite joined #salt
01:47 isomorphic joined #salt
02:05 jpeach joined #salt
02:24 m_george|away joined #salt
02:42 dthom91 joined #salt
02:42 forrest terminalmage, are you around?
02:46 terminalmage yep, what's up?
02:47 terminalmage honestly: You don't use the bang I think
02:47 terminalmage #mako|yaml
02:47 forrest What's the purpose of adding github as a known ssh host when you're using the https version of git for the pull here: https://github.com/terminalmage/djangocon2013-sls/blob/master/foo/app.sls#L11
02:48 terminalmage yeah I realized that during the tutorial. I don't think it is necessary. it's something that whiteinge had put in there when he did some of the initial SLS commits
02:48 forrest ok cool, that makes me feel better
02:49 terminalmage it might be required if you were using ssh transport for the git.latest state
02:49 forrest right
02:49 terminalmage but we used https
02:49 forrest Yea that's why I confused about what it was used for
02:49 terminalmage yeah
02:49 terminalmage btw, I'm making that deployment demo even better for a pycon talk submission
02:50 forrest Hah I was just going to ask you how that was going
02:50 terminalmage going to make the webserver and database backend pluggable
02:50 forrest you're stealing my thunder here, I was going to put in a presentation for deploying a static (pelican) blog.
02:50 forrest oh nice that will be cool
02:50 terminalmage so, what you can do is set pillar variables noting apache or nginx, and mysql or postgres
02:50 terminalmage and then it'll "just work"
02:51 forrest nice
02:51 terminalmage yeah, I put in my submission yesterday
02:51 terminalmage deadline is the 15th though and I probably won't know until a bit after that
02:51 forrest they take a while
02:51 terminalmage yup
02:52 forrest last year I didn't know till December
02:52 terminalmage wow
02:52 forrest yea
02:52 forrest They got something like 500 submissions
02:53 forrest apparently there are even more this year
02:53 forrest so it's a pretty brutal waiting game
02:53 terminalmage well, even if it doesn't get selected, I'm going to do the work anyway and make sure that it hits the docs
02:53 whit joined #salt
02:53 forrest yea for sure
02:53 terminalmage as a full-stack app deployment example
02:53 forrest it's a really good example of a working project
02:53 terminalmage think that'll be really useful
02:53 forrest It is
02:53 forrest I really think that examples of full blown projects are often times more useful than the docs
02:53 forrest because the docs will have really simple configurations
02:54 forrest where as a project has more complex examples, the directory structure, etc.
02:54 terminalmage yeah
03:06 mwillhite joined #salt
03:17 forrest hey terminalmage I just looked at the documentation updates you made for the pillar changes. I think you should expand on it even further than you have (as in the exact name of each file and their location), since this is a pretty good example for beginners.
03:18 PolyDOS joined #salt
03:18 PolyDOS left #salt
03:18 jpeach joined #salt
03:18 forrest or maybe link to the relevant section in the docs
03:30 oz_akan_ joined #salt
03:39 faldridge joined #salt
03:48 terminalmage forrest: ok, I'll look into that tomorrow
03:48 terminalmage pretty sure I already did that though
03:49 forrest It's more the fact that you do this: As I did not use the git external Pillar for my Pillar data, the pillar.example was copied to the Master under /srv/pillar/base
03:49 forrest If I didn't know anything about salt, and just went here right after seeing your presentation I feel like that would be confusing
03:53 yano joined #salt
04:04 terminalmage point taken
04:05 terminalmage I'm about to go to bed but will tweak the wording tomorrow
04:05 terminalmage g'night
04:05 forrest Ok, I'm not trying to be a dick about it, lol
04:05 dthom91 joined #salt
04:06 terminalmage no, I welcome the perspective of others, the better we make it for those that aren't as familiar with salt the better
04:06 terminalmage means we get less silly issue opened on the tracker :)
04:06 forrest lol
04:06 forrest alright have a good one
04:06 druonysus joined #salt
04:06 druonysus joined #salt
04:06 terminalmage and it can be difficult for the core devs to get in the mindset of someone coming to the project fresh
04:06 terminalmage so yeah
04:06 terminalmage you have a good one too
04:06 forrest thanks
04:08 cmthornton joined #salt
04:57 sparc_ joined #salt
05:05 vmdsch joined #salt
05:07 bhosmer joined #salt
05:28 oz_akan_ joined #salt
05:44 anb__ joined #salt
05:45 vmdsch joined #salt
06:11 stanchan joined #salt
06:14 Heartsbane joined #salt
06:14 Heartsbane joined #salt
06:26 matanya joined #salt
06:31 jaequery joined #salt
06:41 forrest Hmm, is there a way to activate a virtual environment as a specific user, then run a command from within that virtual environment? I could set it up as just a normal command and pipe it all through, but I'd prefer to use an 'official' way if there is one
06:57 matanya joined #salt
07:00 vmdsch joined #salt
07:03 sparc_ joined #salt
07:23 rhand_ joined #salt
07:51 dthom91 joined #salt
07:53 jaequery joined #salt
08:23 Katafalkas joined #salt
08:30 dthom91 joined #salt
08:31 balboah_ joined #salt
08:34 chutzpah joined #salt
08:34 bdf joined #salt
08:34 faulkner joined #salt
08:35 monokrome joined #salt
08:39 KFDM joined #salt
08:44 bhosmer joined #salt
08:47 sfello joined #salt
08:59 Katafalkas joined #salt
09:02 TheCodeAssassin joined #salt
09:08 bhosmer joined #salt
09:23 sgviking joined #salt
09:37 zooz joined #salt
10:19 zooz joined #salt
10:20 jeddi joined #salt
10:36 hannesstruss joined #salt
10:42 TheCodeAssassin joined #salt
10:44 vmdsch joined #salt
10:51 sfello joined #salt
11:01 hjubal joined #salt
11:15 hannesstruss joined #salt
11:22 jslatts joined #salt
11:24 isomorphic joined #salt
11:25 felixhummel joined #salt
11:42 zooz joined #salt
11:53 dthom91 joined #salt
11:54 superflit_ joined #salt
11:55 Furao joined #salt
12:06 isomorphic joined #salt
12:21 linjan joined #salt
12:28 jefferai joined #salt
12:33 tuxIO joined #salt
12:44 felixhummel joined #salt
13:03 mgw joined #salt
13:08 gildegoma joined #salt
13:09 gildegoma joined #salt
13:24 Furao joined #salt
13:25 darrend_ joined #salt
13:27 mackstick joined #salt
13:28 joehh joined #salt
13:28 isomorphic joined #salt
13:28 sgviking joined #salt
13:29 JimShoe joined #salt
13:39 sfello joined #salt
13:39 yano joined #salt
13:43 felixhummel joined #salt
13:46 blee joined #salt
13:50 felixhummel joined #salt
14:04 jaequery joined #salt
14:12 whit joined #salt
14:12 az87c joined #salt
14:14 blee joined #salt
14:24 oz_akan_ joined #salt
14:25 mwillhite joined #salt
14:31 whit joined #salt
14:54 isomorphic joined #salt
14:54 cedwards seems documentation on the salt mine is a bit lacking.
14:56 anteaya joined #salt
14:57 lineman60 joined #salt
15:02 mwillhite joined #salt
15:03 zzzirk joined #salt
15:04 honestly I don't even know what "the salt mine" is.
15:05 cedwards http://docs.saltstack.com/topics/mine/index.html
15:07 honestly ah
15:07 ckao joined #salt
15:08 Furao cedwards: yeah, but it's easy to understand most of it. it's relatively simple
15:09 cedwards Furao: any examples of using it?
15:10 Furao not publicly but basically you have a module on minion, each hours (you can change frequency) module run, send it's output to master, which store it
15:10 Furao then you can use mine.get 'selectorstring' 'modulename'
15:10 Furao on salt google group I just explained how I was using salt mine to do monitoring auto-discovery
15:13 cedwards trying to find that thread..
15:13 renoirb joined #salt
15:14 Furao shinken
15:14 Furao topic name
15:14 cedwards got it
15:15 renoirb joined #salt
15:15 vmdsch joined #salt
15:20 dthom91 joined #salt
15:26 jaequery joined #salt
15:35 pdayton1 joined #salt
15:44 capricorn_1 joined #salt
15:44 backjlack joined #salt
15:51 dthom91 joined #salt
15:55 honestly hrm, how robust is "file.append"? is it going to notice when a previous application of the state already appended a line, but the line to append is different now?
16:03 jeddi honestly: yeah - it's pretty robust.
16:03 jeddi i'm using it and haven't seen any 'weirdness' with it so far - it's entirely predictable and safe in terms of not adding a line that already exists.
16:03 nkuttler honestly: yeah, it re-runs every time afaik
16:04 jeddi if the line to append is *different* of course .. then it's a different matter.
16:04 nkuttler which was rather annoying for me because i tried to append daemon config files and they always get restarted..
16:06 mwillhite joined #salt
16:11 honestly instead of appending to /etc/exports I can just make a file in /etc/exports.d/salt.my-state.exports :D
16:12 craig joined #salt
16:14 djn does anybody have experience using reclass or similar tools as enc?
16:15 copelco anyone have an example of using the env variable with cmd.run?
16:15 ggoZ joined #salt
16:18 faldridge joined #salt
16:19 yano joined #salt
16:20 joehh djn: madduck the creator of reclass is often around
16:27 oz_akan_ joined #salt
16:37 honestly hrm. how can I straight-up specify the text in a file without file.append or using source?
16:37 honestly using source on file.managed*
16:38 honestly in a state file, obviously
16:43 joehh although you would still use source, a trivial jinja template might be able to do it
16:45 joehh it put the contents into the context variable
16:45 joehh and then use them in the jijna template
16:45 honestly okay
16:47 faldridge joined #salt
16:48 honestly so I still need a file?
16:49 countdigi joined #salt
16:49 isomorphic joined #salt
16:51 renoirb joined #salt
16:54 jpadilla joined #salt
16:54 lineman60 joined #salt
17:00 joehh honestly: yes - though it could be shared
17:00 honestly yeah...
17:00 joehh other option (and someone might have already done this) is a simple custom state
17:00 joehh get file contents from sls, compare with actual file and update if neede
17:00 joehh d
17:01 joehh if your python skills are up to it, that would be a neatre solution
17:01 joehh neater
17:01 berto- joined #salt
17:01 lemao joined #salt
17:06 lemao joined #salt
17:08 honestly looking at states/file.py... nah
17:08 renoirb joined #salt
17:08 honestly don't want to mess with that
17:10 madduck djn: I am around.
17:10 honestly I think to do this cleanly you'd have to change the file.managed state
17:13 djn madduck: cool to have the devs themselves around ;) I don't really have questions yet, I'm still reading up and was just asking what experiences people are having with salt + external enc
17:15 vmdsch joined #salt
17:18 madduck djn: I envy you, because you get to approach it all with a clear mind and without preconceptions. If you encounter docs that aren't clear, or you think something is missing, or you have something to share, please let me know (or send a patch)!
17:19 honestly I just noticed file.managed has contents.
17:21 honestly how did I miss that :|
17:30 honestly hnng.
17:31 djn madduck: I guess every dev starts having this problem with his projects... If I end up using reclass I'll let you know of the issues I'm having with it, thanks for your work ;)
17:31 honestly apparently to use mako rendering I need to install mako on all my minions.
17:31 oz_akan_ joined #salt
17:32 madduck honestly, what did you expect?
17:32 madduck rendering on the master?
17:33 mgw joined #salt
17:33 honestly yes :P
17:34 honestly now thinking I should've used the py renderer instead of mako...
17:36 madduck oh, for sls files?
17:36 madduck i agree that those should be rendered on the master and served to the minion in rendered state.
17:37 madduck this seems related to https://github.com/saltstack/salt/issues/6999
17:38 juicer2 joined #salt
17:38 honestly sls files, indeed
17:39 Ryan_Lane joined #salt
17:40 honestly my next step will be to create a mako formula and get it into saltstack-formulas :P
17:40 robertkeizer joined #salt
17:45 zzzirk joined #salt
17:57 hellome joined #salt
18:07 renoirb left #salt
18:08 berto- joined #salt
18:08 troyready joined #salt
18:11 sfello joined #salt
18:14 Ryan_Lane joined #salt
18:35 dthom91 joined #salt
18:36 pdayton joined #salt
18:40 mbknor joined #salt
18:44 mbknor hi. I'm looking into salt an have a question about how to configure together multiple servers. Lets say I have two servers running a webapp, then I want to configure a third server using nginx to loadbalance between the to other servers. How do I refer to thouse servers when writing the nginx config file..
18:45 alunduil joined #salt
18:47 felixhummel_ joined #salt
18:49 mohae joined #salt
18:53 berto- joined #salt
18:56 whit joined #salt
19:00 copelco mbknor: not that this helps, but i'm interested to know the answer too :)
19:06 mbknor copelco: :)
19:13 copelco you could always manually set something in pillar, but maybe there's a better way?
19:19 drags looks like the 'mine' was added for this purpose
19:20 drags I'm very new myself, but it seems you can write custom functions, have the minions mine.send 'myfunc', and use that in templates
19:21 drags s/use that/use the output/
19:25 cedwards you could use mine or the peer interface
19:25 az87c joined #salt
19:26 az87c_ joined #salt
19:30 qba73 joined #salt
19:38 JoAkKiNeN joined #salt
19:40 copelco have you guys seen any examples in a blog post or git repo somewhere? i'm having trouble putting it all together from the docs
20:02 m_george left #salt
20:10 aurigus_ joined #salt
20:14 dane joined #salt
20:19 dthom91 joined #salt
20:20 m_george|away joined #salt
20:21 pass_by_value copelco: Hi. I am new to salt myself, so apologies if my I am not answering the right question! I found this blog that talks about installing nginx using salt http://bencane.com/2013/09/03/getting-started-with-saltstack-by-example-automatically-installing-nginx/
20:30 m_george left #salt
20:56 Katafalkas joined #salt
20:58 forrest joined #salt
20:59 zzzirk joined #salt
21:07 whit joined #salt
21:15 Ryan_Lane joined #salt
21:24 linjan joined #salt
21:29 roXet joined #salt
21:30 roXet left #salt
21:37 stanchan joined #salt
21:53 CheKoLyN joined #salt
22:11 _ilbot joined #salt
22:11 Topic for #salt is now Welcome to #salt - http://saltstack.org | 0.16.3 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/
22:19 svx_ joined #salt
22:19 nliadm joined #salt
22:19 rmt joined #salt
22:19 crashmag joined #salt
22:19 Gareth joined #salt
22:19 intchanter joined #salt
22:19 Nazca joined #salt
22:19 jwon joined #salt
22:19 MTecknology joined #salt
22:19 gmoro joined #salt
22:19 gadams joined #salt
22:19 antsygeek joined #salt
22:19 Apathetic joined #salt
22:19 quantumsummers|c joined #salt
22:19 kiorky joined #salt
22:19 jodell_ joined #salt
22:19 robawt joined #salt
22:19 utahcon joined #salt
22:19 z3uS joined #salt
22:19 tseNkiN joined #salt
22:19 mephx joined #salt
22:19 mattmtl joined #salt
22:19 TheRealBill joined #salt
22:19 shadowsun joined #salt
22:19 rjc joined #salt
22:19 jpadilla joined #salt
22:19 blast_hardcheese joined #salt
22:19 dh joined #salt
22:19 twiedenbein joined #salt
22:19 beardo__ joined #salt
22:19 ClausA joined #salt
22:19 insatsu joined #salt
22:19 tonthon joined #salt
22:19 johnsocp joined #salt
22:19 jhujhiti joined #salt
22:19 __number5__ joined #salt
22:19 seb` joined #salt
22:19 errr joined #salt
22:19 chrism joined #salt
22:19 kula joined #salt
22:19 mollerstrand joined #salt
22:19 heckman joined #salt
22:19 bawnzai joined #salt
22:19 tamentis joined #salt
22:19 scotticus joined #salt
22:19 emilisto joined #salt
22:19 doki_pen joined #salt
22:19 paraglade joined #salt
22:19 ede joined #salt
22:19 gwar9999 joined #salt
22:19 minaguib joined #salt
22:19 jfalco joined #salt
22:19 ioni joined #salt
22:19 rizumu joined #salt
22:19 Odd_Bloke joined #salt
22:19 sashka_ua joined #salt
22:19 pygmael joined #salt
22:19 Ixan joined #salt
22:19 svx joined #salt
22:19 pnl joined #salt
22:19 lyddonb_ joined #salt
22:19 alexandrel joined #salt
22:19 keekz joined #salt
22:19 mjulian joined #salt
22:19 durnik joined #salt
22:19 spoktor joined #salt
22:19 gaoyang joined #salt
22:19 evax joined #salt
22:19 echos joined #salt
22:19 iMil joined #salt
22:19 jrgifford joined #salt
22:19 jgelens joined #salt
22:19 tethra joined #salt
22:19 sinh joined #salt
22:19 ze- joined #salt
22:19 [ilin] joined #salt
22:19 fxhp joined #salt
22:19 zz_farra joined #salt
22:19 lahwran joined #salt
22:19 z0rkito joined #salt
22:19 davromaniak joined #salt
22:19 drags joined #salt
22:19 Corey joined #salt
22:19 octarine joined #salt
22:19 Viaken joined #salt
22:19 pjs joined #salt
22:19 mordred joined #salt
22:19 jtrucks joined #salt
22:19 kchr joined #salt
22:19 twinshadow joined #salt
22:19 retr0h joined #salt
22:19 bashcoder joined #salt
22:19 robinsmidsrod joined #salt
22:19 swa joined #salt
22:19 xenoxaos joined #salt
22:19 namtab joined #salt
22:19 jpcw joined #salt
22:19 canci joined #salt
22:19 viq joined #salt
22:19 Jarus joined #salt
22:19 madduck joined #salt
22:19 mirko joined #salt
22:19 Eugene joined #salt
22:19 setient joined #salt
22:19 akoumjian joined #salt
22:19 ange joined #salt
22:19 qybl joined #salt
22:19 yml joined #salt
22:19 ahale joined #salt
22:19 jpaetzel joined #salt
22:19 benturner joined #salt
22:19 daBrado joined #salt
22:19 letterj joined #salt
22:19 kvbik joined #salt
22:19 jinnko joined #salt
22:19 balltongu joined #salt
22:19 Kyle joined #salt
22:19 scofflaw_ joined #salt
22:19 Kraln joined #salt
22:19 g3cko joined #salt
22:19 morganfainberg joined #salt
22:19 s0undt3ch joined #salt
22:19 Micromus_ joined #salt
22:19 andrew_seattle joined #salt
22:19 andyshinn` joined #salt
22:19 cetex joined #salt
22:19 fivethreeo joined #salt
22:19 mnemonikk joined #salt
22:19 scalability-junk joined #salt
22:19 mfournier joined #salt
22:19 d10n joined #salt
22:19 carxwol joined #salt
22:19 Anb_ joined #salt
22:19 bwq joined #salt
22:19 hughsaunders joined #salt
22:19 terminalmage joined #salt
22:19 pmcg_ joined #salt
22:19 jeblair joined #salt
22:19 yidhra_ joined #salt
22:19 axiom joined #salt
22:19 Zethrok_ joined #salt
22:19 cbloss joined #salt
22:19 stefw` joined #salt
22:19 jphall_ joined #salt
22:19 shennyg joined #salt
22:19 Rorgo joined #salt
22:19 etw joined #salt
22:19 puppet joined #salt
22:19 MK_FG joined #salt
22:19 welby joined #salt
22:19 godog joined #salt
22:19 dcolish joined #salt
22:19 andrewclegg_ joined #salt
22:19 keeeh joined #salt
22:19 Bosse joined #salt
22:19 arapaho joined #salt
22:19 ktenney joined #salt
22:19 Striki joined #salt
22:19 rachbelaid joined #salt
22:19 bkonkle joined #salt
22:19 whyzgeek joined #salt
22:19 xmj joined #salt
22:19 EnTeQuAk joined #salt
22:19 kallek joined #salt
22:19 yota joined #salt
22:19 rockey joined #salt
22:19 ezraw_away joined #salt
22:19 _chjohnstwork joined #salt
22:19 akio joined #salt
22:19 chuffpdx joined #salt
22:19 eightyeight joined #salt
22:19 nineteeneightd joined #salt
22:19 ggherdov joined #salt
22:19 alekibango joined #salt
22:19 JesseC joined #salt
22:19 jeffrubic joined #salt
22:19 Martinez joined #salt
22:19 jbub joined #salt
22:19 djn joined #salt
22:19 codysoyland joined #salt
22:19 carmony joined #salt
22:19 luminous joined #salt
22:19 txmoose joined #salt
22:19 jheise joined #salt
22:19 bitmand joined #salt
22:19 oc joined #salt
22:19 goki joined #salt
22:19 gamingrobot joined #salt
22:19 pcarrier joined #salt
22:19 APLU joined #salt
22:19 akitada joined #salt
22:19 y0j joined #salt
22:19 deedubs joined #salt
22:19 opapo joined #salt
22:19 kamal_ joined #salt
22:19 joonas joined #salt
22:19 jxqz joined #salt
22:19 vipul joined #salt
22:19 anuvrat joined #salt
22:19 kevinbrolly joined #salt
22:19 tru_tru joined #salt
22:19 xt joined #salt
22:19 Tekni joined #salt
22:19 ccase joined #salt
22:19 DerekRBN1 joined #salt
22:19 SpX joined #salt
22:19 soukihei joined #salt
22:19 Sypher joined #salt
22:19 benspaulding joined #salt
22:19 tempspace joined #salt
22:19 austin987 joined #salt
22:19 Niichan joined #salt
22:19 s00pcan joined #salt
22:19 joshe joined #salt
22:19 spacedentist joined #salt
22:19 cwarner joined #salt
22:19 hotbox joined #salt
22:19 Koma joined #salt
22:19 brutasse joined #salt
22:19 msil joined #salt
22:19 nocturn joined #salt
22:19 cyp joined #salt
22:19 eculver joined #salt
22:19 melinath joined #salt
22:19 Vivek joined #salt
22:19 mattikus joined #salt
22:19 pass_by_value joined #salt
22:19 \ask joined #salt
22:19 dave_den joined #salt
22:19 copelco joined #salt
22:19 clone1018 joined #salt
22:19 nkuttler joined #salt
22:19 marcinkuzminski joined #salt
22:19 cce_ joined #salt
22:19 djinni`_ joined #salt
22:19 jcristau joined #salt
22:19 Boohbah_ joined #salt
22:19 Ahlee joined #salt
22:19 cowmix joined #salt
22:19 Valdo joined #salt
22:19 Daviey joined #salt
22:19 neilf joined #salt
22:19 crazysim joined #salt
22:19 ninkotech joined #salt
22:19 zach joined #salt
22:19 jY joined #salt
22:19 scooby2 joined #salt
22:19 Psi-Jack joined #salt
22:19 honestly joined #salt
22:19 [vaelen] joined #salt
22:19 Jahkeup joined #salt
22:19 cmthornton joined #salt
22:19 chutzpah joined #salt
22:19 bdf joined #salt
22:19 faulkner joined #salt
22:19 monokrome joined #salt
22:19 bhosmer joined #salt
22:19 jeddi joined #salt
22:19 superflit joined #salt
22:19 jefferai joined #salt
22:19 Furao joined #salt
22:19 darrend_ joined #salt
22:19 mackstick joined #salt
22:19 joehh joined #salt
22:19 JimShoe joined #salt
22:19 anteaya joined #salt
22:19 capricorn_1 joined #salt
22:19 craig joined #salt
22:19 yano joined #salt
22:19 countdigi joined #salt
22:19 isomorphic joined #salt
22:19 hellome joined #salt
22:19 mohae joined #salt
22:19 JoAkKiNeN joined #salt
22:19 dane joined #salt
22:19 Ryan_Lane joined #salt
22:19 mortis joined #salt
22:19 ahammond joined #salt
22:19 kermit joined #salt
22:19 whiteinge joined #salt
22:19 zooz joined #salt
22:19 KFDM joined #salt
22:19 Heartsbane joined #salt
22:19 andermic joined #salt
22:19 Teknix joined #salt
22:19 premera joined #salt
22:19 longdays joined #salt
22:19 aleszoulek joined #salt
22:19 vbabiy joined #salt
22:19 SIFTU joined #salt
22:19 zfouts joined #salt
22:19 holmb joined #salt
22:19 talso joined #salt
22:19 coolj joined #salt
22:19 LordOfLA joined #salt
22:19 goodwill joined #salt
22:19 lynxman joined #salt
22:19 cwright joined #salt
22:19 bui joined #salt
22:19 ksalman joined #salt
22:19 whiteinge joined #salt
22:25 akitada joined #salt
22:39 copelco is it possible to see a rendered salt state on the minion?
22:39 drags copelco: what do you mean a rendered salt state?
22:39 copelco i think i'm generating bad yaml, but it's hard to tell unless i can see the final state
22:40 copelco i'm accessing some dynamic variables through pillar
22:40 copelco so i was hoping to see what the state actually looked like before being run on the minion.. if that makes sense
22:42 drags ah, like the file after yaml_jinja is done with it?
22:42 drags not sure how to do that
22:42 copelco yeah
22:42 copelco ah ok
22:42 drags btw I have a hacky solution for the question from earlier: https://gist.github.com/drags/6488809
22:43 copelco wow cool, thanks
22:44 copelco i'll give it a try
22:44 drags basically, you set a unique grain on any minions you want in load balancer pool ABC, then mine.send haproxy.server_line on those hosts
22:44 drags on the loadbalancer itself you would call 'haproxy.get_output' with the grain
22:44 forrest Does anyone know why restructered text puts a red box around the % in {% ?
22:45 drags be warned, this is pretty much my first week of Salt, so that solution may be entirely insane
22:45 copelco hah, ok. thanks so much
22:45 Eugene Because {% %} is Jinja, not YAML?
22:46 forrest I thought the same thing, but if you look at the docs here: http://docs.saltstack.com/ref/states/all/salt.states.file.html
22:46 forrest versus the source here: https://github.com/saltstack/salt/blob/1c123ec02f542232b38380f5f49926bd749132dd/salt/states/file.py#L14
22:46 forrest you can see that it parses it correctly
22:47 * Eugene shrugs
22:47 Eugene You've looked at it deeper than I have, then
22:47 forrest hah ok
22:48 forrest seems to be ok if you do jinja_yaml
22:48 AviMarcus joined #salt
22:49 mgw joined #salt
22:50 drags copelco: added comments to the top of the first file in that gist to explain better
22:58 cewood joined #salt
23:10 terminalmage forrest: I updated the README, let me know what you think
23:10 Guest98135 anyone familiar with the py renderer? more specifically calling salt functions when using it
23:11 NV joined #salt
23:12 NV for some reason variables like __salt__ and __grains__ as defined when running within salt, or within pydsl, appear to be defined as just salt and grains
23:13 terminalmage NV: that's the way they appear in templating
23:13 terminalmage but I haven't used them much in grains
23:13 terminalmage or pillar, using the py renderer
23:13 NV yeah, i'm using pillar with the py renderer
23:13 NV why though? pydsl has them with __ markings either side
23:13 NV makes it difficult to call salt code as a result
23:14 NV (as it expects __'s surrounding)
23:16 terminalmage so you're saying that, in the py renderer, they are just "salt" an "grains
23:16 terminalmage "
23:16 terminalmage ?
23:17 NV correct
23:17 NV https://github.com/saltstack/salt/blob/develop/salt/renderers/py.py#L29
23:17 NV compare to pydsl - https://github.com/saltstack/salt/blob/develop/salt/renderers/pydsl.py#L335
23:21 forrest terminalmage, looks good to me.
23:22 terminalmage NV: Might want to open an issue for that
23:22 terminalmage I don't know the intent as I didn't write either of those renderers
23:22 terminalmage but it should be consistent, I agree
23:23 terminalmage forrest: cool
23:24 fragamus joined #salt
23:29 Heartsbane_ joined #salt
23:29 Heartsbane_ joined #salt
23:35 mgw joined #salt
23:41 jslatts joined #salt
23:44 whit joined #salt
23:49 dthom91 joined #salt
23:59 felixhummel joined #salt

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