Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-03-25

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

All times shown according to UTC.

Time Nick Message
00:03 ndrei joined #salt
00:04 Luke_ joined #salt
00:08 bhosmer joined #salt
00:08 gjaber I dont follow
00:09 manfred allanparsons: save the virtualenv name as a grain once you generate it
00:10 allanparsons argh. ok.
00:10 yomilk joined #salt
00:11 karc_ joined #salt
00:13 srage joined #salt
00:20 allanparsons i probably shouldnt have done nested yaml
00:20 allanparsons it makes it quite messy
00:21 allanparsons i probably should have done one yaml file per app
00:21 allanparsons and then included multiple yaml files
00:21 allanparsons oh well
00:23 premera joined #salt
00:28 fridiculous joined #salt
00:28 fridiculous does anyone know the best way to up date minion configurations through salt-cloud?
00:28 baniir joined #salt
00:30 fridiculous i'm looking at cloud.profiles but can't find where a minion configuration would enter
00:32 manfred fridiculous: those won't update them after the fact, if the server exists, it is happy
00:33 fridiculous manfred, so would you recommend updating minions configuration module using sometime like cmd.run?
00:34 * manfred doesn't remember is minion.d is a thing but would probably try dropping files in /etc/salt/minion.d/ using file.managed
00:35 bhosmer joined #salt
00:35 redondos joined #salt
00:35 redondos joined #salt
00:36 manfred if not, then file.append /etc/salt/minion
00:42 fridiculous i'm not sure how i missed this: http://salt.readthedocs.org/en/latest/topics/cloud/config.html#minion-configuration
00:43 manfred oh yeah, you can configure them if you setup a /etc/salt/cloud.profiles.d/ and put minion information in there
00:43 manfred super usefull for stuff like mine_functions
00:43 jcsp joined #salt
00:46 dman777 joined #salt
00:48 tr_h joined #salt
00:51 rojem joined #salt
00:51 gkze joined #salt
00:57 tr_h joined #salt
00:57 fllr joined #salt
00:59 mgw joined #salt
01:00 fridiculous thanks manfred
01:00 manfred np
01:04 StDiluted joined #salt
01:05 n8n joined #salt
01:07 n8n_ joined #salt
01:15 bhosmer joined #salt
01:15 kickerdog joined #salt
01:22 fragamus joined #salt
01:23 younqcass joined #salt
01:24 gkze joined #salt
01:24 napper2 joined #salt
01:26 wendall911 joined #salt
01:26 nocturn joined #salt
01:27 Nazzy_ joined #salt
01:28 jcsp1 joined #salt
01:32 redondos joined #salt
01:38 scoates is there a way to remove routes with this? https://github.com/saltstack/salt/blob/develop/salt/states/network.py#L310 the docs (and source) are unclear
01:42 thayne joined #salt
01:43 mgw joined #salt
01:43 DaveQB joined #salt
01:44 cetex joined #salt
01:44 ipalreadytaken joined #salt
01:46 taion809 joined #salt
01:49 srage joined #salt
01:52 redondos joined #salt
01:52 redondos joined #salt
01:52 allanparsons how do i pass multiple args to cmd.script module?
01:52 allanparsons within a state file?
01:55 Gordonz joined #salt
01:56 dave_den allanparsons: as - args: 'arg1 arg3 "some arg with a space"'
01:56 Gordonz joined #salt
01:57 allanparsons i ended up having to do:  args=' %s %s ' % (repository_url,revision)
01:57 dave_den ah
01:58 schimmy joined #salt
01:58 dave_den it just passes it to the cmdmod.script execution module as a kwarg
02:00 beardo_ joined #salt
02:00 rome joined #salt
02:01 schimmy1 joined #salt
02:01 cetex joined #salt
02:02 allanparsons hm
02:02 allanparsons maybe b/c i had some special characters in one of the args
02:03 rome joined #salt
02:03 hardwire joined #salt
02:05 dave_den could be. you still need to make sure yaml doesn't mess with it
02:07 cetex joined #salt
02:09 redondos_ joined #salt
02:12 allanparsons yeah, my yaml doesnt fuck w/ it
02:13 l0x3py joined #salt
02:14 redondos joined #salt
02:15 redondos joined #salt
02:20 cetex joined #salt
02:31 Networkn3rd joined #salt
02:33 rome joined #salt
02:37 redondos joined #salt
02:41 rome joined #salt
02:44 schimmy joined #salt
02:47 pentabular joined #salt
02:53 cetex joined #salt
03:00 cetex joined #salt
03:14 redondos_ joined #salt
03:15 pentabular left #salt
03:16 pentabular joined #salt
03:17 coral__ joined #salt
03:18 coral__ left #salt
03:18 allanparsons joined #salt
03:19 allanparsons is there a way to cache pip packages in virtual environments?
03:19 allanparsons i ask because it takes forever to install numpy (it compiles)
03:21 coral__ joined #salt
03:22 rushm0r3 joined #salt
03:24 ipalreadytaken joined #salt
03:24 ravibhure joined #salt
03:27 srage_ joined #salt
03:28 cetex joined #salt
03:32 Ryan_Lane joined #salt
03:34 cetex joined #salt
03:41 cetex joined #salt
03:41 TyrfingMjolnir joined #salt
03:42 redondos joined #salt
03:42 redondos joined #salt
03:46 cetex joined #salt
03:51 justlooks_ joined #salt
03:52 redondos joined #salt
03:52 redondos joined #salt
03:52 dvogt_ joined #salt
03:57 cetex joined #salt
04:01 justlooks_ where i can find salt and it's dependency rpm package used on rhel5.5?
04:06 yomilk joined #salt
04:11 n8n joined #salt
04:16 dvogt joined #salt
04:16 Linz joined #salt
04:19 manfred epel
04:19 manfred all of the depends should be in there too since it uses python26
04:20 cetex joined #salt
04:20 zain_ joined #salt
04:22 n8n joined #salt
04:27 yomilk joined #salt
04:31 thayne joined #salt
04:38 dimeshake joined #salt
04:39 anuvrat joined #salt
04:47 cetex joined #salt
04:53 flebel joined #salt
05:02 redondos joined #salt
05:03 redondos_ joined #salt
05:05 redondo__ joined #salt
05:06 redondos joined #salt
05:06 redondos joined #salt
05:15 redondos joined #salt
05:21 redondos joined #salt
05:21 redondos joined #salt
05:27 StDiluted joined #salt
05:35 redondos joined #salt
05:35 elfixit joined #salt
05:39 redondo__ joined #salt
05:40 justlooks_ manfred: but i can not find openpgm in epel 5.5 repo
05:41 redondos joined #salt
05:44 redondos_ joined #salt
05:46 redondos joined #salt
05:49 redondos_ joined #salt
05:50 redondo__ joined #salt
05:54 redondos joined #salt
05:55 redondos_ joined #salt
05:57 redondo__ joined #salt
06:00 redondos joined #salt
06:03 redondo__ joined #salt
06:09 allanparsons is it possible to use vars in pillar like this?
06:09 allanparsons https://github.com/saltstack-formulas/apache-formula/blob/master/pillar.example
06:10 allanparsons i get errors in 2014.1 complaining
06:11 allanparsons "Jinja variable 'id' is undefined; line 29"
06:12 ChaosPsyke joined #salt
06:14 justlooks_ allanparsons: where is you id defined?
06:17 allanparsons in standard.sls, justlooks_  : https://github.com/saltstack-formulas/apache-formula/blob/master/apache/vhosts/standard.sls
06:18 allanparsons and it's using a template:  https://github.com/saltstack-formulas/apache-formula/blob/master/apache/vhosts/standard.tmpl
06:18 smcquay joined #salt
06:23 justlooks_ allanparsons: it's a not good idea to define a pillar in state file
06:23 allanparsons saltstack-formulas team did it!
06:23 allanparsons i was just re-using their template!
06:31 fllr joined #salt
06:35 n8n joined #salt
06:39 scarcry anyone here running salt 2014.1.0 on SmartOS? I do a pkg.search from the master on 1 SmartOS minion for nginx (of which there are 2 available versions) but only 1 (the oldest) match is returned. I've tried: salt <target> pkg.search nginx and pkg.latest_version nginx. when I search for nginx directly on the minion 2 available nginx packages are returned
06:41 scarcry only pkg.search actually returns 1 match, pkg.latest_version doesn't return any available packages for install strangely enough
06:42 scarcry YESSS: please turn off your automatic private msg function, it's really annoying
06:43 yomilk joined #salt
06:47 redondos joined #salt
06:48 hotsnow joined #salt
06:49 redondos_ joined #salt
06:50 hotsnow when i start salt on windows, it always report: GetProcessTimes() failed:
06:52 redondos joined #salt
06:52 redondos joined #salt
06:55 redond___ joined #salt
06:58 hotsnow version 0.17.5-2 and 2014.1 report the same error, on windows 2003 sp2
06:59 Furao joined #salt
06:59 ajw0100 joined #salt
07:00 redondos joined #salt
07:01 fllr joined #salt
07:01 redondos_ joined #salt
07:03 redondo__ joined #salt
07:03 fllr joined #salt
07:05 redond___ joined #salt
07:08 redondos_ joined #salt
07:10 gammalget joined #salt
07:11 redondos joined #salt
07:15 redondos_ joined #salt
07:16 redondos joined #salt
07:18 redondo__ joined #salt
07:19 fllr joined #salt
07:21 _fllr_ joined #salt
07:21 redondos_ joined #salt
07:22 Kenzor joined #salt
07:22 anuvrat joined #salt
07:23 redondos joined #salt
07:23 redondos joined #salt
07:24 roolo joined #salt
07:26 redondos_ joined #salt
07:29 redondo__ joined #salt
07:31 ndrei joined #salt
07:31 redondos_ joined #salt
07:32 redondos joined #salt
07:34 redond___ joined #salt
07:35 yomilk joined #salt
07:39 redondos_ joined #salt
07:39 Katafalkas joined #salt
07:40 dave_den joined #salt
07:55 carlos joined #salt
07:57 dman777 joined #salt
08:01 tinuva joined #salt
08:03 Iwirada joined #salt
08:03 FL1SK joined #salt
08:05 l0x3py joined #salt
08:09 balboah joined #salt
08:10 redondos joined #salt
08:11 rojem joined #salt
08:11 Nazzy_ joined #salt
08:12 redondos_ joined #salt
08:12 MrTango joined #salt
08:13 flebel joined #salt
08:13 zz_cro joined #salt
08:13 redondo__ joined #salt
08:14 harobed_ joined #salt
08:18 lkijfdkj joined #salt
08:18 redondos joined #salt
08:20 redondos_ joined #salt
08:21 ipalreadytaken joined #salt
08:22 redondo__ joined #salt
08:24 redondos joined #salt
08:24 carlos_ joined #salt
08:25 redondos_ joined #salt
08:27 ndrei joined #salt
08:27 redondos_ joined #salt
08:31 redondo__ joined #salt
08:33 redondos_ joined #salt
08:34 redondos joined #salt
08:36 lkijfdkj joined #salt
08:38 dvogt joined #salt
08:40 yomilk joined #salt
08:40 redondos_ joined #salt
08:42 redondos joined #salt
08:43 Iwirada left #salt
08:45 giantlock joined #salt
08:45 redondo__ joined #salt
08:47 redondos_ joined #salt
08:48 mortis i've tried just about anything to get ext_pillars to work with git, but it seems to fail no matter what i do
08:48 mortis in 2014.1.0
08:49 Furao left #salt
08:49 mortis manually cloning works fine
08:49 redondos joined #salt
08:50 mortis tried git, git+ssh, with and without root=something, with and without user in string
08:51 redondo__ joined #salt
08:52 mortis this is weird
08:53 mortis guess i'll start reading issues on github :)
08:53 redondos_ joined #salt
08:55 carlos_ joined #salt
08:55 think-free joined #salt
08:55 redondos joined #salt
08:55 ggoZ joined #salt
08:57 topochan joined #salt
08:57 redondo__ joined #salt
08:59 redondos joined #salt
09:00 Iwirada joined #salt
09:01 redondos joined #salt
09:03 bizboo joined #salt
09:03 redondos_ joined #salt
09:05 redondos_ joined #salt
09:06 redondos joined #salt
09:08 elfixit joined #salt
09:08 younqcass joined #salt
09:08 redondos joined #salt
09:10 redondos_ joined #salt
09:12 redondos joined #salt
09:12 yomilk joined #salt
09:12 anuvrat joined #salt
09:14 redondos_ joined #salt
09:16 redondos_ joined #salt
09:18 redondos joined #salt
09:19 fllr joined #salt
09:20 redondos joined #salt
09:21 fllr joined #salt
09:21 redondos_ joined #salt
09:23 redondo__ joined #salt
09:25 redondos joined #salt
09:25 redondos joined #salt
09:27 redondos_ joined #salt
09:29 redondo__ joined #salt
09:30 eliasp joined #salt
09:30 redondos joined #salt
09:32 redondos joined #salt
09:35 redondos_ joined #salt
09:36 redondo__ joined #salt
09:38 redondos joined #salt
09:40 redondos joined #salt
09:41 che-arne joined #salt
09:42 redondos_ joined #salt
09:42 wunki joined #salt
09:43 wunki In 2014.1.1, this stopped working for me: {% if salt['grains.get']('domain').endswith('example.com') %} in Jinja. Was there a change I missed?
09:44 redondos_ joined #salt
09:46 redondos joined #salt
09:48 redondo__ joined #salt
09:50 redondos_ joined #salt
09:50 mike25ro joined #salt
09:52 redondos joined #salt
09:54 redondos_ joined #salt
09:56 redondo__ joined #salt
09:57 redondos joined #salt
09:58 Calum joined #salt
09:59 scalability-junk joined #salt
09:59 redondos_ joined #salt
10:02 redondo__ joined #salt
10:03 redondos joined #salt
10:04 bhosmer joined #salt
10:04 MedicalJaneParis joined #salt
10:05 redondos_ joined #salt
10:06 wunki hmmm, it seems that the minion is getting the 'grain' values from the master. But only for template rendering, `salt-call grains.get domain` is the domain of the minion...
10:07 herzi hmmm… I just rebooted my salt-master and not I'm getting this when trying to run salt commands:
10:07 herzi Failed to authenticate, is this user permitted to execute commands?
10:07 redondo__ joined #salt
10:07 herzi (even when I run 'salt' as root)
10:07 mike25ro what user is your salt-master running as?
10:07 johtso joined #salt
10:08 mike25ro ah right
10:08 mike25ro you should run salt as root .. as far as i can remember...
10:08 mike25ro i might be wrong...
10:08 herzi salt-master is running as root (as well)
10:09 mike25ro can you try and run the minion as salt-minion -l debug? (not as a daemon)
10:09 redondos joined #salt
10:10 ipalreadytaken joined #salt
10:10 TyrfingMjolnir joined #salt
10:11 herzi well… the hostname on the master changed, can this be related to the error?
10:11 redondos_ joined #salt
10:13 redondo__ joined #salt
10:13 herzi mike25ro: I do, I don't see anything related to this
10:15 herzi strange
10:15 redondos joined #salt
10:15 herzi when I 'invoke-rc.d salt-master stop'
10:15 herzi and run 'salt-master -l debug'
10:15 herzi things suddently start to work
10:15 herzi *suddenly
10:17 redondos_ joined #salt
10:17 herzi anyway, thanks for the help
10:17 herzi @basepi: Can you please kickban YESSS? He's /privmsg-spamming me every time I write a message
10:18 redondo__ joined #salt
10:19 babilen What are good approaches to upgrading all my minions to a new salt-minion version? (i.e. 2014.1.0 to 2014.1.1 )
10:19 fllr joined #salt
10:20 redondos joined #salt
10:22 redondos_ joined #salt
10:22 hhenkel Hi all, is there a way to add more items to a pillar list?
10:23 babilen hhenkel: You mean extending a pillar?
10:23 hhenkel For example I got a section "common" where I set some common roles. In a host specific file I want to add some more roles.
10:23 babilen hhenkel: Not possible
10:23 hhenkel babilen: okay, any known work around? :)
10:24 redondos joined #salt
10:25 babilen hhenkel: I am not 100% sure what the current situation is, but this is a common request and there are multiple issue reports about this on github, but apparently nobody upstream deemed it important enough to implement this. The seminal ticket is: https://github.com/saltstack/salt/issues/2466#
10:25 hhenkel basepi: Would you please kick YESSS ? I recieved cam spam via query.
10:26 redondos joined #salt
10:26 redondos joined #salt
10:26 hhenkel babilen: okay, I'll guess I have to figure out a different way then for the moment. Thanks.
10:27 babilen hhenkel: One way you can deal with this is to not use lists in your pillars, but to use dictionaries which requires PR #9184 ... you could then use "FOO: True" or so in your pillars to enable/disable "FOO" in a "list"
10:27 babilen hhenkel: I am not sure if that pull request actually made it into a release.
10:28 redondos_ joined #salt
10:28 babilen I have to confess that I don't quite understand salt's development model as it seems that "dev" and current releases can differ substantially, so I am never sure if a fix already made it into a release ;)
10:29 hhenkel babilen: Thanks, I'm afk for now (lunch) will look into it later on.
10:30 babilen hhenkel: Sure, enjoy your lunch!
10:30 redondos_ joined #salt
10:31 redondos joined #salt
10:31 redondos joined #salt
10:32 ndrei joined #salt
10:33 babilen Oh, it looks as if progress is being made: https://github.com/saltstack/salt/pull/10625
10:33 redondo__ joined #salt
10:34 babilen Does this channel have a bot with an "ops" command to alert people on its ACCESS list?
10:36 redondos_ joined #salt
10:37 redondos joined #salt
10:39 redondos joined #salt
10:39 redondos joined #salt
10:41 redondos_ joined #salt
10:43 redondo__ joined #salt
10:45 redondos joined #salt
10:47 redondos joined #salt
10:49 redondos joined #salt
10:51 redondos_ joined #salt
10:52 wunki Somehow, in Jinja templates, {{ salt['grains.get']('id') }} always returns 'None' for me
10:53 redondo__ joined #salt
10:53 wunki while running `salt-call grains.get id` on the commandline returns the right id
10:54 redondos joined #salt
10:56 redondos_ joined #salt
10:58 redondo__ joined #salt
10:58 munhitsu_ hi there
10:58 munhitsu_ any pros/cons to create salt master from salt-cloud?
10:58 hhenkel babilen: Okay, that looks promising.
10:59 ggoZ wunki: why dont you use grains build-in variable ?
11:00 wunki ggoZ: what do you mean?
11:00 redondos joined #salt
11:00 hhenkel basepi: Allready sent you an mail regarding re-opening of https://github.com/saltstack/salt/issues/8428 as I did not recieve any notice so far I decided to open a new issue pointing to the old: https://github.com/saltstack/salt/issues/11230
11:02 redondos joined #salt
11:02 wunki ggoZ: {{ grains.get('domain') }} you mean?
11:03 seblu joined #salt
11:04 redondos joined #salt
11:06 redondos joined #salt
11:08 redondos_ joined #salt
11:10 redondo__ joined #salt
11:10 ggoZ wunki: yes
11:10 ggoZ yes, I mean grains.get
11:11 redondos joined #salt
11:13 redondos joined #salt
11:15 redondos_ joined #salt
11:18 redondo__ joined #salt
11:19 wunki ggoZ: is that the recommended way to do it?
11:19 fllr joined #salt
11:22 redondos_ joined #salt
11:24 redondos_ joined #salt
11:26 redondos joined #salt
11:27 Psi-Jack Uhhh.. grains.get? No, salt['grains.get']('domain', []) or similar. grains.get is a function that the salt function facilitates.
11:27 Psi-Jack Apparently there's a spambot in the channel, YESSS.
11:27 jeremyBass joined #salt
11:27 redondo__ joined #salt
11:28 Psi-Jack yano: Handy?
11:29 Psi-Jack or Corey? :)
11:29 redondos_ joined #salt
11:31 redondos joined #salt
11:33 redondos joined #salt
11:35 redondos_ joined #salt
11:37 redondo__ joined #salt
11:37 hhenkel Anyone aware of the planned release cycle? Therefore any idea when 2014.2 is planned to be released?
11:38 joehh hhenkel: not sure when, but it is now year.month based, so a guess might be 2014.7
11:38 redondos joined #salt
11:38 joehh but maybe they want to be more regular than that
11:40 MrTango joined #salt
11:40 redondos_ joined #salt
11:41 hhenkel joehh: Ah, I was guessing it will be 2014.2 as 2014.1 was released on 2014-02-24
11:41 hhenkel ;)
11:42 redondo__ joined #salt
11:42 ChaosPsyke Hi guys, how can I check if a DB does not exist using a salt template? I have the following {% if not salt['mysql.db_exists']('dbname')%}. But evenin if I run it manually I get the following error "'mysqldb_exists' is not available."
11:42 Psi-Jack basepi: Anyway, bot in channel, YESSS, spambot.
11:42 babilen What is a good way to manage upgrades of salt-minion on my minions?
11:43 Calum joined #salt
11:43 joehh hhenkel: yeah - I think the month is based on when they branch for the release candidates
11:43 joehh I also think the process took longer than they expected :)
11:43 Psi-Jack babilen: Hehe. THAT is the ultimate question of questions.
11:44 redondos joined #salt
11:44 hhenkel Psi-Jack: Allready wrote that to basepi, no reaction so far - I guess other timezone...
11:44 gadams999 joined #salt
11:44 babilen Psi-Jack: Well, it is an actual need and I figured that there are some established approaches to this.
11:44 Psi-Jack hhenkel: Not a lot of people awake yet. I figure the people I flagged may /lastlog when they see they were contacted. :)
11:44 ggoZ (01:27:17 PM) Psi-Jack: Uhhh.. grains.get? No, salt['grains.get']('domain', []) or similar. grains.get is a function that the salt function facilitates.
11:45 babilen hhenkel: There are more people on the ACCESS list, but this channel does not seem to have a bot that can be used to highlight them all.
11:45 ggoZ Do you mean that nowadays grains are accessed through salt[''] call ?
11:45 hhenkel babilen: ah, okay.
11:45 Psi-Jack ggoZ: I've never seen it used, nor documented in the suggested fasion of {{ grains.get['blah'] }}. only as salt['grains.get']('grainname', defaultvalue)
11:46 babilen I am also under the impression as if ops in this channel are mostly living in the same timezone (common problem for newly established channels) -- but then this is getting a bit off-topic
11:47 redondos_ joined #salt
11:49 hhenkel babilen: regarding the stuff with the dicitionaries you mentioned earlier on...not sure if I get it. Can you provide an example for a pillar "roles" with multiple entries?
11:49 redondos joined #salt
11:50 Psi-Jack pillar, for roles? Hmmm.. I've always used grains for roles, environment, etc etc etc.
11:51 redondo__ joined #salt
11:51 ndrei joined #salt
11:51 babilen hhenkel: http://paste.debian.net/89678/ something along those lines .. As pillars are combined and *if* the aforementioned finally made it into a release they should be merged
11:51 diegows joined #salt
11:52 babilen It's ugly, but AFAICT, the only way to extend pillars at this point.
11:52 babilen (if you don't want to use things like reclass)
11:52 cSc` joined #salt
11:52 cSc` Hmm?
11:53 fragamus joined #salt
11:53 redondos joined #salt
11:53 hhenkel babilen: I'll give it a try and hope that there soon will be a release with the other change you mentioned.
11:55 redondos_ joined #salt
11:55 jbroome joined #salt
11:55 hhenkel So, seems like the spam bot has quit...
11:55 babilen hhenkel: I gave up on this approach and simply use more logic in my pillars. (e.g. http://paste.debian.net/89681/ )
11:55 jeremyBass left #salt
11:56 Psi-Jack hhenkel: Oh? What was the quit message?
11:56 babilen hhenkel: I complained about it in the right channels
11:56 babilen It has been k-lined
11:56 Psi-Jack babilen: I did too, #freenode. ;)
11:56 jbroome left #salt
11:56 Psi-Jack Cool. I have joins/parts/quits filtered.
11:56 redondo__ joined #salt
11:57 toastedpenguin joined #salt
11:58 redondos joined #salt
11:58 babilen So, there isn't an established way to upgrade the salt-minion version on my minions? I am not sure how they'll behave if I let them upgrade themselves ...
11:58 ipalreadytaken joined #salt
11:59 cSc` left #salt
12:00 Psi-Jack babilen: Not good. :)
12:00 redondos_ joined #salt
12:00 Psi-Jack At my company, we've experienced MANY issues with mismatched versions of salt, more than we like. And we're starting to pin versions so that upgrades are never automated or accidental.
12:01 Psi-Jack We're still on salt 0.17.4 because 2014.1 introduced even more showstopping bugs that prevents us from upgrading.
12:01 babilen Psi-Jack: But how *do* you do upgrades? I mean I can naturally log into the minions, multiplex that with pssh, use salt cmd.run, ... many different approaches
12:02 Psi-Jack But, for automated updates, the best solution I've found to handling that is: Write a salt state to setup an at job that waits 10 minutes and restarts salt-minion, then in the same state, upgrade  salt-minion packages after at is setup, THEN you may experience a little sting.
12:02 Psi-Jack cmd.run by itself /will/ fail.
12:03 redondos_ joined #salt
12:03 babilen ack
12:03 Psi-Jack heh
12:03 babilen s/ack/sigh ;)
12:03 hhenkel babilen: Okay, that approach looks also interesting. I'm not sure if I want a single file with all host roles in it.
12:03 Psi-Jack We have a love/hate for salt, but we love it slightly more than hate it.
12:03 redondos_ joined #salt
12:03 babilen haha
12:04 hhenkel babilen: Currently my idea is to have a "common" part that is used for all hosts (dns ntp and stuff) and a host specific file.
12:04 BullShark joined #salt
12:04 BullShark i've been told this is a good place to check my spam filters are working well
12:05 BullShark fire away
12:05 redondos joined #salt
12:05 redondos joined #salt
12:07 redondos_ joined #salt
12:07 babilen hhenkel: I understand you perfectly, but it is just not supported at the moment. There are tools such as reclass (http://reclass.pantsfullofunix.net/) that can act as external pillar, but I am not using it as it is a bit disconnected from the rest of salt (how to use grains? normal salt states?)
12:08 ChaosPsyke Ignore my question above, I was being an idiot (facepalm)
12:08 Gifflen joined #salt
12:09 redondo__ joined #salt
12:10 hhenkel babilen: With 2014.1 your dictionary approach seems to work.
12:11 redondos joined #salt
12:11 redondos joined #salt
12:11 babilen hhenkel: Oh, nice. I had to patch 0.17.5 explicitly ... I still don't really like it and would much more prefer functionality as outlined in https://github.com/saltstack/salt/issues/2466
12:12 hhenkel babilen: only question for me is if there is a way to filter with that for a specific role?
12:12 babilen hhenkel: Not sure, don't think so ...
12:12 redondos_ joined #salt
12:13 bastion1704 joined #salt
12:13 babilen hhenkel: I was simpy experimenting with different "merge pillar" approaches and finally settled on just generating a pillar in a single place and keeping the logic in there.
12:14 hhenkel babilen: okay, with "roles" as a list I was able to address them with "salt -I "roles:foo" ..."
12:14 redondos_ joined #salt
12:16 redondos joined #salt
12:18 redondo__ joined #salt
12:19 babilen hhenkel: yes, that works nicely ... not sure if there is something comparable for the dictionary approach
12:19 hhenkel Is there a way to "filter" on a key/value pair (dictionary) in salt?
12:19 fllr joined #salt
12:20 redondos_ joined #salt
12:20 babilen Can I sensibly use https://github.com/saltstack-formulas/users-formula/blob/master/users/sudo.sls and https://github.com/saltstack-formulas/sudoers-formula/blob/master/sudoers/init.sls at the same time?
12:20 babilen Guess I will have to nuke a vagrant box
12:21 oz_akan_ joined #salt
12:21 redondos joined #salt
12:23 redondo__ joined #salt
12:25 redondos_ joined #salt
12:26 baniir joined #salt
12:27 redondos joined #salt
12:28 ndrei joined #salt
12:29 redondo__ joined #salt
12:29 Sypher_ joined #salt
12:29 jaimed joined #salt
12:29 MK_FG joined #salt
12:29 MK_FG joined #salt
12:30 GoKage joined #salt
12:30 hazzadous joined #salt
12:30 redondos_ joined #salt
12:31 canci joined #salt
12:31 TamCore joined #salt
12:32 zach joined #salt
12:32 Calum joined #salt
12:32 redondos joined #salt
12:33 adpaolucci joined #salt
12:34 redondo__ joined #salt
12:35 johtso joined #salt
12:35 johtso joined #salt
12:36 redondos_ joined #salt
12:36 madduck babilen: what do you mean with "normal salt states" when you say reclass is a bit disconnected from the rest of salt? (0:30 minutes ago)
12:37 bronsen joined #salt
12:37 redondos joined #salt
12:39 musinsky_ hey im trying to use the module function cron.set_special in a state. however when i define that with 'module.run' it says the module function cron.set_special isn't available. i can run it from the command line fine. any ideas what im doing wrong?
12:39 johtso joined #salt
12:39 babilen madduck: I mean that I was under the impression that I cannot simply replace pillars with reclass and use that as data source in salt states such as https://github.com/saltstack-formulas/sudoers-formula/blob/master/sudoers/files/sudoers simply by, for example, s/pillar/reclass/ or can I?
12:40 rome joined #salt
12:40 babilen It doesn't have to be that simple though
12:41 hhenkel babilen: http://docs.saltstack.com/topics/pillar/#targeting-with-pillar
12:41 hhenkel This indicates it should work I gues?
12:41 redondos_ joined #salt
12:41 madduck babilen: you just keep using pillar! no s/pillar/reclass/ needed even
12:41 babilen hhenkel: Looks like it, yes. (never used that before, but I am fairly new to salt too)
12:42 johtso joined #salt
12:42 hhenkel babilen: But it comes back with no result when I run: salt -I "roles:bar:True*" pillar.items
12:43 redondos joined #salt
12:43 johtso joined #salt
12:44 babilen madduck: Ah, okay. Great!
12:44 hhenkel babilen: ah, same issue I ran into before I guess.
12:44 oz_akan_ joined #salt
12:44 hhenkel babilen:  salt '*'  saltutil.refresh_pillar
12:45 redondo__ joined #salt
12:45 hhenkel babilen: This resolves it and works now.
12:45 babilen +1
12:45 babilen hhenkel: I would recommend to take a look at reclass too and evaluate it against your needs. It is quite powerful for node classification.
12:46 Gifflen joined #salt
12:46 hhenkel babilen: ' salt -v -I "roles:httpd:True" pillar.items roles ' gives me what I was looking for.
12:46 babilen hhenkel: Splendid!
12:47 hhenkel babilen: I will take a look at reclass, it looks quite interesting.
12:47 agenteo joined #salt
12:48 redond___ joined #salt
12:50 babilen I'm still wondering on how to orchestrate minion upgrades (salt packages and rest of the system)
12:51 TamCore_ joined #salt
12:51 kermit1 joined #salt
12:51 topochan joined #salt
12:52 berto- joined #salt
12:52 redondos joined #salt
12:53 redondos_ joined #salt
12:55 rome joined #salt
12:55 vejdmn joined #salt
12:55 mortis where do i put custom pillar-modules?
12:57 mortis in _modules?
12:57 redondos joined #salt
12:58 wunki I keep getting errors because of pillar vars which are available on the command line but not in templates: https://gist.github.com/wunki/f5300d8fa99ea16e1ff3
12:58 wunki anyone have an idea how to debug this?
12:59 redondos_ joined #salt
13:01 redondo__ joined #salt
13:02 juicer2 joined #salt
13:02 redondos joined #salt
13:02 DaveQB joined #salt
13:03 rome joined #salt
13:03 kvbik joined #salt
13:04 redondos_ joined #salt
13:06 redondo__ joined #salt
13:07 fllr joined #salt
13:08 redondos joined #salt
13:09 fllr joined #salt
13:09 Ztyx joined #salt
13:09 Ztyx Hey,
13:10 redondos_ joined #salt
13:10 ajprog_laptop joined #salt
13:11 napper2 joined #salt
13:11 Ztyx I've rolled out a mine pillar to a couple of minions, but after waiting for more than 24 hours they are still not showing up. Manually creating mines works. Is there anything I need to do to make the minions send their mine functions to master? I'm using vanilla minion config.
13:11 redondo__ joined #salt
13:13 redondos joined #salt
13:13 Driskell joined #salt
13:15 redondos_ joined #salt
13:15 harobed joined #salt
13:15 Driskell Hi ppl. I'm trying to use "pkg.installed" but receiving: Package 'Percona-Server-server-56' not found (possible matches: Percona-Server-server-56) - seems it is looking for all versions available, seeing there are 6 versions available in the repository, and instead of installing of the latest, it is just erroring out. Seems to have started after I upgraded salt-minion to salt-minion-2014.1.0-1.el6.noarch
13:16 Driskell (using centos 6.5 and peel)
13:16 jslatts joined #salt
13:16 Driskell Has anyone noticed this? Thanks.
13:17 redondo__ joined #salt
13:18 redondos joined #salt
13:19 mpanetta joined #salt
13:19 fllr joined #salt
13:20 moos3 does file.directory work like file.managed ?
13:20 redondos joined #salt
13:22 redondos_ joined #salt
13:23 BullShark i got here¸no idea how or what this channel is about
13:24 redondos_ joined #salt
13:26 redondos joined #salt
13:26 harobed joined #salt
13:27 lsc How stable is the develop branch?
13:27 harobed joined #salt
13:27 Psi-Jack Less stable than the stable branch.
13:27 lsc ...
13:27 redondos joined #salt
13:28 lsc Is the 2014.1 branch the stable branch?
13:28 harobed joined #salt
13:28 Psi-Jack See /topic.
13:29 faldridge joined #salt
13:29 harobed joined #salt
13:30 harobed joined #salt
13:31 redondos_ joined #salt
13:31 lsc Yes, I'm just confused because there is active development on the 2014.1 branch
13:33 nahamu that should mostly be bugfixes
13:33 redondo__ joined #salt
13:33 Driskell I think you want Tags, not Branches. They will continue work on 2014.1 to fix bugs, and tag for release?
13:34 nahamu but yes, 2014.1 is the stable branch
13:34 lsc thank you! that answers my question
13:35 redondos joined #salt
13:36 Driskell OK - so my issue with pkg. installed. It seems I am dropping in yum ".repo" files with salt - but because salt had already run a pkg.installed - it had caches the full available package list BEFORE the .repo appeared. Thus it says not found for all packages :\ If change so the first pkg. installed, no matter what it is, runs AFTER I drop in .repo files, it works fine. How do I inform salt to reload the available package list? This wo
13:36 Driskell pkg.installed refresh: True does nothing to help it seems
13:36 redondos_ joined #salt
13:37 Ztyx joined #salt
13:37 boakley joined #salt
13:37 pass_by_value joined #salt
13:37 harobed joined #salt
13:38 redondos_ joined #salt
13:40 viod joined #salt
13:40 redondos joined #salt
13:41 flebel joined #salt
13:42 redondos_ joined #salt
13:44 redondo__ joined #salt
13:44 GradysGhost joined #salt
13:44 epicserve left #salt
13:46 redondos joined #salt
13:46 Networkn3rd joined #salt
13:47 ninkotech joined #salt
13:47 ipalreadytaken joined #salt
13:47 redondos_ joined #salt
13:48 ipmb joined #salt
13:49 Mr_N ping dave_den: posted a doozie of an issue at https://github.com/saltstack/salt/issues/11500
13:49 redondo__ joined #salt
13:49 Mr_N Was lazy and didn't get to finishing it up till this morning.
13:51 redondos joined #salt
13:53 redondos joined #salt
13:53 seblu joined #salt
13:53 quickdry21 joined #salt
13:53 harobed joined #salt
13:54 redondos_ joined #salt
13:56 redondo__ joined #salt
13:58 redondos joined #salt
14:00 redondos_ joined #salt
14:00 tyler-baker joined #salt
14:01 harobed joined #salt
14:01 Networkn3rd joined #salt
14:01 ndrei joined #salt
14:02 redondos_ joined #salt
14:02 rome joined #salt
14:04 redondos joined #salt
14:05 redondo__ joined #salt
14:06 Ahlee is there an easy way to pick out minions that fail state applications?
14:07 Ahlee like i just applied this state to 300 minions, two of which had full / partitions thus a software installed failed.  I know this as I saw them as i was watching the run, but how can i pull that information after the fact
14:07 redondos joined #salt
14:07 pfallenop joined #salt
14:08 vejdmn joined #salt
14:08 Chronojam joined #salt
14:09 redondos_ joined #salt
14:09 StDiluted joined #salt
14:11 dccc joined #salt
14:11 redondo__ joined #salt
14:11 seblu joined #salt
14:12 jeremyBass1 joined #salt
14:12 redondos joined #salt
14:12 baniir joined #salt
14:13 ninkotech_ joined #salt
14:13 thayne joined #salt
14:16 ninkotech_ joined #salt
14:16 redondos joined #salt
14:16 aherzog joined #salt
14:17 iclebyte2 joined #salt
14:17 aherzog joined #salt
14:18 redondos_ joined #salt
14:20 redondo__ joined #salt
14:21 rallytime joined #salt
14:21 redondos joined #salt
14:23 redondos_ joined #salt
14:24 seapasulli joined #salt
14:25 seapasulli joined #salt
14:25 redondo__ joined #salt
14:26 oz_akan_ joined #salt
14:27 redondos joined #salt
14:29 redondos_ joined #salt
14:29 oeuftete Is there a best practice way to do a noop state?  I see the question has come up now and then without a good answer I can find
14:30 Ahlee oeuftete: what do you mean noop?  TO see what would happen? If so, append test=True
14:30 redondos joined #salt
14:31 debian112 joined #salt
14:32 seblu joined #salt
14:32 johno joined #salt
14:33 q1x joined #salt
14:33 q1x hi guys, back with another problem
14:34 redondos_ joined #salt
14:35 q1x I'm installing a package that wants to define a new mysql database user and database. In the 'normal' apt-get install it would ask for these credentials.
14:36 pass_by_value Ahlee: One thing I can think of is to have Halite running when you execute state.sls test=True. The ones that don't have the state applied will show in red under Job.
14:36 q1x Using salt pkg.install, I can't use this of course. I've seen I can add a debconf parameter to pkg.install though, so that seemed to be a good way to go.
14:36 redondos joined #salt
14:37 q1x Now I've created a jinja template for the debconf using pillar data for the passwords, and defined a salt://...... path for the debconf file to the pkg.install state
14:37 q1x but tht seems to fail....
14:37 q1x Is there a way I can persuade the debconf parameter to interpret the jinja portion of the preseed file?
14:38 redondos_ joined #salt
14:38 alunduil joined #salt
14:39 wendall911 joined #salt
14:39 q1x or do I need to copy the file over to the system using a file state and a template: jinja statement? If so, how can I make sure the file is removed after a succesfull install of the package?
14:39 redondo__ joined #salt
14:40 dRiN joined #salt
14:40 hotsnow joined #salt
14:40 chrisp_ joined #salt
14:41 napper2 joined #salt
14:42 mozg__ joined #salt
14:42 mozg__ hello guys
14:42 jbub joined #salt
14:43 chrisp_ Hi moz
14:43 mozg__ i was wondering if anyone could tell me how to solve a problem that i have relating to virt module
14:43 redondos_ joined #salt
14:43 chrisp_ I'd say ask away.  Don't know that I'll be much help though.  I have my own issues.
14:43 mozg__ when i  run salt \* virt.freemem
14:44 mozg__ i get the message:     'virt.freemem' is not available.
14:45 redondo__ joined #salt
14:47 redondos joined #salt
14:48 redondos_ joined #salt
14:49 chrisp_ Docs say the query depends on the libvert python module -- maybe that is what is needed?
14:50 redondo__ joined #salt
14:51 oeuftete Ahlee: this is the rough case I'm thinking of for a noop: https://gist.github.com/oeuftete/9763350
14:52 q1x mozg__: did you check minion logs?
14:52 redondos joined #salt
14:53 q1x I've had similar issues before. They were caused by missing prerequisites on my side, minion log pointed me to those.
14:54 redondos_ joined #salt
14:54 Guest69209 joined #salt
14:54 chrisp_ q1x - how are prerequisites usually solved - by package add, python module add, or salt configuration change?  I'm new to salt and having issues and trying to wrap my brain around it.
14:54 thedodd joined #salt
14:55 Ahlee pass_by_value: true, but halite requires newer than we're running
14:55 q1x chrisp_: I just defined states to install the prerequiste for the salt module i needed
14:55 q1x chrisp_: I'm still quite a n00b as well :-)
14:55 chrisp_ ok thanks.
14:56 redondos joined #salt
14:56 Ahlee oeuftete: um. well.  instead of noop, have it do something that doesn't matter?  Like file.managed: /var/tmp/.noop
14:56 rushm0r3 joined #salt
14:56 Ahlee i can't think of how else to do that, short of reworking your match
14:57 redondo__ joined #salt
14:58 oz_akan_ joined #salt
14:59 oeuftete Ahlee: for now, I just have a cmd.run '/bin/true'.  perhaps I'm not organizing things sensibly if I have a need for a noop
15:01 redondos joined #salt
15:01 redondos joined #salt
15:02 q1x Does anyone have an idea for my debconf issue? :)
15:02 conan_the_destro joined #salt
15:02 Ztyx joined #salt
15:02 ccase joined #salt
15:03 redondos_ joined #salt
15:04 redondo__ joined #salt
15:06 redondos joined #salt
15:06 dave_den joined #salt
15:07 rowleyaj joined #salt
15:08 redondos_ joined #salt
15:09 rowleyaj joined #salt
15:10 rowleyaj joined #salt
15:10 redondo__ joined #salt
15:12 jeremyfelt joined #salt
15:12 redondos joined #salt
15:12 kballou joined #salt
15:13 redondos_ joined #salt
15:15 redondos joined #salt
15:16 rlarkin q1x this is what I have: http://pastebin.com/d9Xr5z19
15:17 seblu joined #salt
15:17 redondo__ joined #salt
15:17 msciciel joined #salt
15:19 basepi someone else kicked the spambot?  sorry for my late reply, hhenkel and Psi-Jack
15:19 Corey left #salt
15:19 Corey joined #salt
15:19 Psi-Jack basepi: Yes, Freenode staff took care of it. :)
15:19 redondos_ joined #salt
15:19 Psi-Jack Though.. While you're here.... ;)
15:19 basepi cool
15:20 Gareth morning.
15:20 basepi hehe, what can I do for you?  =P
15:20 basepi or at least, what can I put off for you?  xD
15:21 jcsp joined #salt
15:21 redondos joined #salt
15:21 Psi-Jack I do have this bug I wanted to get some eyes on: https://github.com/saltstack/salt/issues/11453
15:21 basepi heh, ya, I'm behind on issue triage.  =P
15:21 basepi hoping to get caught up today.  but i'll look really quick
15:21 Psi-Jack Heh. yeaah, I can imagine. :)
15:22 Psi-Jack It relates, somewhat, to an existing reported bug, other's commenting about this bug but the reported bug was different as it wass. Confirming this bug, basically. LOL
15:22 basepi Ooh, that's no good!  Thanks for the heads up, we'll get that fixed.
15:22 Psi-Jack Yeah, this one's kinda a huge issue. ;)
15:23 ipalreadytaken joined #salt
15:23 redondos joined #salt
15:23 redondos joined #salt
15:24 redondos_ joined #salt
15:25 basepi Psi-Jack: hrm, it's working fine from the command line for me.  can you test there?  `salt 'minion' grains.get server_id`
15:25 hotsnow I can’t start salt on windows server 2003
15:25 Psi-Jack basepi: It works on command-line, but not from a pillar state.
15:26 hotsnow nssm report GetProcessTimes() failed:
15:26 basepi Psi-Jack: good to know
15:26 Psi-Jack As salt['grains.get']('somegrain', []) fails in a pillar, works in a state, but used to work in both.
15:26 redondo__ joined #salt
15:27 swissknife joined #salt
15:27 Psi-Jack I had to resort in my home cluster, grains['somegrain'] which if somegrain isn't defined for the host, will fail/throw exceptions, while salt['...'](...) worked and provided a null default.
15:28 basepi Psi-Jack: yep, can reproduce.  it's not setting the grain properly
15:28 * Psi-Jack nods.
15:28 frasergraham joined #salt
15:28 redondos joined #salt
15:29 basepi no error in the logs, either
15:29 basepi o.O
15:29 Psi-Jack Yeah...
15:29 hotsnow I use debug level on config file, bug no error logs
15:29 q1x rlarkin: thanks, I had just found that way to :-)
15:29 jalbretsen joined #salt
15:29 Psi-Jack It tripped me up because my rebuilt home cluster couldn't configure because I use salt['grains.get'] MANY places. :)
15:29 Psi-Jack At work, here, we use it more. :)
15:29 q1x I'll check your example! Thanks
15:30 napper2 joined #salt
15:30 swissknife Hi, is somebody protecting the salt master key master.pem with a password ? I'm use to Kerberos tickets or x509 proxy certificates , I was thinking to expose the salt key just when I'm really connected
15:30 redondos_ joined #salt
15:30 basepi hotsnow: I promise I'm not ignoring you, I just know next to nothing about the windows minion.  =\
15:30 basepi hopefully someone else can help, or when UtahDave gets on later you can ask him
15:30 Psi-Jack Windows? People still use that? :>
15:30 * Psi-Jack ducks.
15:31 basepi Psi-Jack: ya, i don't have time to deep-dive this at the moment, but I'm marking it as high severity and I'll see if I can get someone on it.
15:31 basepi Psi-Jack: my grains.get call is resolving to 0, are you seeing that or something else?
15:32 redondos_ joined #salt
15:32 forrest joined #salt
15:32 Psi-Jack basepi: I didn't see what it was resulting to, just that it wasn't resolving data or default.
15:32 hotsnow I will ask UtahDave for help nex time, thanks basepi
15:33 Psi-Jack basepi: Found this bug late at night over this weekend.
15:33 basepi hotsnow: sorry I'm not more help.  =\  he should be on later today
15:33 basepi Psi-Jack: kk.  sorry for the inconvenience.
15:33 Psi-Jack Eh, no worries. :)
15:34 redondos joined #salt
15:34 Psi-Jack I know, here at work, it's a definite showstopper, we cannot upgrade to 2014.1 with this bug.
15:35 redondo__ joined #salt
15:36 kermit joined #salt
15:37 johno hi there, i have salt-master installed but when i run salt-cloud i get command not found. any ideas?
15:37 redondos_ joined #salt
15:37 johno since 2014.1.0 it should be directly in salt package
15:38 utz joined #salt
15:38 Gareth johno: looks to be in a separate package.
15:39 Gareth at least on Debian system, its the salt-cloud package.
15:39 redondos joined #salt
15:39 redondos joined #salt
15:39 johno Gareth: oh.
15:39 basepi hhenkel: I'm going to close your new issue and open the old one, since there's much more relevant information on the old one.  Sorry I never saw your comment and didn't reopen originally.
15:40 johno Gareth: in that case this is very confusing ;) http://docs.saltstack.com/en/latest/topics/cloud/install/index.html
15:40 clemenko joined #salt
15:41 redondos joined #salt
15:41 Gareth johno: yeah.  that would if you're installing from source, eg. for development.  Since its all in the same source repo.
15:42 redondos_ joined #salt
15:42 babilen Where can I find the relese notes for 2014.1.1 ?
15:43 johno Gareth: a simple sudo apt-get install salt-cloud solved it. thanks.
15:43 Gareth johno: no worries.
15:43 hotsnow it’s midnight in china, i will ask the question tomorrow morning
15:44 MedicalJaneParis joined #salt
15:44 basepi babilen: I forgot to post them, working on it now.
15:44 redondo__ joined #salt
15:44 babilen basepi: Wodnerful, thank you!
15:44 babilen *Wonderful
15:46 redondos joined #salt
15:46 redondos joined #salt
15:47 obimod joined #salt
15:48 redondos_ joined #salt
15:48 mack_ joined #salt
15:50 redondos_ joined #salt
15:51 Guest58138 Hello guys. I'm new to SaltStack, I've read docs, googled, but sill have some issue with a performance and I don't have Idea whet is wrong.
15:51 redondos joined #salt
15:53 Guest58138 salt minion is extremely slow, even with 'salt-call key.finger' function. Using debug mode I've discovered that it stuck on "Reading configuration from /etc/salt/minion". System: Virtualbox, Centos 64, 1G ram, 1 CPU
15:53 redondo__ joined #salt
15:53 juicer2 left #salt
15:54 jergerber joined #salt
15:55 seblu joined #salt
15:55 redondos_ joined #salt
15:56 swissknife left #salt
15:57 Linz joined #salt
15:57 redondos joined #salt
15:57 Linz joined #salt
15:59 KyleG joined #salt
15:59 KyleG joined #salt
15:59 dfinn joined #salt
16:01 redondos_ joined #salt
16:01 rgbkrk joined #salt
16:03 brokebit joined #salt
16:05 dfinn i'm working on a pretty basic salt config to manage my bind slaves and masters.  we have a init.sls for bind that just installs it and makes sure it's running and then we have a slave and master sls that provide a custom named.conf based on which is called.  i'm getting a strange error but only when running the highstate from the minion, when I run it from the master it's fine.  not quite sure what would be causing that.  here's the sls and the error:
16:05 dfinn http://pastebin.com/tvSdye5x
16:06 dfinn it looks like ti doesn't know about the named service but it's up and running.  this is on cent5 btw
16:07 brokebit Hi Everyone. Was wondering if someone can help me with using salt to manage /etc/network/interfaces file in Ubuntu. Our nodes come up with a pre-configured interfaces file and we just need to update the dns-nameservers entry. However when using salt.states.network to manage the interfaces file it removes all pre-existing entries and just adds whats defined in the sls. Any way to have salt leave existing stuff there and just update?
16:07 brokebit http://pastebin.com/PNTcfd7D
16:07 forrest dfinn, did you run saltultil.sync_all?
16:07 dfinn no, I've never run that.  what does that do and where do I run it?
16:07 RandalSchwartz "So Sync We All" :)
16:08 forrest dfinn, http://docs.saltstack.com/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.sync_all I can never remember if it also syncs the standards states you've writtein down... worth a shot though
16:09 dfinn running that now...
16:09 GradysGhost joined #salt
16:09 dfinn and now another highstate…
16:09 debian112 hey is there a: 2014.1.1 release? In my test environment I got this package on a new install
16:10 debian112 but I don't see any release notes on it
16:10 ttomkinson joined #salt
16:10 fllr joined #salt
16:10 forrest brokebit, I can't remember if network supports that, however you could do a ghetto http://docs.saltstack.com/ref/states/all/salt.states.file.html#salt.states.file.append
16:11 martoss joined #salt
16:13 brokebit Forrest: thx. Actually salt.modules.file.replace might be a better solution that append. Thx for setting me on the right path
16:13 forrest brokebit, yea np
16:13 anuvrat joined #salt
16:18 schimmy joined #salt
16:19 hunter joined #salt
16:20 joehillen joined #salt
16:21 Ztyx joined #salt
16:22 smcquay joined #salt
16:22 ldlework Where can I find the documentation about topfile matching?
16:22 amckinley joined #salt
16:22 basepi babilen: release notes are in, will be live next time the docs rebuild (can't remember what that schedule is, may go trigger it manually)
16:22 ldlework this doesn't seem to cover everything, http://docs.saltstack.com/ref/states/top.html
16:22 schimmy1 joined #salt
16:23 basepi babilen: https://github.com/saltstack/salt/pull/11508
16:27 forrest ildhttp://docs.saltstack.com/ref/states/top.html#other-ways-of-targeting-minions ?
16:27 mgw joined #salt
16:27 ipalreadytaken joined #salt
16:27 seanz joined #salt
16:28 seanz Greetings everyone. I'm just checking in to see if there has been progress in this area yet: merging pillar files.
16:28 seanz I don't see any new activity around it on GitHub.
16:28 seanz Nor has Google shown me anything unique and enjoyable of the subject.
16:30 ldlework Hi can anyone help me with this error: https://gist.github.com/dustinlacewell/a68a9d512d72ed8157c1
16:33 chrisjones joined #salt
16:34 KyleG Idlework: Do you have your systems hostname setup in /etc/hosts ?
16:34 KyleG "127.0.0.1 localhost SERVER_HOSTNAME SERVER_HOSTNAME.DOMAIN.COM"
16:35 KyleG Idk if that's for sure the issue, but I'm just taking a guess here from the error.
16:38 carbon joined #salt
16:39 UtahDave joined #salt
16:41 rglen joined #salt
16:42 carbon joined #salt
16:44 lkijfdkj joined #salt
16:45 ldlework KyleG: i figured it out
16:45 ldlework How do you refer to state files inside of a folder from a top file?
16:45 ldlework is it just, folder.state_name ?
16:46 kaptk2 joined #salt
16:47 seblu joined #salt
16:47 nn0101 joined #salt
16:48 sijis joined #salt
16:48 Iwirada left #salt
16:49 millz0r joined #salt
16:49 ajw0100 joined #salt
16:50 cron0 joined #salt
16:50 KyleG Idlework: The folder is the state, and state_name would be the init file.
16:50 KyleG So like, I have states/nginx/noc.sls
16:50 KyleG with all the settings for my noc box
16:50 KyleG I could salt 'noc.*' state.sls nginx.noc
16:51 sijis trying to setup salt-api, and i'm seeing this error starting up with apache (mod_wsgi is loaded). http://paste.fedoraproject.org/88467/66223139/
16:52 whiteinge sijis: what version of salt-api?
16:52 sandbender1512 joined #salt
16:52 baniir joined #salt
16:52 sijis salt-api-0.8.2-0.el6.noarch
16:53 whiteinge ah. unfortunately the RPM in epel is one version out of date
16:53 sijis whiteinge: get it from github?
16:53 whiteinge yeah. or pypi
16:53 sijis ok. one sec
16:56 dfinn1 joined #salt
16:57 ipalreadytaken joined #salt
16:57 hartym joined #salt
16:58 sijis ok, its going to take a me a few more mins
16:59 dvogt joined #salt
17:00 whiteinge np. ping me if you have more Q
17:05 pydanny joined #salt
17:05 sijis whiteinge: still seeing it .13.10] has joined #salt
17:05 sijis 11:57 -!- martoss [~Adium@fire3.tngtech.com] has quit [Ping timeout: 252 seconds]
17:05 sijis http://paste.fedoraproject.org/88482/67102139/
17:06 sijis whiteinge: i am using virtualenv
17:06 whiteinge hm. i know that bug was fixed. double-checking what version...
17:07 seblu42 joined #salt
17:07 sijis pip is showing me version salt-api (0.8.3)
17:07 whiteinge ah, crap. it's fixed in develop not 0.8.3. i apologize for misleading you
17:07 stanchan joined #salt
17:08 * whiteinge needs to cut 0.8.4...
17:08 sijis you want me to get dev version?
17:09 whiteinge develop HEAD is stable. if you can update easily then, yeah
17:10 allanparsons joined #salt
17:11 sijis sure, let me try that
17:11 Ryan_Lane joined #salt
17:12 druonysus joined #salt
17:12 druonysus joined #salt
17:13 sijis whiteinge: that worked :)
17:13 whiteinge woot!
17:13 whiteinge ooc, how do you have your eauth set up? is it using the apache user?
17:14 sijis no. i have my own account as the eauth user
17:14 sijis httpd is runnin as apache
17:14 seanz left #salt
17:15 sijis i did get an auth error when i did GET /
17:15 sijis but at least i didn't get a wsgi error
17:15 travisfischer joined #salt
17:16 whiteinge can you authenticate as your eauth user via /login or /run?
17:18 sijis whiteinge: i was trying to use pepper but i was seeing the wsgi error. so i decided to just try using telnet server 80
17:18 sijis not sure how to validate that via /login or /run
17:19 whiteinge try this:  curl -c /tmp/cookies.txt -sSi http://urlhere:8000/login -d username=theusername -d password=thepassword -d eauth=pam
17:19 whiteinge (assuming you're using pam)
17:19 sijis i am
17:21 sijis whiteinge: i got a 500 error.
17:22 * whiteinge was afraid of that
17:22 whiteinge can you pastebin the traceback?
17:23 bastion1704 joined #salt
17:23 sijis i'm not seeing the stacktrace in the apache logs
17:24 sijis curl returns this: {"status": 500, "return": "An unexpected error occurred"}
17:24 pentabular joined #salt
17:24 dvogt joined #salt
17:25 whiteinge it may show up in the salt log. or curl will return it directly if you put ``debug: True`` in the rest_cherrypy config
17:25 Ryan_Lane how is salt loading yaml as ordered dicts?
17:25 Ryan_Lane and how can I reuse this?
17:26 whiteinge (must restart salt-master/salt-api though)
17:26 rushm0r3 joined #salt
17:27 sijis whiteinge: no prob.
17:27 Ryan_Lane ah, I see, it's in the yaml loader
17:27 UtahDave Ryan_Lane: https://github.com/saltstack/salt/blob/develop/salt/utils/yamldumper.py as well, I think
17:27 Ryan_Lane if I wanted to reuse this in an external pillar, would it be easy to do?
17:28 MTecknology When was that patch added for groups? The big one that dave_den made?
17:28 MTecknology I think it was added to 0.17.5 so if I upgrade to 2014.1.0, I get to know it's there, but... I wanna be sure and I'm not finding that patch.
17:28 UtahDave Ryan_Lane: yeah, I'm pretty sure. Let me find an example
17:29 Ryan_Lane renderers/yaml.py seems to use it via CustomLoader
17:30 nahamu KyleG: do you use salt on SmartOS?
17:30 seblu joined #salt
17:30 sijis whiteinge: debug enabled, it showed htis: http://paste.fedoraproject.org/88500/13957686/
17:30 KyleG nahamu: yeah, I haven't moved my master yet but I am doing that next week
17:30 KyleG I do have minions on SmartOS though
17:30 KyleG or do you mean the global zone use of salt?
17:30 nahamu KyleG: cool. are you using the packages from pkgsrc?
17:30 nahamu I mean any use of salt on SmartOS
17:31 UtahDave hm, basepi, is there anything special that Ryan_Lane would have to do to use our fancy pants yaml loader?
17:31 Ryan_Lane ah, I think I see how I can use it.
17:31 Ryan_Lane data = load(yaml_data, Loader=get_yaml_loader(argline))
17:31 KyleG nahamu: Not in the Global zone, only on KVM hosts so I guess directly not
17:31 KyleG I've been very happy with SmartOS so far, I've had it in production for 2 weeks
17:31 nahamu ah, so salt itself always sees Linux or Windows?
17:32 Ryan_Lane so: data = load(yaml_data, Loader=CustomLoader(*args, dictclass=OrderedDict))
17:32 sijis whiteinge: looks like perm issue with /var/cache/salt directory. which its owned by root
17:32 KyleG nahamu: basically, salt just sees my FreeBSD hosts
17:32 KyleG as BSD
17:32 Ryan_Lane not totally sure what args are supposed to be
17:32 nahamu I guessed the wrong particular guests. :) got it.
17:32 sijis whiteinge: perms are all 755 throughout there too
17:32 KyleG hah no biggy, I got what you were saying
17:33 nahamu well, if you ever start playing with zones as minions let me know.
17:33 dvogt joined #salt
17:33 whiteinge sijis: tyvm. looking...
17:34 KyleG I will definitely try to remember, not sure if I'll get there though. My environment is almost 100% FreeBSD with the exception of my client storage (Nexenta and EMC Isilon), so I don't like to messy up my environment too much with different OSs to manage
17:34 Ryan_Lane ah, args is a stream
17:35 conan_the_destro joined #salt
17:35 Gareth Ubuntu seems to have done away with /etc/default/networking, where would would transitionally disable networking.  In the debian_ip, for Ubuntu systems, for enabling or disabling networking, I'm thinking about enabling or disabling the service(s) depending on the desired state.  thoughts?
17:37 cetex left #salt
17:37 basepi UtahDave: Ryan_Lane: I don't know anything about the fancy pants yaml loader.  =P
17:37 Ryan_Lane heh
17:37 Ryan_Lane I need to load yaml ordered :)
17:39 Ryan_Lane hm. no clue what argline is
17:43 n8n joined #salt
17:47 seblu joined #salt
17:47 sijis whiteinge: if you need me to try something or change a few mins. i'm good for that.
17:47 sijis s/mins/lines
17:49 whiteinge sijis: that is very much appreciated! i'll have something to test in a couple mins
17:49 sijis whiteinge: no prob. just ping.
17:54 whiteinge sijis: pull the latest of develop and try again, please?
17:55 sijis sure
17:56 Darnoth joined #salt
17:57 [diecast] joined #salt
17:58 arthabaska joined #salt
17:59 sijis whiteinge: yay :)
17:59 whiteinge woot!
17:59 whiteinge thank you very much for testing
17:59 sijis got a token
18:00 sijis whiteinge: i may have to bug you on pepper too :)
18:00 whiteinge please do!
18:01 sijis whiteinge: i didn't see pepper in pypi, so cloned and ran setup.py
18:01 whiteinge yeah. it's not exactly ready for pypi yet... :-P
18:02 whiteinge but it's probably just a couple man-hours away from getting there.
18:02 sijis (i did get an erorr about share/man/man1, so i commented it out in setup.py
18:03 whiteinge good call
18:04 kvbik joined #salt
18:04 yomilk joined #salt
18:04 hunter_ joined #salt
18:04 sijis whiteinge: running peppr from cli, got an error about __version__ not found in the bin/pepper.
18:05 basepi So Ryan_Lane and forrest:  Looks like we're going to make the sprint theme "Verification Modules/States".  By that I mean additional states and modules that can be used for verification of systems.  You stick a `port.http` state at the end of your state tree that verifies that the server is properly serving http requests on a given port.  Things like that.  We're going to spec it out and have more in-depth guidelines for the actual sprint, but
18:05 basepi that's what you can advertise.
18:06 sijis line #29.. i just hardcoded the value. interesting enough.. interactive pytohn seemed to work. import pepper; pepper.__version__
18:06 forrest basepi, that sounds kick ass
18:07 basepi Ya, we decided the problem with a documentation push is that people start adding documentation willy nilly, rather than improving the existing documentation (which is what we really need)
18:07 basepi Hard to actually architect real documentation improvement in a sprint environment.
18:07 Ryan_Lane well, the idea with doing documentation in a sprint is that you target a specific topic
18:07 Ryan_Lane and each sprint you do a different topic
18:08 basepi That's true as well.  But we're hoping to pull in people who have no knowledge of salt at the PyCon sprint, and we want to get them into Python code
18:08 * Ryan_Lane nods
18:08 basepi We may do more of a documentation theme for the OpenWest conference
18:08 whiteinge sijis: was it an AttributeError or an ImportError perhaps?
18:09 sijis whiteinge: let me revert that line.
18:09 * Ryan_Lane nods
18:09 whiteinge sijis: is your github username the same as your irc nick?
18:09 sijis yup
18:10 sijis whiteinge: AttributeError: 'module' object has no attribute '__version__'
18:12 Ryan_Lane heh. CustomLoader is renamed to SaltYamlSafeLoader in next release
18:12 * Ryan_Lane grumbles
18:12 basepi Heh, yep.  Little more descriptive, lot more of a mouthful
18:13 Ryan_Lane well, it's just that I need to do a try/except to use it :)
18:13 basepi Yep...
18:13 Ryan_Lane for sanity sake I'm importing either as YamlSafeLoader
18:13 basepi hehe, probably a good move.  =P
18:13 whiteinge sijis: trying to reproduce. trying without pip...
18:14 basepi As a rule, I just blame UtahDave, but since he's not here we can blame terminalmage.
18:14 Ryan_Lane sounds like a good move :)
18:14 whiteinge ah. got it
18:18 MrTango joined #salt
18:18 sijis whiteinge: able to reproduce, eh?
18:19 sum1bl joined #salt
18:19 carbon hello all, have a question that i hoped someone in here might be able to help with. I posted the troublesome sls along with the error returned when trying to run it @ http://pastebin.com/UF1N0uTP
18:20 carbon its kicking back errors which to me do not appear relevant
18:21 whiteinge sijis: yeah. two problems: i pushed a fix for the traceback; working on a fix for the missing version.json file
18:21 sijis whiteinge: i thoguht i saw bug/fix on that.. maybe it was just listed in the issues list
18:22 whiteinge the version.json change had a couple bugs because it was written in a hurry and only tested with pip :-P
18:23 carbon i have also verified the file (pulled down from master) on the minon itself and everything appears normal. NOt sure if this is a syntax error or something else but it's driving me crazy.
18:25 bstromski joined #salt
18:27 frasergraham salt -I is not working for me at all, I might be using it wrong?
18:28 frasergraham I have pillar values for env, set to "dev" or "prod" and when I try salt -I "env:dev" I never get back a correct list
18:28 frasergraham in fact salt -I "env:prod" pillar.items gives me back entries with env: dev
18:29 frasergraham which makes no sense to me at all
18:31 harobed joined #salt
18:31 * robawt highfives whiteinge
18:32 * whiteinge returns the high-five dragon ball z -style
18:32 kermit joined #salt
18:32 thayne joined #salt
18:32 * robawt golf claps for whiteinge
18:32 redondos joined #salt
18:32 redondos joined #salt
18:33 dvogt joined #salt
18:33 vejdmn joined #salt
18:34 oz_akan__ joined #salt
18:38 jeremyBass1 joined #salt
18:40 oz_akan_ joined #salt
18:40 ajw0100 joined #salt
18:43 ldlework left #salt
18:51 ipalreadytaken joined #salt
18:54 mgw joined #salt
18:57 johtso joined #salt
18:57 johtso joined #salt
18:57 ajw0100 joined #salt
18:59 gadams999 anyone running the latest develop version? just did an update to my master and getting an exception with salt-run
18:59 thedodd joined #salt
19:01 dave_den joined #salt
19:02 utz joined #salt
19:06 rdorgueil joined #salt
19:06 rdorgueil joined #salt
19:06 sijis whiteinge: maybe i'm doing something wrong, but i'm getting a 401 error when i run pepper. using -H, the first response is 200, then next call is a 401 unauthorized
19:07 brokebit joined #salt
19:08 brokebit Hi Everyone. I'm still trying to nail down a easy modification /etc/network/interfaces. So, I'm using the file.replace function to search for a line in /etc/network/interfaces. I want to replace that line with a new one. More specifically, I want to replace any occurrences of lines containing the string 'dns-nameservers' with a new string like the following : 'dns-nameservers 10.125.125.2'
19:08 sijis whiteinge: lookin at the api closely, i'm not seeing it post to /minions (at least apache logs aren't showing htat)
19:09 brokebit However my sls my seems to find the line and just append to it.
19:09 brokebit http://pastebin.com/SfBwLjs3
19:10 pentabular1 joined #salt
19:11 pentabular1 left #salt
19:11 djaime joined #salt
19:12 rallytime joined #salt
19:12 djaime joined #salt
19:12 sijis whiteinge: paste http://paste.fedoraproject.org/88558/57747071/
19:13 anuvrat joined #salt
19:19 srage joined #salt
19:20 ekristen joined #salt
19:20 hunter_ joined #salt
19:20 ekristen does anyone know if you can pass arguments to a state from a reactor?
19:22 vejdmn joined #salt
19:22 rojem joined #salt
19:23 rome joined #salt
19:24 srage joined #salt
19:26 djaime joined #salt
19:27 ggoZ joined #salt
19:27 oz_akan_ joined #salt
19:28 ggoZ joined #salt
19:29 ggoZ joined #salt
19:29 a1j joined #salt
19:29 a1j https://github.com/saltstack/salt/issues/11510
19:31 ggoZ joined #salt
19:31 ggoZ joined #salt
19:32 ggoZ joined #salt
19:35 srage joined #salt
19:43 a1j left #salt
19:48 redondos joined #salt
19:48 redondos joined #salt
19:52 hazzadous joined #salt
19:54 rushm0r3 joined #salt
19:55 srage joined #salt
19:55 cron0 left #salt
19:56 rome joined #salt
20:00 hazzadous joined #salt
20:01 timoguin joined #salt
20:02 srage_ joined #salt
20:02 CaptTofu joined #salt
20:02 CaptTofu join #salt
20:02 CaptTofu howdy!
20:02 seblu joined #salt
20:03 darless_ joined #salt
20:03 gadams999 left #salt
20:06 hunter_ joined #salt
20:08 rome joined #salt
20:09 srage joined #salt
20:11 googolhash joined #salt
20:12 seblu42 joined #salt
20:15 baniir joined #salt
20:17 kzx joined #salt
20:22 nkuttler oh, looks like the saltconf videos are being uploaded one by one..
20:22 nkuttler hadn't checked for a while
20:22 seblu42 joined #salt
20:26 kermit joined #salt
20:34 timoguin nkuttler, sweet! :)
20:35 travisfischer joined #salt
20:35 rome joined #salt
20:38 whiteinge sijis: sorry, pulled afk
20:38 Ahlee whiteinge: thank you for saltsh.py.
20:38 sijis whiteinge: ah.. no prob
20:38 Ahlee That is all.
20:38 whiteinge nice! i'm glad it's being used :)
20:39 DelPede joined #salt
20:40 whiteinge sijis: pushed a fix for the missing version file. looking into the 401...
20:40 sijis k
20:40 hunter_ joined #salt
20:41 sijis whiteinge: ahh. coolio
20:42 seblu joined #salt
20:44 rome joined #salt
20:46 worstadmin joined #salt
20:54 mozg__ joined #salt
20:57 sijis whiteinge: let me know if you need any more details
20:59 cewood joined #salt
21:00 yomilk joined #salt
21:01 DaveQB joined #salt
21:02 seblu joined #salt
21:03 pydanny joined #salt
21:03 vejdmn joined #salt
21:04 fridder joined #salt
21:06 StDiluted joined #salt
21:06 ajw0100 joined #salt
21:07 untamo13 joined #salt
21:07 whiteinge ekristen: you can pass arguments via the reactor. what are you interesting in passing?
21:07 whiteinge sijis: I can't seem to reproduce
21:08 ekristen whiteinge: right now my state pulls in a branch or tag from a pillar, but I’d rather have the reactor provide that info, so that CI can just pass the passed tag to the salt event and reactor pass to the state
21:09 hunter_ joined #salt
21:09 whiteinge Three subscribers short of 1000!  :)  https://www.youtube.com/user/SaltStack
21:09 whiteinge ekristen: ah, nice. yeah, very doable. the syntax is a little wonky though
21:10 ekristen any points would be helpful
21:10 ekristen pointers*
21:10 sijis whiteinge: tryin again
21:10 Katafalkas joined #salt
21:10 fragamus joined #salt
21:11 whiteinge ekristen: search for "pillar=" in this doc for an example: http://docs.saltstack.com/en/latest/topics/reactor/
21:11 sijis whiteinge: the only thing i'm noticing is that the second request isn't going to /minion (or should it?)
21:12 whiteinge sijis: no, it should go the root URL (for now)
21:12 roolo joined #salt
21:13 sijis whiteinge: the X-Auth-Token, should match, right?
21:14 yomilk joined #salt
21:14 whiteinge it should only match betweek the call to /login and the call to /. it won't match between separate pepper invocations (for now)
21:17 mgw does anybody have a distro agnostic way to safely restart salt-minion?
21:17 sijis whiteinge: is there anywhere else that could show why is it failing?
21:18 Ryan_Lane mgw service.restart, using salt ;)
21:18 Ryan_Lane though I'm sure that's not amazingly helpful
21:18 mgw Ryan_Lane: not very :-)
21:18 mgw salt-call service.restart salt-minion is acting weird at least
21:18 Ryan_Lane if you need it because the daemon isn't responding, salt also works over ssh
21:19 whiteinge sijis: let me try with a different eauth backend. would you mind pastebin'ing the output from your -H call?
21:19 Ryan_Lane otherwise, you'd likely need to write a script that takes into account each different os type
21:19 mgw Ryan_Lane: I'm afraid I might need to do this
21:20 ekristen whiteinge: any idea on how I can get data from the event into the reactor
21:20 Ryan_Lane what's acting weird about service.restart?
21:20 mgw It's not restarting it
21:21 mgw I'm working on the lxc module for context
21:21 ekristen whiteinge: nm data[‘data’]
21:21 travisfischer joined #salt
21:21 mgw after a clone, I need to put new config and keys in place
21:21 mgw and restart the minion
21:21 * whiteinge nods
21:21 mgw (on the clone)
21:21 redondos joined #salt
21:21 redondos joined #salt
21:21 mgw I tried executing `lxc-attach -n <container> — salt-call service.restart salt-minion`
21:22 sijis whiteinge: http://paste.fedoraproject.org/88604/13957825/
21:22 mgw oh, i think I need --local
21:23 mgw Ryan_Lane: ^
21:24 Ryan_Lane you need to restart the minion for that?
21:24 googolhash_i joined #salt
21:25 Ryan_Lane oh, are you sticking salt into a container?
21:26 Ryan_Lane mgw: yeah, you need local. if you never plan on having a master you can use 'file_client: local' in your config
21:28 sijis whiteinge: i am using 0.1.0-25-g1fdd525 (with the commented doc/main in setup.py)
21:28 whiteinge thanks. i see why it's failing. now to reproduce...
21:29 sijis whiteinge: why is it failing?
21:29 mgw Ryan_Lane: yes
21:29 mgw in a container
21:29 mgw This is an update to the standard salt.modules.lxc
21:29 mgw as is, it doesn't properly bootstrap a cloned container
21:29 whiteinge sijis: it's not using the same auth token it got back from the login for some reason :-P
21:30 mgw —local is necessary because the previous config (that the running salt-minion loaded) does not have a valid master, as it was just a template container
21:30 bhosmer joined #salt
21:30 pydanny joined #salt
21:30 sijis whiteinge: ok. i was wondering that then.. .since in pepper script. you have a variable named auth.. but i don't see it being used
21:30 mgw also, the new container's key may or may not be accepted yet at that point
21:30 Ryan_Lane ah. right
21:30 sijis whiteinge: auth = api.login(saltuser, saltpass, salteauth)
21:31 sijis whiteinge: when you call api.local()... i was expecting auth to be a param but it wasn't
21:32 mgw and certainly the old one isn't
21:32 mgw anyway, --local fixes the whole problem. thanks!
21:33 ipalreadytaken joined #salt
21:36 viq joined #salt
21:36 viq joined #salt
21:37 faldridge joined #salt
21:37 sijis whiteinge: i have to head out. i will check later which whatever suggestion you have
21:38 whiteinge sijis: cool. thanks a lot for your help today
21:41 ajprog_laptop joined #salt
21:41 meteorfox joined #salt
21:41 UtahDave joined #salt
21:41 ivan joined #salt
21:42 Mr_N_ joined #salt
21:42 rlarkin is there a builtin way to make services always restart, even if they are already running?
21:42 jeblair_ joined #salt
21:43 rhand_ joined #salt
21:43 forrest rlarkin, hmm, I know there is - reload which you can set to true, maybe just try - restart: True?
21:43 forrest service.running supports kwargs
21:44 djinni`_ joined #salt
21:45 sroegner rlarkin: just ooc: why would you need to do that?
21:45 gamedna joined #salt
21:45 nmistry joined #salt
21:45 CeBe joined #salt
21:46 rlarkin while I'm still working on this, I'm rerunning state.highstate a lot.
21:47 gamedna Wondring if its just me, or does anyone else have this problem.. I am noticing that salt does not reload nginx even though it says its issuing a reload.
21:47 rlarkin 'watch' isn't working the way I think it does.
21:47 gamedna Service reloaded = nginx: True, so thats a good sign
21:47 Jarus joined #salt
21:47 [vaelen] joined #salt
21:48 madduck joined #salt
21:48 madduck joined #salt
21:48 whiteinge joined #salt
21:49 dpac|away joined #salt
21:49 aarontc joined #salt
21:50 Gareth Goodness: http://arstechnica.com/gaming/2014/03/facebook-purchases-vr-headset-maker-oculus-for-2-billion/
21:51 forrest Gareth, seems like a good purchase to me, they don't want to go the way of myspace
21:51 Gareth forrest: FB?
21:51 forrest yea
21:51 Gareth true.
21:53 rushm0r3 joined #salt
21:54 repl1cant waaaaa?
21:54 repl1cant i just pre-ordered my dk2
21:54 repl1cant well, last week that is
21:54 forrest do you hav a dev kit 1?
21:55 forrest while we're off topic, has anyone rigged up an arduino that opens/closes their curtains where the code is written in python?
21:55 repl1cant nope, was waiting for dk2
21:56 jeddi forrest: arduino code in python?
21:56 forrest yea
21:56 jeddi forrest: there's a byte compiler for python back to avr?  i thought atmegas were their vaguely c++ language, or assembler.
21:57 forrest jeddi, hmm, I mean you can talk to an arduino via a serial connection
21:57 forrest http://playground.arduino.cc/interfacing/python
21:58 forrest I just don't want to design the app and mechanical setup
21:58 jeddi forrest: ahh, okay.  that makes more sense.
21:58 jeddi though i don't understand why you'd have another controller in front of the one that does the actual work, for that use case.  :)
21:59 jeddi perhaps hop over to #arduino - lots of smart peeps in there.
21:59 forrest yea I need to research it a bit more
22:02 arthabaska joined #salt
22:03 tyler-baker hey guys/gals, quick question
22:03 tyler-baker http://docs.saltstack.com/ref/states/all/salt.states.archive.html
22:04 tyler-baker if I wanted to decompress an xz file, is there a state someone has already put together?
22:04 tyler-baker or do I get to write my own module? :)
22:04 [diecast] joined #salt
22:08 ipalreadytaken joined #salt
22:08 ipalreadytaken joined #salt
22:09 obimod can you have a fqdn as the location for the master in the minion config file?
22:10 shadowsun yes, as long as it's resolveable
22:11 [diecast] joined #salt
22:12 fridder joined #salt
22:12 UtahDave obimod: be aware that when the salt-minion starts up it resolves the hostname to an ip address and uses the ip address exclusively.
22:14 obimod UtahDave: thanks.. good point to make : )
22:14 seblu joined #salt
22:15 adizam joined #salt
22:17 Ryan_Lane UtahDave: isn't that behavior configurable?
22:17 UtahDave Ryan_Lane: I don't think so
22:17 Ryan_Lane http://docs.saltstack.com/ref/configuration/minion.html#dns-check
22:18 Ryan_Lane hm. that's probably something else, though, eh?
22:19 UtahDave Ryan_Lane: Hm. You appear to be correct!  I'm not familiar with that config option
22:20 yomilk joined #salt
22:21 faldridge joined #salt
22:24 redondos joined #salt
22:24 redondos joined #salt
22:25 mozg__ joined #salt
22:26 chuffpdx joined #salt
22:27 seblu joined #salt
22:28 yomilk_ joined #salt
22:30 elfixit joined #salt
22:30 seblu joined #salt
22:31 oz_akan_ joined #salt
22:36 ggoZ joined #salt
22:36 elfixit joined #salt
22:37 pentabular joined #salt
22:43 hunter_ joined #salt
22:44 meteorfox joined #salt
22:50 nahamu joined #salt
22:51 wendall911 joined #salt
22:54 wendall911 joined #salt
22:55 seblu joined #salt
22:56 vejdmn joined #salt
22:57 ajw0100 joined #salt
22:58 alunduil joined #salt
22:58 travisfischer joined #salt
23:02 mozg__ joined #salt
23:03 fllr joined #salt
23:03 meteorfox joined #salt
23:03 seblu joined #salt
23:06 MTecknology Salt is incredible. It's just insane what this puppy is becoming capable of. I'm getting more and more confused when I dive into core, but everything else stays simple and easy.
23:06 druonysuse joined #salt
23:07 MTecknology my nose may be brown, but my mind is also happy
23:09 Nazzy joined #salt
23:09 Nazzy joined #salt
23:14 Gifflen joined #salt
23:14 conan_the_destro joined #salt
23:16 seblu joined #salt
23:19 rome joined #salt
23:19 scalability-junk joined #salt
23:19 Luke_ joined #salt
23:20 seblu joined #salt
23:21 Gifflen joined #salt
23:21 redondos joined #salt
23:21 redondos joined #salt
23:23 conan_the_destro joined #salt
23:23 MindDrive joined #salt
23:24 MindDrive left #salt
23:24 MindDrive joined #salt
23:25 RandalSchwartz I see /srv/salt/top.sls as the conventional states top in the docs
23:25 RandalSchwartz but on freebsd, that maps to /usr/local/etc/salt/states/top.sls
23:25 RandalSchwartz is /states/ the new /srv/salt/ :)
23:30 druonysuse joined #salt
23:31 seblu joined #salt
23:32 obimod i'm using salt-cloud -m 'cloud.map' and it gets to the point where it adds the minion's key to the known_hosts file but doesn't look like it executes the bootstrap script on the digitalocean instance (debian minion)
23:34 meteorfo_ joined #salt
23:39 obimod can anyone think of any next steps?
23:40 hunter_ joined #salt
23:40 frasergr_ joined #salt
23:41 BullShark left #salt
23:45 diegows joined #salt
23:47 UtahDave obimod: what version of Salt are you using?
23:47 obimod salt 2014.1.0
23:49 joehh obimod: I wouldn't rule out packaging issues - I haven't used salt-cloud, so packaging for debian is "new" and not as well tested as the rest
23:49 allanparsons joined #salt
23:50 allanparsons how do you guys protect your passwords
23:50 allanparsons i know pillar shouldnt be checked into git
23:50 dman777 joined #salt
23:50 allanparsons but where else would you check it in to?
23:50 Corey allanparsons: Sure it can be in git.
23:50 Corey allanparsons: Just a separate git repo with restricted access. :-)
23:51 Corey allanparsons: And if you put it on github you're a fool.
23:51 obimod hmm.. i wonder if i'll have more luck with ubuntu
23:51 allanparsons ha ha - why
23:51 allanparsons our github is locked down
23:51 Corey allanparsons: "Here's my private certs, my ssh keys, my passwords; I'll store them on a public hosted service. It's probably fine."
23:51 joehh obimod: similar risks :(
23:51 joehh obimod: I'd welcome feedback for either as to it working/not working
23:51 Corey They've had security related issues before. At least when you self-host you can firewal it off semi-sanely.
23:51 allanparsons yea
23:51 allanparsons true
23:52 KyleG yeah ^
23:52 KyleG My stuff is in git, but it's behind firewalls/VPN
23:52 KyleG my salt states
23:55 Corey KyleG: Right. Git isn't github.
23:57 UtahDave Corey: what??  I'm confused...  j/k
23:58 Corey UtahDave!
23:58 Corey I ran into Marc and Rhett last week.
23:58 Corey Fortunately I wasn't driving.
23:58 UtahDave he he. They told me that, when I ran into them that night at LAX waiting for my flight home!
23:58 obimod joehh: alright.. i'll poke around the cloud/cli.py file and try to reverse what's going on... i wonder if i should open up an issue?

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