Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-02-17

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

All times shown according to UTC.

Time Nick Message
00:01 joehoyle joined #salt
00:06 frasergraham joined #salt
00:07 vegardx Or you know, on a DNS-server.
00:28 oz_akan_ joined #salt
00:33 jtang1 joined #salt
00:34 anuvrat joined #salt
00:34 quickdry21_ joined #salt
00:40 terminalmage joined #salt
00:48 Ahlee as when i {{ baz }} /win 2
00:48 Ahlee er
00:48 Ahlee yeah.
00:52 vu joined #salt
00:56 ninkotech joined #salt
01:02 scott_w_ joined #salt
01:03 vejdmn joined #salt
01:07 loglevel9 joined #salt
01:13 mwmnj joined #salt
01:14 TraumaReaper joined #salt
01:19 davet joined #salt
01:23 gmoro joined #salt
01:26 andrej The pcre matching I see described to the top.sls of states - can I apply the same logic/syntax to pillars?
01:27 jtang1 joined #salt
01:29 bhosmer joined #salt
01:29 mgw1 joined #salt
01:33 dave_den andrej: yes.
01:35 andrej dave_den - ta
01:36 andrej I think I'm somewhat slow in the uptake of the basics, but am now starting to enjoy using salt ;)
01:36 eliasp joined #salt
01:40 malinoff joined #salt
01:44 joehoyle joined #salt
01:46 joehoyle_ joined #salt
01:46 eliasp joined #salt
01:53 Ahlee dave_den: thanks for Thursday
01:53 oz_akan_ joined #salt
01:53 Ahlee dave_den: i think I ran off without properly thanking you.  You were 100% correct on my not doing anything with the variable
02:03 scott_w_ joined #salt
02:16 dave_den Ahlee: glad you got it working. you're totally welcome! :)
02:18 bhosmer joined #salt
02:20 krow joined #salt
02:21 jtang1 joined #salt
02:21 dave_den andrej: awesome. once you get the flow of things it really makes sense
02:24 quickdry21_ joined #salt
02:26 mgw1 joined #salt
02:27 Ryan_Lane joined #salt
02:27 joehoyle joined #salt
02:28 Nazca joined #salt
02:30 krow joined #salt
02:38 acabrera alice|wl: putting it in /etc/hosts is not ideal
02:55 xl1 joined #salt
02:58 Hefeweizen joined #salt
03:00 tomtomtomtom joined #salt
03:03 ravibhure joined #salt
03:04 scott_w_ joined #salt
03:07 krow joined #salt
03:08 jacksontj joined #salt
03:09 adizam joined #salt
03:12 quickdry21_ joined #salt
03:15 schimmy joined #salt
03:15 Andrevan joined #salt
03:15 jtang1 joined #salt
03:17 bhosmer joined #salt
03:21 rostam joined #salt
03:22 synfin joined #salt
03:23 Xe joined #salt
03:23 alice|wl doh
03:25 jimallman joined #salt
03:25 Hefeweizen joined #salt
03:28 jimallman left #salt
03:33 forrest hey terminalmage you around?
03:35 terminalmage forrest: yup
03:36 nahamu joined #salt
03:38 Ahlee https://gist.github.com/anonymous/d0ad926c9bdc76fbc31f
03:39 Ahlee where's that damn trailing dot coming from
03:39 faldridge joined #salt
03:42 terminalmage in the comment?
03:42 terminalmage might be just added by the state itself
03:43 terminalmage Ahlee: is the version part of the pkg name?
03:43 Ahlee so the package is already installed
03:44 jalbretsen joined #salt
03:44 Ahlee terminalmage: hrm.
03:44 Ahlee damn. i bet you're right.
03:44 terminalmage in other words, if you go to the actual RPM
03:44 terminalmage and do: rpm -qpi salt-minion-0.17.5-2.el5.spot.rpm
03:44 terminalmage the "name" bit is what salt expects
03:45 terminalmage you might need to pin the version though
03:45 terminalmage i.e.  - version: 0.17.5-2.el5.spot
03:46 Ahlee there it is
03:46 Ahlee thanks.
03:46 terminalmage if np
03:46 terminalmage *np"
03:47 terminalmage keep forgetting weechat has per-window message buffers
03:47 Ahlee lol
03:48 terminalmage Ahlee: I'm pretty sure that the trailing dot there is part of the state's error message
03:48 terminalmage do you think it should be removed?
03:48 terminalmage if it's that confusing...
03:48 vu joined #salt
03:48 Ahlee that did it terminalmage
03:49 Ahlee i'm drunk and not very bright
03:49 terminalmage ha
03:49 Ahlee i'm sure it's fine to stay
03:49 terminalmage ok
03:49 Ahlee now to figure out how to feed in config options to the salt formula
03:55 favadi joined #salt
03:55 adizam joined #salt
03:56 lacrymology joined #salt
03:56 lacrymology what's the module command to get the list of modules?
03:56 lacrymology something like sys.list or sys.docs or something
04:00 mgw1 joined #salt
04:03 dave_den lacrymology: http://docs.saltstack.com/ref/modules/all/salt.modules.sysmod.html#salt.modules.sysmod.list_modules
04:04 scott_w_ joined #salt
04:07 Furao joined #salt
04:07 malinoff lacrymology, you can use "salt \* sys.doc | cut -d ' ' -f1 | sed '/^$/d' | cut -d ':' -f1" to retrieve not modules, but functions in modules
04:08 malinoff But somehow there is a documentation about python's dict in this list :O
04:08 Furao lacrymology: I'm at the pool if you want to work there
04:09 jtang1 joined #salt
04:12 dave_den malinoff: you may want to just use sys.list_functions.
04:12 dave_den http://docs.saltstack.com/ref/modules/all/salt.modules.sysmod.html#salt.modules.sysmod.list_functions
04:12 malinoff Yes
04:13 lacrymology Furao: I'd love to, but my battery sucks
04:14 Furao oh yes, that. we should investigate for a better power outlet around the pool
04:14 Furao the router is plugged into my power adapter, I can't take it out
04:15 Furao so I can't test them
04:16 dccc joined #salt
04:17 lacrymology Furao: if I fill in the .sls with - metric.name: <boolean> I get a list of dicts in the `map` parameter. Do you know if there's any way of getting just a plain dict?
04:18 warmwaffles joined #salt
04:20 oz_akan_ joined #salt
04:20 Furao lacrymology: metric.name to starts with should be ok, maybe one day we will use regexp. but no need to implement that for now
04:21 lacrymology not what I meant
04:22 lacrymology Furao: I meant the mapping of metric.name to "can this be zero" boolean
04:23 Furao lacrymology: yes False = can't be zero True = can be zero. and value must be negative or positive float/int
04:24 snuffeluffegus joined #salt
04:25 schimmy joined #salt
04:25 warmwaffles eh what packages for the git backend are supposed to be on archlinux? python-pygit2, libgit2?
04:31 terminalmage warmwaffles: only GitPython is presently supported
04:31 terminalmage unless you're running from develop
04:31 lacrymology Furao: nevermind, got what I was looking for. It was a yaml syntax thing
04:31 terminalmage this is described in the docs
04:31 warmwaffles I am running from develop at the moment :-/
04:32 terminalmage ok... well the docs are pretty clear on what needs to be installed... you need the pygit2 module, which depends on libgit2
04:33 terminalmage warmwaffles: if you have both gitpython and pygit2 you also need to set gitfs_provider
04:33 terminalmage http://docs.saltstack.com/ref/configuration/master.html#std:conf_master-gitfs_provider
04:33 hvn joined #salt
04:34 warmwaffles gah that's what I get for glossing over that part of the readme
04:34 warmwaffles thanks terminalmage
04:34 terminalmage no prob
04:34 terminalmage I wrote that stuff, so I'm pretty familiar with it :)
04:35 terminalmage warmwaffles: I also have another significant upgrade to gitfs pending
04:35 terminalmage https://github.com/saltstack/salt/pull/10468
04:35 terminalmage I'd love it if you could test that once it's merged
04:35 warmwaffles such docs
04:36 terminalmage such docs, very python, wow
04:36 Ryan_Lane joined #salt
04:37 warmwaffles I was about to stand up a git server and just point salt at it
04:38 warmwaffles just push to that remote
04:43 terminalmage yeah, that'll be a good test of it. if you find any problems, errors logged to master log, etc. having to do with this, please let me know
04:43 terminalmage file an issue and tag me with @terminalmage
04:43 terminalmage the pygit2 support is still quite new
04:43 terminalmage needs to be battle tested :)
04:44 __number5__ oh, gitfs will based on pygit2?
04:44 __number5__ that's so much better than gitpython :P
04:45 terminalmage __number5__: actually, GitPython, pygit2, and dulwich are all supported now
04:45 terminalmage in develop
04:45 cachedout joined #salt
04:46 terminalmage and more awesomeness to come (see my pull request I posted above)
04:49 dave_den terminalmage: is sam smith the lead on raet stuff?
04:49 terminalmage I think so
04:49 __number5__ terminalmage: thanks, I want mountpoints for a while :)
04:50 terminalmage __number5__: yeah, the whole reason I made that is because I manage my VPS with Salt now and I wanted this feature
04:50 terminalmage :D
04:51 terminalmage dave_den: he certainly seems to have a lot of work done there
04:51 terminalmage I'm pretty sure he is leading that
04:52 dave_den right, that's what i'm looking at. just figured you would know a bit more than i do
04:53 dave_den trying to piece it all together
04:53 terminalmage yeah, unfortunately I don't get a lot of the office chatter about it since I work remotely
04:56 Ahlee i picked a bad god damn time to kick off an upgrade of staging
04:58 terminalmage Ahlee: that made me think of Airplane!
04:58 terminalmage http://youtu.be/7WAwuSK36Gw
04:58 Ahlee hehe
04:59 Mua joined #salt
04:59 dave_den terminalmage: well, given sam is the author of https://github.com/RaetProtocol/raet i think it's safe to say he's doing the raet in salt ;)
04:59 terminalmage lol
05:00 terminalmage good call
05:03 redondos joined #salt
05:03 redondos joined #salt
05:04 jtang1 joined #salt
05:04 MK_FG joined #salt
05:05 scott_w_ joined #salt
05:05 bhosmer joined #salt
05:13 dave_den http://ioflo.com/ioflo-now-on-github/#comments
05:13 dave_den heh, i like the self comment
05:16 thayne joined #salt
05:19 quickdry21_ joined #salt
05:21 retr0h joined #salt
05:45 nextdoorwarren joined #salt
05:58 jtang1 joined #salt
06:06 scott_w_ joined #salt
06:12 n8n joined #salt
06:15 terminalmage lol
06:21 synfin joined #salt
06:26 anuvrat joined #salt
06:39 krow joined #salt
06:40 krow1 joined #salt
06:44 anuvrat joined #salt
06:52 jtang1 joined #salt
06:54 bhosmer joined #salt
06:57 joehoyle joined #salt
06:59 nocturn joined #salt
06:59 nocturn joined #salt
07:06 scott_w_ joined #salt
07:10 bhosmer joined #salt
07:28 ndrei joined #salt
07:40 _david_a joined #salt
07:42 ravibhure joined #salt
07:43 lessismore joined #salt
07:47 ravibhure1 joined #salt
07:48 ravibhure1 left #salt
07:56 ndrei joined #salt
07:57 linjan joined #salt
07:59 jtang1 joined #salt
08:00 gadams999 joined #salt
08:01 Kenzor joined #salt
08:13 harobed joined #salt
08:14 yomilk joined #salt
08:19 miguitas joined #salt
08:21 quickdry21_ joined #salt
08:22 anuvrat joined #salt
08:25 zooz joined #salt
08:26 kadel joined #salt
08:26 quickdry21_ joined #salt
08:27 quickdry21_ joined #salt
08:37 ndrei joined #salt
08:37 gammalget joined #salt
08:42 bhosmer joined #salt
08:43 krow joined #salt
08:49 slav0nic joined #salt
08:51 lessismore Sorry for the repeated question, maybe today I will be more lucky... I am confused about latest salt release, in https://github.com/saltstack/salt-cloud there is a link to the Hydrogen Release: https://github.com/saltstac​k/salt/issues?milestone=39 that seems complete but not yet released, even in the page http://docs.saltstack.com/to​pics/releases/2014.01.0.html there is the string "release:2013-12-30". Is there a place where I can track the progress ab
08:55 ndrei joined #salt
08:59 balboah joined #salt
09:01 krow joined #salt
09:01 carlos joined #salt
09:06 krow joined #salt
09:11 anuvrat joined #salt
09:12 krow joined #salt
09:14 giantlock_ joined #salt
09:25 Furao joined #salt
09:29 lessismore joined #salt
09:31 krow joined #salt
09:34 kermit joined #salt
09:36 sroegner joined #salt
09:36 debaser joined #salt
09:39 MrTango joined #salt
09:42 MrTango joined #salt
09:45 joehoyle joined #salt
09:46 balboah joined #salt
09:51 ndrei joined #salt
09:57 millz0r joined #salt
10:03 krow1 joined #salt
10:03 samkottler joined #salt
10:03 Voziv joined #salt
10:07 Ahlee joined #salt
10:12 Steamwells joined #salt
10:12 tinuva joined #salt
10:15 juice joined #salt
10:17 krow joined #salt
10:22 krow joined #salt
10:24 n8n joined #salt
10:30 bhosmer joined #salt
10:33 krow joined #salt
10:39 krow joined #salt
10:43 ndrei joined #salt
10:45 krow joined #salt
10:50 njpatel joined #salt
10:53 anuvrat joined #salt
10:56 krow joined #salt
10:59 raffdaraff joined #salt
11:00 raffdaraff Hey there. I'm looking for a way to execute commands as a system specific user. Since then I was using cmd.run with sudo -u... but, is there a built-in way inside salt?
11:01 d1rk joined #salt
11:01 krow joined #salt
11:07 krow joined #salt
11:09 ndrei joined #salt
11:13 krow joined #salt
11:14 darless joined #salt
11:18 elithrar_ joined #salt
11:22 nkuttler gah... i shouldn't have put the home lan master on a box i dual boot
11:23 jrdx joined #salt
11:24 nkuttler raffdaraff: http://docs.saltstack.com/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
11:25 sroegner joined #salt
11:27 viq MTecknology: I believe I do say in the description that it does not work with RVM
11:28 diegows joined #salt
11:28 viq MTecknology: and indeed it doesn't handle remote databases
11:30 viq MTecknology: and I do have gitlab:use_rvm in the example pillar
11:32 raffdaraff nkuttler: thank you :3
11:34 MTecknology viq: last point - I must have missed that or something... it's right up top plain as day...
11:35 MTecknology packaging up new releases for stuff is a pain in the bum
11:37 MTecknology viq: remote databases... all you need to do is handle the extra host attribute, no?
11:37 lessismore joined #salt
11:37 viq MTecknology: probably, and a bit to decide whether to install and run the local db server or not
11:38 viq MTecknology: what are you packaging?
11:38 MTecknology tdc in debian
11:38 viq For own use, or debian itself?
11:39 viq If for own use, maybe fpm would help?
11:39 MTecknology for debian
11:40 viq ah, then indeed it can be more challenging
11:40 viq what is tdc? Googling is not very helpful for such short names ;)
11:40 MTecknology you on a debian box?
11:41 viq can be
11:41 viq ah, tiny dockable clock
11:41 MTecknology yup
11:42 MTecknology mostly really really minor things to fix up; it's an insanely simple application (hence, almost 3yr before a single point release)
11:42 krow joined #salt
11:42 MTecknology two more lintian warnings before it's ready for showtime
11:45 MTecknology lintian is fun... it does a great job yelling at you for simple things that others have spent a lot of time making sure people don't do
11:48 krow joined #salt
11:50 MTecknology viq: you happen to be a dd and wanna sponsor my package?
11:52 viq If dd is 'debian developer' then no, barely a user.
11:53 MTecknology ah, sigh
11:53 MTecknology I just accidentally upgraded a box to debian unstable
11:53 MTecknology good job of not paying attention
11:53 krow joined #salt
11:53 viq :D
11:53 viq vagrant ;)
11:55 gadams999 joined #salt
11:55 MTecknology me?
11:56 MTecknology I'm either at home or at work... I don't think that I qualify as a vagrant
11:57 viq MTecknology: http://www.vagrantup.com/
11:58 MTecknology ah
11:58 viq MTecknology: if you don't know it, try it. _VERY_ useful for testing stuff
11:59 krow joined #salt
12:00 ndrei joined #salt
12:01 MTecknology I should look into that. For most of my dev stuff, I just have a dedicated vm with a few chroots
12:02 viq MTecknology: combine it with http://www.packer.io/ - with packer you prepare a VM template just the way you like it, with vagrant you start it up in a fresh state, do whatever you want, then when you're done you just nuke it, and can start anew. It also can start multiple at once, with different settings
12:04 viq MTecknology: that's what I'm using to work on my gitlab formula
12:04 krow joined #salt
12:05 brianhicks joined #salt
12:06 anuvrat joined #salt
12:10 krow joined #salt
12:10 MTecknology waiting on mentors.debian.net to process my upload... then all that's left is convincing a DD to push it into main.
12:11 MTecknology well... into contrib
12:11 viq MTecknology: believe me, you want to play with vagrant, even if you don't know this yet ;)
12:11 bhosmer joined #salt
12:12 elfixit joined #salt
12:12 MTecknology I'm tired... but I need to get up in 1hr
12:12 MTecknology just go to work or... nap for an hour?
12:16 MTecknology eh... It'd take me 30min minimum to get to sleep, ~30min is nothing; time to go to work!
12:18 bhosmer joined #salt
12:19 ndrei joined #salt
12:21 bhosmer_ joined #salt
12:43 krow1 joined #salt
12:45 faldridge joined #salt
12:48 krow joined #salt
12:50 taktak joined #salt
12:54 krow joined #salt
12:57 sroegner joined #salt
13:01 krow joined #salt
13:07 DaveQB joined #salt
13:21 Mua joined #salt
13:26 krow1 joined #salt
13:28 ndrei joined #salt
13:32 krow joined #salt
13:33 jaimed joined #salt
13:37 krow joined #salt
13:38 blee joined #salt
13:39 taion809 joined #salt
13:40 BogdanR What else can I use besides startswith and == ?
13:41 BogdanR I have something like {% if grains['id'].startswith('lg-eu-') %} but instead I would also like to match something like some-other-web3
13:42 darless_ joined #salt
13:43 krow joined #salt
13:44 Furao use ``or``
13:44 Furao perform multiple check
13:44 BogdanR No, my point is that I would like to be able to match things that don't begin with something predictable to instead contain the match string in the middle
13:45 BogdanR I would like to be able to use something like == "*web*"
13:45 BogdanR Would that work?
13:45 BogdanR I can't find documentation for that
13:46 Furao {% if grains['id'].startswith('lg-eu-') or 'web' in grains['id'] %}
13:47 BogdanR Furao: thanks a lot!
13:47 BogdanR Where can I read more about this?
13:47 Furao http://jinja.pocoo.org/docs/templates/
13:48 gmoro joined #salt
13:48 krow joined #salt
13:49 Furao and http://docs.python.org/2/library/stdtypes.html
13:49 lessismore joined #salt
13:52 funzo joined #salt
13:54 krow joined #salt
13:56 faldridge joined #salt
13:59 oz_akan_ joined #salt
14:00 AdamSewell joined #salt
14:00 AdamSewell joined #salt
14:05 mpanetta joined #salt
14:05 krow joined #salt
14:07 bhosmer joined #salt
14:09 Mua_ joined #salt
14:09 bstcraft joined #salt
14:09 lpmulligan joined #salt
14:10 bstcraft Hi guys
14:10 racooper joined #salt
14:10 bstcraft How can I teach salt to install debian packages from my master? Via cmd.run or is there an alternative?
14:11 krow joined #salt
14:12 Linz joined #salt
14:12 brianhicks joined #salt
14:13 scoates bstcraft: fwiw, I manage this through a custom APT repository, and it's been definitely worth it. `reprepro` is very helpful for this.
14:13 bstcraft Okay, thanks. This seems to be a much cleaner way
14:15 funzo joined #salt
14:17 krow joined #salt
14:17 lessismore left #salt
14:17 mgw1 joined #salt
14:19 ndrei joined #salt
14:19 diegows joined #salt
14:20 Linz joined #salt
14:22 krow joined #salt
14:24 nn0101 joined #salt
14:24 emostar joined #salt
14:25 twiedenbein joined #salt
14:27 Katafalkas joined #salt
14:28 juicer2 joined #salt
14:32 dwiden joined #salt
14:33 krow joined #salt
14:35 techdragon @kiorky do you really think setting the default to true in my PR https://github.com/saltstack/salt/pull/10504 is ok? I was being pretty conservative with the pull request but its a trivial change to swap it to true
14:39 krow joined #salt
14:40 aurigus joined #salt
14:44 giantlock_ joined #salt
14:44 krow joined #salt
14:45 kiorky techdragon: well nowoday, without extra work, checking retcode is just impossible
14:45 kiorky (afaikà
14:46 kiorky we use here a shell function to both look in logs and yaml output when we call it from shell
14:46 GradysGhost joined #salt
14:46 techdragon so based on the fact retched is useless at the present time, its a case of 'why not'?
14:46 techdragon ^retcode
14:48 kiorky techdragon: yep
14:48 Furao joined #salt
14:48 kiorky techdragon: retcode nowodays is certainly one of 2 or 0 and is unrelated to execution status; isnt it.
14:49 kiorky techdragon: so for me, it seems fine to make things more consistent and have a proper status whenever possible, eg 0/1 on highstate sucess/failure.
14:50 krow joined #salt
14:50 techdragon kiorky that sounds like a good case for you to modify the value in the config. I think ill leave the PR as is and see what the core/reviewers think of it. If consensus is on changing that config variable to default as true, then its easy. I feel false is a safe default to leave for now until after it passes review.
14:56 krow joined #salt
14:58 vejdmn joined #salt
15:01 krow joined #salt
15:02 Damoun joined #salt
15:06 kiorky techdragon: so , as a user, you are fine by having no error code ? :)
15:07 krow joined #salt
15:08 millz0r joined #salt
15:08 techdragon i like using salt to configure itself, setting a config option is pretty easy. having a well documented config option will fix my problem. But yes, i do agree if the PR is accepted, the next logical question is "should this be true by default"
15:09 kiorky techdragon: insane defaults are pretty evil
15:09 dwiden how do you specify a specific version for a dependency in a state file?
15:10 kiorky techdragon: i doubt something relies solely on retcodes nowodays, and if it relies on, anyways, it's buggued.
15:10 kiorky techdragon: as the only way to check execution is not the return code, but the combination of output/data and logs.
15:10 techdragon well given I consider the current implementation a less than perfect solution to the problem, I'm kinda hesitant to add the processing burden to everyones high state calls. If i wasn't iterating over a dict that could contain thousands and thousands of entries, id be more comfortable with true by default.
15:11 kiorky techdragon: i doubt you have 100k states per highstate
15:11 kiorky techdragon: and that's pretty fast to parse in python
15:12 kiorky techdragon: (dicts access, in one level will be fast)
15:12 techdragon kiorky its a 3 level dict, { host: { state: { return: true/false }}}
15:12 krow joined #salt
15:13 techdragon so theres some loop unpacking required, which is why I'm concerned about performance.
15:13 kiorky techdragon: that's one level check per host, and access is done by simple strings identifiers, that's fast. you can even make a bench if you want ;)
15:15 kiorky (will do just by curiosity,)
15:17 techdragon kiorky by all means, post some results in the PR, if the evidence backs up the performance, its much easier to say the code is fine for true as default
15:18 krow joined #salt
15:19 techdragon and on the topic of performance https://github.com/saltstack/salt/issues/10155 - recon its worth a Proof of Concept that enables a 'max minions' setting and simply ignores any additional minions. I mean the minion should be smart enough to find a new master from the pool and its certainly a config mode thats worth having implemented even if more advanced ones are added after
15:22 rostam joined #salt
15:22 zzzirk joined #salt
15:23 krow joined #salt
15:24 rgbkrk joined #salt
15:24 quickdry21 joined #salt
15:26 kaptk2 joined #salt
15:27 gadams999 left #salt
15:29 krow joined #salt
15:32 jergerber joined #salt
15:35 krow joined #salt
15:36 Saint-N joined #salt
15:36 Saint-N hrm
15:36 Saint-N so how exactly do i need to escape a sed command using cmd.run ?
15:37 cnelsonsic joined #salt
15:37 psyl0n joined #salt
15:39 gadams999 joined #salt
15:40 krow joined #salt
15:41 lpn Saint-N: maybe salt.modules.file.replace is more suitable? http://docs.saltstack.com/ref/modules/all/salt.modules.file.html#salt.modules.file.replace
15:44 babilen Do you, by chance, know how to use salt in vagrant in a setup *with* a master? I can only find information about the masterless setup and #vagrant is rather quiet.
15:44 Saint-N ooo lpn thanks that is a tad more handy
15:45 quickdry21 joined #salt
15:46 krow joined #salt
15:47 Katafalkas joined #salt
15:48 ipmb joined #salt
15:48 Katafalkas joined #salt
15:49 viq babilen: funny you should ask ;) https://github.com/viq/cm-lab-salt
15:50 babilen \o/
15:50 babilen viq: How would I use that? (I can read code, but it might be easier to just ask)
15:51 babilen Ah, no .. let me file an issue "Needs moar docs!"
15:51 viq babilen: that? 'vagrant up' once you have proper base boxes ;)
15:51 babilen Ah, splendid
15:51 viq babilen: it sets up an environment with multiple machines, configuring one of them as master and attaching others to it
15:52 babilen Ah, okay. That will come in handy later.
15:53 babilen thanks!
15:53 * babilen just beat vagrant into submission so it works with libvirt/kvm and is now tackling the salt test environment
15:53 viq uses insecure (well, same one) keys for all the machines, but hey, you're using vagrant, you're already doing the same for ssh ;)
15:53 alice|wl left #salt
15:53 viq babilen: ooooh, I would be interested in that part
15:53 alunduil joined #salt
15:54 babilen viq: The libvirt/kvm part?
15:54 viq yes
15:54 viq I tried some months back but gave up
15:54 babilen viq: Sure, I can talk you through it in #vagrant if you'd like
15:54 gadams999 left #salt
15:55 bhosmer joined #salt
15:55 viq babilen: please
15:56 justBob joined #salt
15:57 Gordonz joined #salt
15:57 krow joined #salt
15:59 Gordonz joined #salt
16:01 kballou joined #salt
16:02 jalbretsen joined #salt
16:04 gadams999 joined #salt
16:04 xmj joined #salt
16:05 jergerber joined #salt
16:07 jeremyBass joined #salt
16:08 krow joined #salt
16:08 rojem joined #salt
16:08 frasergraham joined #salt
16:14 krow joined #salt
16:15 jeremyfelt joined #salt
16:18 anuvrat joined #salt
16:19 krow joined #salt
16:21 ndrei joined #salt
16:23 bt joined #salt
16:25 krow joined #salt
16:27 Furao_ joined #salt
16:28 oz_akan_ joined #salt
16:30 krow joined #salt
16:31 dwiden joined #salt
16:31 dwiden is anyone familiar with the windows package manager?
16:34 luminous hello! I'm trying to use salt.client.Caller as noted here: https://github.com/saltstack/salt/blob/develop/salt/client/__init__.py#L1600  but it fails with https://dpaste.de/KV1V. this is using salt from git/develop. why is salt so unhappy with opts?
16:35 vejdmn joined #salt
16:36 krow joined #salt
16:40 bt joined #salt
16:42 krow joined #salt
16:42 luminous hah! so in this example code, salt ends up gettings opts >> path.. so path is opts, instead of /etc/salt/minion
16:43 mgw1 luminous: it looks like the docs are wrong
16:43 luminous yep
16:43 mgw1 Caller can do what the example shows
16:43 mgw1 just by passing the path into Caller()
16:44 luminous yes, but the how to merge file_client = local with the rest of /etc/salt/minion is wrong
16:44 mgw1 if you already had opts, you need to pass them in as mopts=
16:45 luminous ah, you would be correct
16:45 luminous that is the only problem there, it seems
16:46 * luminous still testing
16:47 krow joined #salt
16:47 psyl0n joined #salt
16:49 xmj left #salt
16:49 abe_music joined #salt
16:50 faldridge joined #salt
16:51 jcsp joined #salt
16:51 bt joined #salt
16:53 krow joined #salt
16:54 bt joined #salt
16:55 Linz joined #salt
16:57 bt joined #salt
16:58 krow joined #salt
16:59 bt joined #salt
17:00 bt joined #salt
17:03 bhosmer joined #salt
17:03 jnials joined #salt
17:04 krow joined #salt
17:05 leo joined #salt
17:05 bt joined #salt
17:06 Gifflen joined #salt
17:09 krow joined #salt
17:10 leo Hi folks,
17:10 leo I'm trying to setup new Vagrant box but couple of my recipes need to grains. Is there a way to set grains in Vagrant file? I couldn't see any method in here https://github.com/saltstack/salty-vagrant/blob/develop/lib/vagrant-salt/provisioner.rb
17:15 krow joined #salt
17:17 pdayton joined #salt
17:20 bemehow joined #salt
17:22 dwiden joined #salt
17:22 dccc joined #salt
17:23 bt joined #salt
17:27 krow joined #salt
17:27 bt joined #salt
17:30 kiorky techdragon: [PROCESSING 1 SAMPLES] finished in 0.0120129585266s
17:30 kiorky [PROCESSING 10 SAMPLES] finished in 0.213839054108s
17:30 kiorky [PROCESSING 100 SAMPLES] finished in 2.12201309204s
17:30 kiorky techdragon: and the test is now going for more samples
17:30 kiorky techdragon: https://gist.github.com/9052549.git
17:31 kiorky https://gist.github.com/kiorky/9052549
17:31 kiorky oups
17:34 hunter joined #salt
17:35 rojem joined #salt
17:36 Katafalkas joined #salt
17:37 krow joined #salt
17:42 Mua__ joined #salt
17:43 bhosmer joined #salt
17:49 krow joined #salt
17:49 gadams9991 joined #salt
17:52 rojem joined #salt
17:53 rojem joined #salt
17:53 rojem joined #salt
17:54 bhosmer joined #salt
17:54 krow joined #salt
17:56 pythopticon joined #salt
18:00 krow joined #salt
18:00 troyready joined #salt
18:01 pythopticon joined #salt
18:05 krow joined #salt
18:11 krow joined #salt
18:14 chrisjones joined #salt
18:15 TheRealBill joined #salt
18:16 krow joined #salt
18:19 faef joined #salt
18:21 gmtech Yoyoyo
18:21 gmtech Does anyone have a good salt how to for UFW ?
18:21 hunter joined #salt
18:22 krow joined #salt
18:27 luminous gmtech: as in: ufw allow salt? provided you have the files in /etc/ufw/applications.d (or whatever that directory is) ?
18:27 gmtech No - we use UFW to manage firewalls for our apps (which are set up by salt) e.g. an app connecting to a observer requires the db port open on the observer, which we do through UFW traditionally. Has anyone written a good UFW module, or is it iptables only?
18:27 krow joined #salt
18:29 luminous gmtech: ah, yes. I haven't seen a module/state, myself.. though I have been watching for one. I've done some research into what would be needed, and it would not be difficult (the ufw python module is pretty clear for simple stuff), but it takes time I haven't made for it yet
18:29 acabrera joined #salt
18:29 gmtech ah ok thanks
18:30 luminous gmtech: I've tried some of this with cmd.run, but it sucks. a module/state should be made for this
18:32 vejdmn joined #salt
18:33 krow joined #salt
18:38 faef is there any reason why you would want to load a module with virtual_enable off ?
18:39 krow joined #salt
18:41 jnials joined #salt
18:41 nextdoorwarren joined #salt
18:42 faldridge joined #salt
18:44 krow joined #salt
18:45 cachedout joined #salt
18:46 Ryan_Lane joined #salt
18:48 troyready joined #salt
18:49 ajw0100 joined #salt
18:50 krow joined #salt
18:55 krow joined #salt
18:57 linjan_ joined #salt
18:59 seblu joined #salt
19:01 krow joined #salt
19:02 ipmb joined #salt
19:05 rojem joined #salt
19:06 krow joined #salt
19:07 schimmy joined #salt
19:12 krow joined #salt
19:16 kermit joined #salt
19:17 Gordonz_ joined #salt
19:18 krow joined #salt
19:20 Gordonz__ joined #salt
19:23 krow joined #salt
19:25 sporked_ joined #salt
19:26 guest_towel joined #salt
19:30 njpatel joined #salt
19:32 vejdmn joined #salt
19:34 Gordonz joined #salt
19:34 krow joined #salt
19:35 Gordonz joined #salt
19:40 jtang1 joined #salt
19:40 krow joined #salt
19:40 Ryan_Lane joined #salt
19:44 ndrei joined #salt
19:44 akoumjian joined #salt
19:45 krow joined #salt
19:48 musinsky joined #salt
19:48 samkottler joined #salt
19:49 acabrera ot: I'm trying to figure out how to setup DNS such that if I "ssh adc@go" it is equivalent to "ssh adc@go.foo.bar.com"
19:49 acabrera How do I get that to work?
19:50 acabrera s/go/salt/
19:51 krow joined #salt
19:52 scoates acabrera: read up on ssh_config ; that's the best way (a host alias) IMO
19:52 acabrera I'd rather have it in DNS
19:52 acabrera then I can point it to the salt master
19:52 acabrera Less configuration in salt minions that way
19:53 scoates ah. you'll need to learn to set up a DNS server + zones, then… or use a service.
19:54 acabrera it seems /etc/resolv.conf
19:56 valgrind joined #salt
19:56 rawtaz cant one control the contents of /etc/hosts for that?
19:56 viq acabrera: 'search' or 'domain' in /etc/resolv.conf
19:56 rawtaz ah resolv.conf
19:56 rawtaz never mind me
19:57 krow joined #salt
19:57 rawtaz how well does salt work for managing macs? is it stable and works fine?
19:58 rawtaz Macs, that is
19:58 rawtaz OS X
19:58 d10n joined #salt
20:02 krow joined #salt
20:07 hunter joined #salt
20:08 krow joined #salt
20:13 krow joined #salt
20:14 troyready joined #salt
20:15 n0c joined #salt
20:15 n8n joined #salt
20:16 schimmy joined #salt
20:16 n8n joined #salt
20:16 joehoyle joined #salt
20:17 dvogt joined #salt
20:17 n8n joined #salt
20:19 krow joined #salt
20:25 krow joined #salt
20:29 scott_w_ joined #salt
20:30 krow joined #salt
20:36 krow joined #salt
20:40 pdayton left #salt
20:41 it_dude joined #salt
20:42 krow joined #salt
20:44 gadams999 joined #salt
20:45 it_dude joined #salt
20:46 res0_ joined #salt
20:47 res0nat0r joined #salt
20:47 krow joined #salt
20:47 xmltok_ joined #salt
20:49 diegows joined #salt
20:51 kballou joined #salt
20:51 rojem joined #salt
20:52 krow joined #salt
20:55 schimmy joined #salt
20:57 nextdoorwarren joined #salt
20:58 cewood joined #salt
20:58 krow joined #salt
20:59 hunter joined #salt
21:04 krow joined #salt
21:10 krow joined #salt
21:10 bemehow joined #salt
21:11 xmltok joined #salt
21:15 forrest joined #salt
21:16 gnugnu5 joined #salt
21:17 acabrera joined #salt
21:20 njpatel_ joined #salt
21:23 david_a joined #salt
21:24 dvogt joined #salt
21:26 Kenzor joined #salt
21:29 dancat joined #salt
21:29 alekibango joined #salt
21:33 zzzirk joined #salt
21:33 leo joined #salt
21:33 Ryan_Lane joined #salt
21:35 Kraln joined #salt
21:36 Hefeweizen joined #salt
21:37 kballou joined #salt
21:37 joehoyle joined #salt
21:38 yomilk joined #salt
21:42 Ryan_Lane joined #salt
21:42 krow1 joined #salt
21:42 ckao joined #salt
21:44 PolarBearRobot joined #salt
21:47 acabrera joined #salt
21:47 krow joined #salt
21:53 ajw0100 joined #salt
21:53 zz_cro joined #salt
21:56 n8n joined #salt
21:57 frasergraham I'm trying to wrap my head around matching grains and I have some questions...
21:58 frasergraham Can I apply grains to a minion based on hostname from the master. e.g. I have 30 machines and I want to define 5 of them as dev and 25 as production
21:58 ahammond what can I do in the rval of a set assignment? I'd like to do something like {% set foo = 'bar {0} morebar'.format('baz') %} and end up with {{ foo }} rendering "bar baz morebar"
21:58 frasergraham instead of setting an env value in each minion i'd like to just maintain a list on the master
21:58 krow joined #salt
22:01 Eugene frasergraham - that's what Pillars are for
22:01 frasergraham ok, i havent read that far in the docs yet. Just learning
22:02 Eugene Then read on.
22:03 psyl0n joined #salt
22:03 rawtaz oh Eugene
22:03 Eugene Oh me.
22:04 rawtaz :)
22:04 rawtaz didnt know you were such a salty guy
22:04 rawtaz but now i do!
22:04 krow joined #salt
22:04 Eugene I am everywhere, and I am nowhere.
22:05 frasergraham If I have a grain that's a list, can I match agains all grains that contain a certain item in that list?
22:06 chrisjones joined #salt
22:06 schimmy joined #salt
22:06 N-Mi joined #salt
22:08 panda joined #salt
22:09 yomilk joined #salt
22:12 Eugene Do you mean machines which match that?
22:15 ahammond how do I to basic string formatting / concatenation with {% set = %} ?
22:15 frasergraham i have a grain on my minion which is a list of keywords, how to I match a state to all minions that contain a particular keyword in that grain
22:19 ahammond ok, % formatting works, but I wonder if .format() will work instead... because... it's more pretty
22:21 meteorfox joined #salt
22:24 Eugene frasergraham - http://docs.saltstack.com/ref/modules/all/salt.modules.grains.html#salt.modules.grains.has_value
22:24 scott_w_ joined #salt
22:26 frasergraham how do I use that in an sls file?
22:27 frasergraham If I have a grain called 'roles', should I not be able to run : salt 'roles:celery' test.ping  to ping all minions that have "celery" in their roles list?
22:27 frasergraham (forgive my newbie questions, I'm finding the docs somewhat hard to navigate)
22:28 scott_w__ joined #salt
22:30 schimmy joined #salt
22:30 joehillen joined #salt
22:32 JasonSwindle joined #salt
22:37 juicer2 left #salt
22:40 krow joined #salt
22:40 N-Mi joined #salt
22:40 N-Mi joined #salt
22:41 EntropyWorks joined #salt
22:45 mgw1 frasergraham, i'm not sure you can do what you're asking, but you do need the -G flag to target based on grains
22:45 dccc joined #salt
22:45 frasergraham oh, ok - that makes my command line work as expected. thanks
22:48 leo2 joined #salt
22:50 acabrera joined #salt
22:51 krow joined #salt
22:57 frasergraham I'm finding this confusing:
22:57 frasergraham https://salt.readthedocs.org/en/latest/topics/targeting/grains.html#matching-grains-in-the-top-file
22:57 krow joined #salt
22:58 frasergraham what is it that does the grain matching in the top file? This example grains listed above don't have a "node_type". Is this just a case of mis-matching documentation or am I missing something?
22:59 schimmy joined #salt
23:00 frasergraham ok, I think I understand now. The - match: grain entry in the top.sls is like the -G on the command line and says to use grans when matching - is that a fair interpretation?
23:01 kermit joined #salt
23:02 krow joined #salt
23:04 Ryan_Lane frasergraham: yep
23:10 krow joined #salt
23:12 Gifflen_ joined #salt
23:21 krow joined #salt
23:25 ndrei joined #salt
23:26 Ryan_Lane1 joined #salt
23:32 krow joined #salt
23:33 jtang1 joined #salt
23:43 krow joined #salt
23:49 leo joined #salt
23:51 vejdmn joined #salt
23:54 krow joined #salt

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