Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-04-10

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

All times shown according to UTC.

Time Nick Message
00:00 andrej very cool whiteinge ... reading up on external pillar ... http://docs.saltstack.com/en/latest/topics/development/external_pillars.html right now
00:02 __alex terminalmage: back on stable, everything works fine. many thanks.
00:02 whiteinge andrej: further reading: http://docs.saltstack.com/en/latest/topics/tutorials/pillar.html#paramaterizing-states-with-pillar
00:03 whiteinge also: http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#conventions-formula-parameterization
00:03 terminalmage __alex: great, thanks. if you do get the chance, I'd welcome some testing against develop
00:03 terminalmage gitfs has had a lot of enhancements made
00:03 terminalmage that will be in the next feature release
00:07 __alex terminalmage: will do
00:10 bhosmer joined #salt
00:10 Rycher007 joined #salt
00:13 jtang joined #salt
00:15 untamo13 joined #salt
00:18 allanparsons can anyone use salt-cloud from the develop branch?
00:18 sroegner__ joined #salt
00:21 andrej thanks again, whiteinge ... I found an interesing post in the saltstack google group about salt_ldap - that, and your links, should keep my head steaming for the rest of the day ;}
00:21 whiteinge :D
00:24 mgw joined #salt
00:30 vbabiy joined #salt
00:32 jtang joined #salt
00:38 elfixit joined #salt
00:38 jeremyBass1 left #salt
00:44 quickdry21 joined #salt
00:47 fxhp Heartsbane, I blame you for heartbleed
00:47 UtahDave :)
00:47 fxhp ; )
00:48 justlooks joined #salt
00:53 magenbrot joined #salt
00:54 ay joined #salt
00:54 mephx joined #salt
00:56 fllr joined #salt
01:01 meteorfox joined #salt
01:01 fllr joined #salt
01:10 srage_ joined #salt
01:13 Luke joined #salt
01:13 srage joined #salt
01:18 cedwards1 joined #salt
01:19 symroe_ joined #salt
01:19 abele_ joined #salt
01:19 Dattas_moon joined #salt
01:19 jpaetzel_ joined #salt
01:19 gwmngilfen joined #salt
01:19 aurigus_ joined #salt
01:20 Valda joined #salt
01:20 steveoliver_ joined #salt
01:21 madduck_ joined #salt
01:21 logandg_ joined #salt
01:21 stotch_ joined #salt
01:21 rjc_ joined #salt
01:21 svs_ joined #salt
01:21 retr0h_ joined #salt
01:22 babilen_ joined #salt
01:22 brewmast1r joined #salt
01:22 lynxman_ joined #salt
01:22 bejer_ joined #salt
01:22 sharp joined #salt
01:22 lynxman joined #salt
01:22 Damoun joined #salt
01:22 vipuls joined #salt
01:23 seb` joined #salt
01:23 zaz\ joined #salt
01:23 Nazzy joined #salt
01:23 Nazzy joined #salt
01:23 juice joined #salt
01:23 cheus joined #salt
01:23 bryanl joined #salt
01:24 mr_chris joined #salt
01:24 fxhp joined #salt
01:24 grep_away joined #salt
01:25 ipalreadytaken joined #salt
01:25 jesusaur joined #salt
01:25 packeteer joined #salt
01:27 jtang joined #salt
01:27 codysoyland joined #salt
01:29 Ryan_Lane joined #salt
01:30 blast_hardcheese joined #salt
01:35 fllr joined #salt
01:37 _fllr_ joined #salt
01:47 masterkorp http://pastie.org/9069291
01:47 masterkorp any ideas ?
01:47 UtahDave masterkorp: can you pastebin that part of your sls file?
01:47 ipalreadytaken joined #salt
01:49 ilbot3 joined #salt
01:49 Topic for #salt is now Welcome to #salt | 2014.1.1 is the latest | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
01:49 masterkorp it makes some sense
01:49 masterkorp (i'm new to salt)
01:49 tedski it's very pythonic
01:50 tedski timezone is a module and system is a method in the module
01:50 tedski what follows in your sls (utc: True) are parameters.
01:50 tedski so, timezone.system(utc=True)
01:51 masterkorp i come from chef, i love test-kicthen do you guys have a tool like it ?
01:51 tedski and America/Los_Angeles is just the unique identifier
01:53 UtahDave masterkorp: there a salt plugin for test-kitchen
01:53 masterkorp hmm, thanks
01:54 masterkorp i just lost like 6 hours making a local test environmt that doesn't really cut the mustard
01:57 tedski our test env is a little heavy... we use the test branch of our gitfs repos and have a cluster of master and minions in openvz.  we burn down and reinstall the minions as necessary.
01:57 tedski it's heavy, but it works
01:57 AdamSewell joined #salt
02:03 masterkorp maybe longer on the road
02:03 masterkorp right know i can't justify it
02:04 UtahDave masterkorp: https://github.com/simonmcc/kitchen-salt
02:05 masterkorp yeah i found it out thank you anyways
02:08 smurfy_ joined #salt
02:10 ekristen joined #salt
02:10 tedski masterkorp: yeah, i've seen another way... you write "absent" states for each state you write
02:11 tedski first you apply the state... then to undo, you undo the state
02:11 tedski but, really, i'd just do it in an openstack or ec2 environment and work with a snapshot
02:14 bhosmer joined #salt
02:15 DaveQB joined #salt
02:19 sroegner__ joined #salt
02:21 jtang joined #salt
02:23 jtang joined #salt
02:27 Rycher007 joined #salt
02:30 possibilities joined #salt
02:34 xl1 joined #salt
02:37 MZAWeb joined #salt
02:37 benturner joined #salt
02:51 TyrfingMjolnir joined #salt
02:53 chutzpah joined #salt
03:01 oleg__ joined #salt
03:11 mpanetta joined #salt
03:15 saurabhs left #salt
03:17 jtang joined #salt
03:18 snuffeluffegus joined #salt
03:21 mikemar10 joined #salt
03:24 possibilities joined #salt
03:27 gamedna joined #salt
03:27 nmistry joined #salt
03:28 possibilities joined #salt
03:28 retr0h joined #salt
03:28 vbabiy joined #salt
03:29 ipalreadytaken joined #salt
03:32 AdamSewell joined #salt
03:40 l0x3py joined #salt
03:46 malinoff joined #salt
03:49 smcquay joined #salt
03:53 oleg__ joined #salt
03:54 catpiggest joined #salt
03:56 bo_ joined #salt
03:59 Luke joined #salt
04:06 aCodinMan joined #salt
04:06 aCodinMa_ joined #salt
04:11 jtang joined #salt
04:16 scarcry joined #salt
04:18 oleg__ joined #salt
04:18 fllr joined #salt
04:19 jetole joined #salt
04:19 jetole Hey guys. I seem to remember reading about saltstack promising not to offer anything in enterprise that it didn't offer in the community release about 18 months ago. I can't seem to find that now and it looks like it is selling enterprise features. Did I misread the original statement, do I misunderstand it now or did they withdraw from that original offer?
04:20 sroegner__ joined #salt
04:24 jcockhren https://github.com/simonmcc/kitchen-salt
04:25 jcockhren sorry. wrong room
04:25 mgw joined #salt
04:37 smurfy_ joined #salt
04:45 garthk_ joined #salt
04:45 oleg__ joined #salt
04:48 xmj jetole: which features did you find in the SaaS which you're missing in the Community...?
04:49 xmj jetole: (btw, that's a 08/15 default business practice. like why else would someone pay for something if he could get it for free...)
04:49 fllr joined #salt
04:51 fllr joined #salt
04:51 oleg__ joined #salt
04:52 jetole xmj, the page http://www.saltstack.com/enterprise/ seems like it is advertising features in the enterprise edition that it seems would not be in the community edition. I'm out of practice as I changed jobs and I'm diving back into it but I feel almost certain I read on the main saltstack homepage 18 months ago that it will never offer features in the enterprise edition that are not in the community edition. I'm not arguing best business practice. In fac
04:52 jetole t I'm not arguing anything. I'm only trying to verify and get a better feel
04:54 xmj jetole: go more into the details, which features?
04:55 jetole xmj, any of them. Does enterprise offer features that are not available on the community edition. If they had said they won't and then changed their mind is all I want to know about.
04:55 garthk joined #salt
04:56 xmj jetole: that's going to be hard to answer without looking at enterprise vs community sources
04:57 jetole xmj, Push and pull remote execution?
04:57 viod joined #salt
04:58 xmj jetole: i'll bet you a beer that's a fancy way of rephrasing something the community edition provides.
04:58 jetole I'm quoting the enterprise page so yeah, not betting. Plus I just got home and only have 4 beers. I want to enjoy them :-)
04:59 jetole xmj, anything on the page http://www.saltstack.com/enterprise/, is it not available in the community edition?
05:00 xmj jesus
05:00 xmj I have no idea. I don't work for salt nor do I have access to their Enterprise code ...
05:00 xmj I'd still be prepared to bet most things there are just shiny phrasings
05:00 jetole I hope so. That's the point I'm getting at
05:01 jetole I mean if that's all it is, marketing speak then cool. If they changed their mind and it's no longer the case then I have to explain to my boss why what I told him seems to be deprecated and no longer valid
05:02 oleg joined #salt
05:05 xmj oh
05:05 xmj haha
05:05 jtang joined #salt
05:14 ipalreadytaken joined #salt
05:15 jetole yeah
05:17 SmileyChris joined #salt
05:18 Katafalkas joined #salt
05:22 garthk joined #salt
05:32 untamo13 joined #salt
05:35 CeBe joined #salt
05:37 packeteer enterprise will just have support
05:39 notimpossible joined #salt
05:41 jetole packeteer, that's what I was really hoping to hear
05:41 jetole :-)
05:41 packeteer thats what Thomas has said all along, it may include nicer packaging or other corporate bs, but its mostly about support
05:45 jetole That's great to hear. I clearly remember someone posting on the main saltstack page a while ago that enterprise would never have features the community edition would not but I can't find that page anymore. It's nothing special but it would just be nice to share
05:48 fllr joined #salt
05:51 bhosmer joined #salt
05:52 Sypher joined #salt
05:52 malinoff joined #salt
05:59 jtang joined #salt
06:04 meteorfox joined #salt
06:04 possibilities joined #salt
06:05 Katafalkas joined #salt
06:06 xmj packeteer: what about the whole "Speed" thing
06:06 xmj Remote execution in seconds not minutes, or hours
06:06 xmj 'cause i've noticed state.highstate taking much longer than i'd expected
06:09 gildegoma joined #salt
06:16 malinoff joined #salt
06:18 jtang joined #salt
06:18 fllr joined #salt
06:21 sroegner__ joined #salt
06:23 justlooks joined #salt
06:30 smurfy__ joined #salt
06:33 ix_ joined #salt
06:34 untamo13 joined #salt
06:40 aCodinMan joined #salt
06:42 hhenkel Hi all, I'm wondering if there is a default location where I should put jinja2 extensions?
06:59 packeteer xmj: ???
07:00 xmj read  http://www.saltstack.com/enterprise/
07:01 packeteer what specifically?
07:02 harobed_ joined #salt
07:04 davidone good morning
07:05 davidone it seems I need to format an hd using salt
07:05 packeteer xmj: i'm sure if they had added delays to execution, at the very least there would be a fork
07:05 davidone so I think I'll take a look at some salt module and then customize it :)
07:05 davidone I hope it will be useful :)
07:07 davidone I need to find out how to retrieve fdisk information from minion to decide how to format it :)
07:08 Kenzor joined #salt
07:14 xmj packeteer: if they had added delays to execution, someone would've found that and given them shit for it ;-)
07:15 packeteer yup
07:16 babilen joined #salt
07:20 yawniek joined #salt
07:20 fllr joined #salt
07:24 Flusher joined #salt
07:35 austin987 joined #salt
07:36 epcim joined #salt
07:36 Katafalk_ joined #salt
07:49 ravibhure joined #salt
07:51 ravibhure joined #salt
07:55 ngee joined #salt
07:56 hhenkel Did anyone manage to use a jinja2 filter extension with salt stack?
07:57 hhenkel What are you guys doing to debug jinja templates?
08:02 topochan joined #salt
08:02 smurfy_ joined #salt
08:09 smurfy__ joined #salt
08:15 carlos_ joined #salt
08:19 16WAAB54V joined #salt
08:19 Katafalkas joined #salt
08:19 wedgie_ joined #salt
08:22 sroegner__ joined #salt
08:24 wedgie joined #salt
08:27 xmj hhenkel: setup a complete local dev environment with dozens of openvz containers.
08:29 hhenkel xmj: I got a dev environment...my problem is how to see the actual values (in a log or std out) that are used within jinja.
08:30 hhenkel Or maybe I got the wrong approach on resolving my issues?
08:30 xmj vzctl exec $CTID cat /path/to/file
08:30 xmj works for me
08:30 xmj or, well, knowing what is *supposed* to be in the config file and how to make it end up there that way ;0
08:35 SmileyChris left #salt
08:36 hhenkel xmj: This is more or less my issue: https://www.refheap.com/74227
08:37 davidone I'm creating a jinja template to create partitions and other stuff on minions
08:37 davidone http://pastebin.com/05ut8MMt
08:37 davidone well, should I use {% ... %} for every row?
08:37 untamo13 joined #salt
08:40 xmj {% if pillar.get('subsidiary', {}).items() in ('', []) -%}
08:40 xmj davidone: remove the dash from pillar :)
08:41 xmj you'll get a list [{'subsidiary':'Belgium'}]
08:41 davidone uh? Which dash?
08:41 xmj eh, nevermind, got confused
08:42 hhenkel xmj: Is there a way to see what actually is returned by the code?
08:42 xmj davidone: flip the order of -*.be.* / international matching
08:43 hhenkel xmj: I guess you're talkin to me... ?
08:43 xmj davidone: your subsidiary is CIT because both hosts match
08:43 xmj arr
08:43 xmj yes
08:43 davidone :)
08:43 xmj hhenkel: flip the order and you should be good
08:43 xmj test-be-dwhi01.example.com matches because   ".*i0[1-9].example.com": is later than
08:43 xmj ".*-be-.*":
08:44 hhenkel xmj: Yes, that is clear...thought it should be possible to test if a pillar was allready set with the jinja code?
08:45 xmj hhenkel: let me know if you find out ! :D
08:45 hhenkel xmj: That's one reason why I wonder if it is possible to see the actual used values....
08:46 yomilk joined #salt
08:48 Calum joined #salt
08:48 davidone well, that's what I am trying to achieve
08:48 davidone http://pastebin.com/WaTdUPC0
08:48 davidone but I don't know how to issue salt '*' command inside jinja
08:49 davidone should I use module.run?
08:51 giantlock joined #salt
08:53 [diecast] joined #salt
09:06 faldridge joined #salt
09:16 wedgie_ joined #salt
09:27 carlos joined #salt
09:30 nn0101 joined #salt
09:30 jnials joined #salt
09:31 austin987 joined #salt
09:37 elfixit joined #salt
09:38 nocturn joined #salt
09:38 rglen joined #salt
09:43 ggoZ joined #salt
09:43 topochan joined #salt
09:45 Gordonz joined #salt
09:46 daglass joined #salt
09:58 hhenkel xmj: It looks like the order has no influence on the pillars that get set. Can you confirm this?
10:02 hhenkel xmj: okay, seems like I had something wrong.
10:04 xmj hhenkel: huh
10:04 xmj hhenkel: does it work now?
10:04 yomilk joined #salt
10:09 viod joined #salt
10:16 hhenkel xmj: hmm, not really
10:22 hhenkel xmj: https://www.refheap.com/74227 => all servers show up with the pillar ' subsidiary: "CIT" '
10:23 sroegner__ joined #salt
10:24 xmj one thing i'd think of would be to make the hostnames mutually exclusive
10:24 xmj like.. any hostname that is belgian isn't matched by the general match in the firstplace
10:25 hhenkel xmj: good idea and how do I match hosts that have no country abbreviation?
10:26 hhenkel My idea was to set a default and if it is matched afterwards overwrite the pillar.
10:27 hhenkel hostnames can be something like "svx-be-blat01.example.com" or "svx-blat01.example.com"
10:29 ckao joined #salt
10:29 Corey_ joined #salt
10:29 hhenkel xmj: In the docs it looks like this should work: http://docs.saltstack.com/en/latest/topics/pillar/#pillar-namespace-flattened
10:30 xmj hhenkel: -intl-
10:30 xmj or something
10:37 austin987 joined #salt
10:40 untamo13 joined #salt
10:53 Xe joined #salt
11:03 mpoole joined #salt
11:06 hhenkel xmj: the behavior looks like a bug to me.
11:10 londo joined #salt
11:15 bhosmer joined #salt
11:16 ekristen joined #salt
11:16 Katafalkas joined #salt
11:18 fllr joined #salt
11:21 bhosmer joined #salt
11:28 fllr joined #salt
11:28 kiorky joined #salt
11:30 fllr joined #salt
11:36 nn0101 joined #salt
11:36 Ryan_Lane joined #salt
11:38 Katafalkas joined #salt
11:39 Schmidt joined #salt
11:40 kiorky joined #salt
11:47 topochan joined #salt
11:48 [diecast] joined #salt
11:53 think-free_ joined #salt
11:53 Schmidt How can I run salt-ssh as another user than root? Man page and google gave me very little
11:53 Schmidt or rather, can I run.
11:54 ravibhure joined #salt
11:57 toastedpenguin joined #salt
11:59 kiorky joined #salt
12:09 ravibhure joined #salt
12:14 anitak1 joined #salt
12:17 yomilk joined #salt
12:18 jeffrubic joined #salt
12:23 sroegner__ joined #salt
12:26 londo joined #salt
12:27 anitakrueger I'm having a problem with the minionfs in 2014.1.1. My server gets most of its files from the environment "syd". Some files come from "base" though. When using the minionfs (enabled in fileserver_backends), the environment is always "syd" though. And I can't seem to change that in my state although I put "saltenv: base" in the file.managed state.
12:27 anitakrueger All of this works fine from the commandline when I run cp.get_file on the file that was pushed by the other minion.
12:28 anitakrueger When I set saltenv to base while running cp.get_file I get the file. When I set saltenv=syd on the commandline, I don't get the file.
12:29 anitakrueger How do I make minionfs use the right saltenv?
12:36 anitakrueger cp.list_master_dirs shows the respective minion pushed files...
12:37 Ryan_Lane joined #salt
12:38 rome joined #salt
12:41 faldridge joined #salt
12:45 jslatts joined #salt
12:52 travisp joined #salt
12:52 yomilk joined #salt
12:53 elfixit joined #salt
12:53 fllr joined #salt
12:56 che-arne joined #salt
12:59 jaimed joined #salt
13:01 rome joined #salt
13:03 wkf joined #salt
13:08 rome joined #salt
13:09 southquist joined #salt
13:09 dwiden joined #salt
13:10 southquist Hello evry
13:11 srage_ joined #salt
13:11 zooz joined #salt
13:11 dwiden Hi, is anyone here familiar with windows vagrant boxes?  I finally got my custom box set up, ready to use for salt.  I want to do some testing but cannot figure out how to connect to it (normally vagrant ssh)
13:13 srage__ joined #salt
13:14 faldridge joined #salt
13:15 southquist I cannot get  compound matches to handle whitespace in grains. For example, this does not work: salt -C 'G@virtual_subtype:"Xen Dom0" and G@os:Ubuntu' test.ping
13:15 anitakrueger @dwiden …what's the error message when you try "vagrant ssh boxname"?
13:16 southquist Anyone knows how to handle whitespace in grains?
13:16 ipmb joined #salt
13:17 racooper joined #salt
13:17 MTecknology I'm trying to decide if salt on mcafee web gateway is a good or bad idea.
13:18 dwiden anitakrueger: The error message is "The machine with the name ... was not configured for this Vagrant environment
13:19 MTecknology I'm thinking not because of so many package conflicts, but I want the benefits of doing that...
13:19 dwiden I'm not sure if I can connect to the box with ssh though, I've been following this guide (https://github.com/WinRb/vagrant-windows) and it uses WinRM to connect during the boot process
13:21 anitakrueger oh…hold on…you are trying to ssh into a Windows VM?
13:21 mpanetta joined #salt
13:21 anitakrueger I thought you were running vagrant on Windows...
13:21 dwiden oh sorry, the host is Linux, guest is Windows 7
13:22 mpanetta joined #salt
13:23 jmreicha joined #salt
13:25 faldridge joined #salt
13:25 southquist Hmm.. grain matching only handles whitespace just fine. The following works: salt -G virtual_subtype:"Xen Dom0" test.ping
13:26 sroegner__ joined #salt
13:29 faldridge joined #salt
13:32 philipsd6 joined #salt
13:34 anitakrueger southquist: you could match a regex instead: salt -C 'G@virtual_subtype:*Dom0 and G@os:Ubuntu' test.ping
13:36 southquist anitakrueger: Aha, you are right, thank you very much. :)
13:36 anitakrueger the whitespace definitely doesn't work though…tried to escape it but even that doesn't work
13:36 rome joined #salt
13:37 tyler-baker joined #salt
13:37 anitakrueger dwiden: sorry…no idea about Windows :(
13:38 loopole joined #salt
13:38 mpanetta So, since I can't find any obvious links on the saltstack page about heartbleed, is salt affected by it?
13:39 southquist anitakrueger: Yea i tried that aswell, no luck.
13:42 mgw joined #salt
13:47 whidbeywalker joined #salt
13:47 lukeg1 joined #salt
13:56 Katafalkas joined #salt
13:59 topochan joined #salt
13:59 undefinednull joined #salt
14:00 xerxas joined #salt
14:00 bhosmer joined #salt
14:04 diegows joined #salt
14:05 Networkn3rd joined #salt
14:12 arrose joined #salt
14:13 travisp BTW Tuesday I used salt to patch all of my servers in one go! All of our servers were patched before my boss could even ask me about the heartbleed bug (and I was even on vacation that day). Rolling out new certs and keys was just as easy. Thanks Salt!
14:17 topochan joined #salt
14:18 Shish :)
14:18 mgw joined #salt
14:22 yomilk joined #salt
14:26 funzo joined #salt
14:30 krichardson joined #salt
14:30 foxx joined #salt
14:32 stevednd joined #salt
14:39 Ryan_Lane joined #salt
14:40 nicksloan joined #salt
14:40 nicksloan joined #salt
14:41 stevednd I am wanting to manage my network interfaces for my servers, and was going to do some elaborate state file when I saw 'salt.states.network'. It looks to do everything I want, but the format is confusing me. Should the 'eth' definitions be nested under the 'system' key, as opposed to how they appear in the docs?
14:41 stevednd http://docs.saltstack.com/en/latest/ref/states/all/salt.states.network.html
14:42 eriko joined #salt
14:42 AdamSewell joined #salt
14:44 ix_ joined #salt
14:44 whiteinge travisp: nice! :D
14:46 wendall911 joined #salt
14:46 whiteinge stevednd: the 'ethX' IDs in those examples map to the "name" argument in the network.managed function
14:46 elfixit joined #salt
14:52 stevednd whiteinge:  then I'm confused. Where does this file go? Is there one on each minion? If not, how does it know which machine to define the 'ethX' on?
14:53 whiteinge states are run directly on the minions
14:53 ipmb joined #salt
14:53 thedodd joined #salt
14:54 whiteinge you write an .sls file on the master and when you run state.sls or state.highstate it gets transferred to the targeted minion(s) and executed there
14:56 diegows is it possible to use two conditions mine get ?
14:56 diegows for example
14:56 diegows mine.get 'roles:fxnetworks-api and environment:qa'
14:59 alunduil joined #salt
15:01 thedodd joined #salt
15:01 diegows I've found it
15:02 MZAWeb joined #salt
15:03 AdamSewell joined #salt
15:03 AdamSewell joined #salt
15:06 jalbretsen joined #salt
15:08 jeremyBass joined #salt
15:09 mgw joined #salt
15:09 jeremyfelt joined #salt
15:11 budrose joined #salt
15:11 nn0101 joined #salt
15:11 sandbender1512 joined #salt
15:12 Networkn3rd joined #salt
15:16 stevednd whiteinge: right, I know they're run on the minions. So I'll create a state file for each server either individually, or with pillars and a template using the 'id' grain and I should be good?
15:17 ekristen joined #salt
15:17 ipmb joined #salt
15:17 whiteinge stevednd: yeah, that should do it
15:17 Gareth morning
15:17 stevednd whiteinge: thanks for the help
15:25 whiteinge 'morning, Gareth
15:27 mike25ro joined #salt
15:28 che-arne joined #salt
15:28 mike25ro stupid question guys: how do i match a salt state based on a pillar that looks like: tags: - tag1 - tag2 .   salt -I "tags:tag1" test.ping   is not working
15:29 nw0428 joined #salt
15:30 nw0428 Hello all! I am just starting to use salt-cloud and am having some issues.
15:30 nw0428 specifically whenever I try to use salt-cloud i get this: "[WARNING ] The cloud driver, 'my-ec2-private-ips', configured under the 'base_ec2_private' cloud provider alias was not loaded since 'my-ec2-private-ips.get_configured_provider()' could not be found. Removing it from the available providers list"
15:30 FarrisG Where do the salt commands get the data about their version #? I have about 25 minions who have definitely been upgraded to 2014.1.1, are definitely running that version (verified via features and code), but report to the master and via 'salt-call --version' as something like '0.16.0-1079-gcde67fc'.
15:30 whiteinge mike25ro: that should do it. have you manually refreshed pillar?
15:31 Gareth whiteinge: morning :) hows it going?
15:31 whiteinge it's cold! and i'm too lazy to put on something warm :-/
15:32 mike25ro whiteinge: thanks man for reminding me i am a moron :)
15:32 mike25ro whiteinge: should i send a blanket over ?
15:32 whiteinge hehe. it would be appreciated
15:32 mike25ro whiteinge:  what country? :)
15:33 Gareth starting to warm up here, yesterday was mid 80s.
15:34 penguin_dan joined #salt
15:34 turtle_ joined #salt
15:35 whiteinge FarrisG: that is loaded into memory when salt starts from the version.py file. maybe the running salt-minion daemon didn't fully restart and the old version is still running?
15:36 FarrisG whiteinge: I've restarted numerous times, even killed the process. I'll look at version.py. The only thing I haven't done, and would like to avoid, is completely uninstalling the minion and re-installing.
15:36 whiteinge did you install from packages or from Git?
15:36 brd joined #salt
15:36 FarrisG whiteinge: packages
15:38 whiteinge huh. i wouldn't expect version.py to pull that kind of version number from a package. what version are you upgrading from?
15:39 nw0428 Whiteinge: I have tried both
15:40 FarrisG we've done upgrades for each major version since ~0.14. The commonality is that the ones exhibiting this behavior haven't reflected their proper version since the first time they were installed.
15:41 FarrisG version.py looks updated and correct (according to diff from the current release) on all affected minions
15:41 no-use joined #salt
15:41 Rycher007 joined #salt
15:44 ghanima joined #salt
15:45 whiteinge FarrisG: do you have a salt/_version.py file on the affected minions?
15:46 ghanima quick question.... I understand there is py script in salt-contrib called facter.py that generates puppet facts as grains
15:46 ghanima what is the process of ditributing that file properly to salt minions?
15:47 whiteinge ghanima: put that file in /srv/salt/_grains/ and run saltutil.sync_grains
15:49 FarrisG whiteinge: Yep
15:49 whiteinge FarrisG: nuke it and restart the minion daemon
15:50 meteorfox joined #salt
15:51 srage joined #salt
15:52 FarrisG whiteinge: Getting somewhere… Now instead of '0.16.0-1079-gcde67fc' it just says '0.16'. But I might have missed something, back in a bit while I test a theory.
15:54 ghanima whiteinge: thanks man
15:56 ghanima whiteinge: how do I regenerate the grains
15:57 luminous can salt-cloud run bootstrap on rackspace/openstack without a pub key?
15:57 whiteinge sync_grains should also reload the grains
15:58 tligda joined #salt
15:58 ghanima whiteinge: so I moved the facter.py file into /srv/salt/_grains I had to create the sub directories salt/_grains
15:58 srage_ joined #salt
15:58 ghanima I ran the saltutil.sync.grains without error
15:58 ghanima than I ran grains.ls
15:58 ghanima and I don't see any of the facter grains
15:58 ghanima did I miss a step
15:59 whiteinge no, that sounds right. did you see facter.py in the sync_grains output
15:59 whiteinge ?
15:59 luminous salt-cloud seems to refuse to run without the ssh_key_file, and then salt-bootstrap fails if I include the param, but the key is not used at openstack
15:59 smurfy__ joined #salt
16:00 mgw joined #salt
16:00 ghanima whiteinge: actually there was no output. Ijust execute from the command line on the master and it returned the prompt
16:00 ghanima is there another file I need in conjuction with facter.py
16:00 ghanima I say a init.py file but I disregarded it
16:00 ghanima sorry I meant to say I saw a init.py file
16:01 whiteinge that __init__.py isn't needed
16:02 quickdry21 joined #salt
16:02 whiteinge ghanima: the full sync command is: ``salt '*' saltutil.sync_grains``. is that what you ran?
16:06 helderco joined #salt
16:06 ghanima whiteinge: correct sudo salt '*' saltutil.sync_grains
16:06 whiteinge hm. let me install facter and double-check that module. sec...
16:07 mrb_ joined #salt
16:07 mrb_ Hey everyone
16:07 mrb_ Got a quick question, kinda new to salt.
16:08 mrb_ Can you copy a file from the Server to the Minion, but from the Minion perspective?  So, on the minion, copy a file from the server?
16:08 ghanima whiteinge: thanks man
16:10 wkf left #salt
16:10 mike25ro mrb_: not sure exactly - i am also pretty new, but you can create a state on the master, but call it on the minion with salt-call state.sls state.to.copy.file
16:10 possibilities joined #salt
16:11 mrb_ mike25ro: Thanks for the response. That won't exactly work in this case.  But good to know about that. Maybe I can use salt-call cp.get_file
16:13 mike25ro mrb_: don't know ... never tried that :) i am sure more solutions are... available
16:14 anitakrueger mrb_: run "salt-call cp.list_master_dirs" on the minion to get a list of directories you have available
16:14 dangra joined #salt
16:14 anitakrueger then run "salt-call cp.get_file sourcedir/file destdir/file"
16:15 mrb_ anitakrueger: Thank you!  This is exactly what I was looking for.
16:16 luminous salt-cloud seems to refuse to run without the ssh_key_file, and then salt-bootstrap fails if I include the param, but the key is not used at openstack
16:16 luminous can salt-cloud run bootstrap on rackspace/openstack without a pub key?
16:16 FarrisG whiteinge: my theory busted… even after uninstalling and reinstalling (without cleaning up all files), the minion still reports the old version even though it's 2014.1.1. Gotta hunt for remnants to figure out where the cruft is. I'll try to dig for it a bit before I give up and nuke everything.
16:16 rlarkin joined #salt
16:17 whiteinge ghanima: can you run: salt '*' puppet.facts
16:17 whiteinge ?
16:17 kaptk2 joined #salt
16:18 whiteinge FarrisG: bleh. sounds like fun :-P
16:18 ghanima whiteinge: that works but from what I read in the documentation
16:18 quickdry21 joined #salt
16:18 luminous FarrisG: just nuke and start fresh
16:18 luminous why bother
16:18 ghanima anytime type of filtering done or a group or role level is done by a gain
16:18 ghanima sorry grain
16:18 rushm0r3 joined #salt
16:18 luminous and if it isn't "easy" to start fresh, make that a priority
16:19 ghanima what I am trying to do is to use predefined puppet facts and use those as filters
16:19 ghanima when executing salt commands
16:19 ghanima if that makes any sense
16:19 luminous use ext_pillar?
16:19 luminous might be a lot easier
16:19 * luminous does not know
16:19 FarrisG luminous: Because we have corner cases where nuking and starting fresh is difficult due to policy unless we could somehow do it all via salt's remote execution (sort of a paradox that led us to using salt in the first place).
16:20 whiteinge ghanima: that makes sense. the facter grains module uses the puppet module so i wanted to see if that was also working on your system
16:20 luminous FarrisG: understandable. I would advocate for making that a priority
16:20 luminous it should be easy to start fresh in development
16:21 whiteinge ghanima: last test, does this command work?  salt '*' cmd.run 'facter -p -j'
16:21 luminous and nothing in production should end up in such a broken state to begin with
16:21 luminous whiteinge: I hate to call on you, but you are all I see around for the last little bit, and who may know about my issue
16:22 luminous whiteinge: do you know aobut this issue with salt-cloud and bootstrap wanting ssh_key_file?
16:22 bhosmer joined #salt
16:22 srage joined #salt
16:22 ghanima whiteinge: hmmm its working on some but not others... I am getting a ruby error You do not have JSON support in your version of Ruby. JSON output disabled
16:23 ghanima whiteinge: I think I have a different version of facter installed on some hosts than others
16:23 luminous ghanima: oh yay to ruby version hell :(
16:23 luminous for thing to saltify!
16:24 luminous *first
16:24 whiteinge luminous: not off the top of my head, sorry. salt-cloud with rackspace on my VPS isn't working either as of 2014.1 and i haven't had a chance to dive in. i'm not using a pubkey either. dunno if something changed or what :-/
16:24 luminous whiteinge: ok, yea, I dropped back to .17.x having too many issues with 2014.1.1
16:24 luminous I guess I will try dropping salt-cloud back again
16:24 luminous thanks for taking a look
16:25 Eugene Random silly feature-request: alias "all" to '*' for the purposes of `salt`
16:25 jcockhren Eugene: :+1:
16:25 Eugene (people with a minion named "all" can feck off)
16:26 whiteinge lol
16:26 ggoZ guys, you have any modules to manage openvpn keys?
16:26 ggoZ generate keys, generate CAs etc
16:27 bo_ joined #salt
16:27 srage_ joined #salt
16:27 ggoZ Rr is openvpn no longer used in community...?
16:27 ggoZ Rr -- Or
16:28 wendall9111 joined #salt
16:29 ghanima whiteinge: so to understand this facter.py script is expecting json output
16:29 whiteinge ghanima: i'm seeing that too on cent6. that's likely the problem
16:29 ghanima ls
16:30 whiteinge the puppet.facts function isn't using the JSON output and is just parsing the CLI output which is why that works
16:30 whiteinge but the facter grains module is asking for JSON. looks like it could use a little feature enhancemnt to remove that as a dep...
16:31 whiteinge i'm not familiar enough with ruby to know how to get JSON support going
16:36 rushm0r3 joined #salt
16:37 srage joined #salt
16:38 jeremyfelt joined #salt
16:39 cedwards joined #salt
16:40 Ryan_Lane joined #salt
16:41 srage_ joined #salt
16:43 KyleG joined #salt
16:43 KyleG joined #salt
16:44 btorch does salt 0.17.5 has any support for setting up ACLs ? like an acl state or something ?
16:49 smurfy__ joined #salt
16:51 rushm0r31 joined #salt
16:53 chrisjones joined #salt
16:54 chrisjones joined #salt
16:54 Ryan_Lane joined #salt
16:56 scoates joined #salt
16:57 ndrei joined #salt
16:59 krichardson btorch: if you are referring to linux file system ACLs, see http://salt.readthedocs.org/en/v0.17.5/ref/modules/all/salt.modules.linux_acl.html
17:03 MedicalJaneParis left #salt
17:04 rushm0r3 joined #salt
17:05 nn0101 joined #salt
17:05 terminalmage anitakrueger: are you using "environment: syd" in your minion config files?
17:06 davet joined #salt
17:06 terminalmage I think that would override "base" as the default environment from which a minion will request files.
17:07 terminalmage anitakrueger: I literally just added code that lets you specify the environment used for minionfs
17:07 terminalmage on Monday
17:07 terminalmage https://github.com/saltstack/salt/pull/11810
17:13 terminalmage anitakrueger: Here, I just created a patch for this fix against 2014.1.1: http://dpaste.com/1775859/
17:14 terminalmage well, not so much a fix as a feature add... but if you use that to patch your master, minionfs should work the way you want it, just add "minionfs_env: syd" to your master config
17:15 Rycher007 joined #salt
17:16 Kenzor joined #salt
17:17 Rycher007 joined #salt
17:18 aCodinMan joined #salt
17:19 rushm0r3 joined #salt
17:20 kaptk2 joined #salt
17:22 mgw joined #salt
17:22 rushm0r3 joined #salt
17:23 tligda joined #salt
17:24 jeremyfelt joined #salt
17:26 ipalreadytaken joined #salt
17:27 rushm0r31 joined #salt
17:29 bemehow joined #salt
17:30 anitakrueger terminalimage: aha, thank you so much! actually…I am not using "environment: syd" in the minion config file…I think it must happen because of the env specified in the top.sls
17:30 terminalmage ahh, possibly
17:30 anitakrueger terminalmage ...
17:30 anitakrueger yea
17:31 terminalmage yeah, please let me know if you find any issues with that patch
17:31 terminalmage it's VERY new code
17:31 terminalmage and I'm likely the only person to have tested it
17:32 anitakrueger ok
17:32 anitakrueger let me see if I can find an environment that I can safely test it in
17:33 MrTango joined #salt
17:33 anitakrueger I thought minionfs_env is in Helium though
17:33 terminalmage cool
17:33 anitakrueger saw it in the docs...
17:33 terminalmage yeah Helium is the next feature release
17:33 terminalmage but I created that patch for you so you could test right now
17:33 terminalmage and not have to wait
17:34 druonysus joined #salt
17:39 rushm0r3 joined #salt
17:40 CeBe joined #salt
17:40 rushm0r3 joined #salt
17:41 Networkn3rd joined #salt
17:43 rushm0r3 joined #salt
17:50 jnials joined #salt
17:50 helderco joined #salt
17:52 jeremyfelt joined #salt
17:52 rushm0r3 joined #salt
17:54 UtahDave joined #salt
17:55 travisp I have a jinja/yaml question that will really only make sense with a hastebin: http://hastebin.com/fukaroripu.vhdl
17:55 travisp I need a dictionary but I'm getting an array
17:56 smurfy__ anyone using salt-ssh to install minions?
17:56 travisp I'm trying to use pillars to build a list of users
17:57 UtahDave travisp: try this http://hastebin.com/macewucelu.vhdl
17:57 UtahDave travisp: you can play around with it here: http://yaml-online-parser.appspot.com/
17:58 arthabaska joined #salt
17:58 UtahDave wait, that's not quite right
17:58 mrb_ left #salt
17:59 UtahDave travisp: http://hastebin.com/wiqopobule.sm
17:59 travisp UtahDave: Thanks a ton!!! That online YAML parser will come in handy too!
17:59 UtahDave you're welcome!
18:02 kiorky joined #salt
18:04 rushm0r31 joined #salt
18:04 anitak joined #salt
18:05 notimpossible joined #salt
18:05 Katafalkas joined #salt
18:06 danielbachhuber joined #salt
18:06 possibil_ joined #salt
18:08 greghaynes left #salt
18:09 ajw0100 joined #salt
18:10 ndrei joined #salt
18:15 jp___ joined #salt
18:16 viod joined #salt
18:18 wendall911 joined #salt
18:19 seb` joined #salt
18:21 rushm0r3 joined #salt
18:24 wedgie joined #salt
18:24 rocket joined #salt
18:25 rocket I am trying to run a svn.latest state but svn isnt found in the path when I use salt-call .. how would I fix that?
18:28 Heartsbane I would like to thank whiteinge UtahDave terminalmage and fxhp for blaming me for the heartbleed bug
18:28 terminalmage lol
18:28 rushm0r3 joined #salt
18:28 terminalmage I did no such thing
18:28 Heartsbane uh huh
18:29 UtahDave Heartsbane: It's the website!!     Heartsbanebleed.com
18:29 terminalmage whiteinge kept calling it Heartsbleed, and I told him he must have been thinking of you
18:30 Heartsbane UtahDave: <sarcasm>I hate you most of all</sarcasm>
18:30 UtahDave :)
18:30 Gareth Heartsbane: The hate only makes him stronger.
18:30 UtahDave You know Heartsbane really loves you when he brings out the <sarcasm> tag.   :)
18:31 UtahDave Heartsbane: we need to go get sushi again soon
18:31 peters-tx 2014-1.0.1 soon?
18:31 jergerber joined #salt
18:31 terminalmage peters-tx: what?
18:31 peters-tx I can feel it
18:32 Heartsbane I am down, btw terminalmage I owe you a beer and some sarcasm
18:32 terminalmage Heartsbane: I plan on collecting on both :)
18:32 peters-tx Uhh, n/m  ... I see the topic
18:33 peters-tx Now I'm left wondering whether or not to ditch the EPEL release...
18:34 jgarr joined #salt
18:35 rushm0r3 joined #salt
18:38 helderco joined #salt
18:41 lukeg1 left #salt
18:41 lukeg1 joined #salt
18:41 Ryan_Lane1 joined #salt
18:44 rocket how does salt-call lookup the path for its binaries?
18:45 gildegoma joined #salt
18:45 rocket eg I am trying svn.latest and svn isnt found but I can find it in my regular path at /usr/local/bin
18:46 UtahDave rocket: what use are you running it as?
18:46 rocket I am running at root on freebsd
18:47 j4son w/in 21
18:48 jonthegimp joined #salt
18:50 UtahDave rocket: hm. I'm not sure.  especially on freebsd.   Could you open an issue on that?  We'll get a freebsd person on it
18:51 davet joined #salt
18:51 rocket thanks UtahDave
18:53 UtahDave np.  sorry I wasn't able to help you.  I don't have any experience with freebsd.  I looked at the svn execution module and it's just shelling out to the svn commands
18:53 Corey_ joined #salt
18:53 UtahDave so there's something odd causing the salt-call not to see them on the path
18:54 UtahDave Corey_: I'm holding something of your hostage
18:56 Katafalkas joined #salt
18:59 rocket UtahDave: it has to be some sort of path/env issue .. I am stepping through the code now for clues
18:59 UtahDave rocket: cool.  let me know if you need any help
19:04 mpanetta joined #salt
19:07 rushm0r3 joined #salt
19:07 ajw0100 joined #salt
19:08 Corey joined #salt
19:09 rocket UtahDave: its not escaping the password properly
19:09 napper joined #salt
19:09 nebuchadnezzar joined #salt
19:10 rocket either its a bug or something I am doing wrong
19:11 UtahDave rocket: have you tried putting your password in single quotes in your sls file?
19:11 rocket thats how it was
19:11 ndrei joined #salt
19:12 rome joined #salt
19:12 UtahDave was there a #  in the password?
19:12 rocket [ and ] and : are in the password
19:13 bhosmer joined #salt
19:14 possibilities joined #salt
19:14 UtahDave hm.
19:17 ajw0100 joined #salt
19:19 rocket opts += ('--password', \'{0}\''.format(password))
19:20 rocket oops there is a typo there
19:21 rocket opts += ('--password', '\'{0}\''.format(password))
19:22 rocket that is the correct line for that file now
19:22 smurfy__ joined #salt
19:24 UtahDave what line is that?
19:25 rocket line 65 of svn.py
19:26 rocket replaces
19:26 rocket opts += ('--password', password)
19:26 rocket it quotes the password on the commandline
19:27 rocket so when the command is run it looks like svn --password '[:0]foo-bar[:1]
19:27 rocket so when the command is run it looks like svn --password '[:0]foo-bar[:1]'
19:28 UtahDave cool.  care to open a pull request with that change?
19:30 rocket UtahDave: I wouldnt mind which repo do I need to clone?
19:31 rocket and is there a contrib agreement etc I need to sign?
19:31 UtahDave https://github.com/saltstack/salt
19:31 UtahDave no contrib agreement.  Everything we do is Apache 2.0.  So by sending the pull request you retain your copyright, but agree to release it as Apache 2.0 as well.
19:32 rocket ok .. just making sure
19:32 UtahDave I'm not a lawyer, but that's what I understand happens
19:32 joshbaptiste joined #salt
19:33 pydanny joined #salt
19:33 Gareth UtahDave is not a laywer but he plays one on IRC.
19:33 perfectsine joined #salt
19:34 fxhp terminalmage: I kept calling it heartsbleed as well, and I was thinking of Heartsbane, thats why I blammed him, haha
19:35 UtahDave Gareth: :)   I advise you to not talk to the police
19:35 terminalmage lol
19:35 Gareth hah
19:35 rocket https://github.com/saltstack/salt/pull/11908
19:36 UtahDave thanks, rocket!
19:38 fragamus joined #salt
19:41 UtahDave rocket: looks like cachedout already merged it!
19:42 rocket wow before the jenkins job was even done? :p
19:42 kedo39 joined #salt
19:43 ndrei_ joined #salt
19:45 jonthegimp Hello - I'm wondering if I can get a little help with a grains config - Im getting a 'No Top file or external nodes data matches found' from my minions
19:45 jonthegimp some further info: http://pastebin.com/QaWwLY8C
19:46 * UtahDave looking
19:48 UtahDave jonthegimp: what's the path to your top.sls
19:48 UtahDave ?
19:48 UtahDave jonthegimp: also, I think you need to move everything below the    '*':   one indent level
19:48 evelo joined #salt
19:49 jonthegimp top.sls is in the directory indicated by the file_root in etc salt master
19:49 evelo join #virtualbox
19:49 jonthegimp I will give that a try and report back
19:49 UtahDave k
19:50 jonthegimp I did move everything below the '*' by one indent level (as I understand it, just a simple space), but that yielded the same results
19:53 jonthegimp If it makes a difference, I earlier had this environment working with a List, and after switching to Grains, things have gone poorly for me.
19:55 UtahDave jonthegimp: use 2 spaces for all indent levels
19:55 UtahDave jonthegimp: do you have master_tops set up?
19:58 jonthegimp ok - set the indent level to 2 spaces, that did not produce anything different. I do not have master_tops set up. I will look into it.
19:58 ksalman is there a "pass" equivalent for empty salt state?
19:58 ipmb joined #salt
19:59 UtahDave ksalman: I've seen people use    file.absent on a file in /tmp
19:59 ksalman UtahDave: that will work, thanks!
19:59 UtahDave np
20:02 bemehow joined #salt
20:04 lukeg1 left #salt
20:05 kballou joined #salt
20:05 icarus joined #salt
20:11 Jahkeup joined #salt
20:13 ggoZ joined #salt
20:15 untamo13 joined #salt
20:15 jonthegimp UtahDave: I've added an entry for master_tops, defining ext_nodes to the same directory as the base file roots. This is latest error after running a state.highstate: No matching sls found for 'node_type:users' in env 'base'
20:17 UtahDave jonthegimp: Oh, I didn't mean for you to set up master_tops if you didn't need it.  I was just trying to see why you were getting that error
20:18 jonthegimp UtahDave: Ah - ok.
20:21 jonthegimp new debug file from the minion - looks like it is seeing the correct data: http://pastebin.com/wFXbh4sP
20:21 travisp UtahDave: In regards to the YAML issue you helped me with the structure now looks correct but, using account.user doesn't seem to work, I get "jinja variable 'dict' object has no attribute 'user'"
20:26 MZAWeb joined #salt
20:28 tligda joined #salt
20:29 alunduil joined #salt
20:32 jonthegimp UtahDave: I was able to get this working - I removed the reference to '*': and the state.highstate command completed correctly. I appreciate your help & attention - thanks.
20:32 smurfy__ joined #salt
20:34 UtahDave jonthegimp: you're welcome!
20:34 UtahDave travisp: let me pull that link up again
20:34 bhosmer joined #salt
20:34 ipalreadytaken joined #salt
20:35 travisp UtahDave: I definitely think it's an issue on my end, I'm just not sure what I'm missing
20:35 travisp UtahDave: Ah I think I figured it out
20:36 UtahDave what was it?
20:36 travisp I threw my output in a python dict and poked at it, lemme try it in salt now...
20:37 UtahDave ok
20:39 travisp In python I had to do account['a1']['user'] but doesn't seem to work in salt though, so I guess I didn't figure it out :/
20:39 travisp Here's the old link btw: http://hastebin.com/fukaroripu.vhdl
20:40 rome joined #salt
20:41 Daemonik joined #salt
20:41 chiui joined #salt
20:42 Daemonik I am attempting to run a SaltMaster version 2014.1.1 (zip file downloaded from github) in a SmartOS base64 13.4.0 zone and am not sure how to meet the requirement for apache-libcloud. Is any one else running a Salt-Master in a SmartOS base64 zone?
20:43 Ryan_Lane joined #salt
20:49 wendall911 joined #salt
20:52 UtahDave Daemonik: apache-libcloud is a python module.  is there pip for smartos?
20:53 UtahDave travisp: what's the output of   {{ account }}   ?
20:53 monokrome joined #salt
20:55 mgw joined #salt
20:55 zekoZeko joined #salt
20:56 zekoZeko hey everyone. I'm really new at salt, I was wondering whether it's possible to override/extend builtin modules?
20:57 zekoZeko Specifically, i'd like salt.states.user to manage users in LDAP
20:58 zekoZeko or rather, i'd like existing formulas etc. to work without modification.
20:58 Daemonik Just made another zone and ran salt-bootstrap.sh in it, everything seemed to go well
20:59 UtahDave zekoZeko: Hm.  Yeah, you could probably make that work.   You'd just have to create an execution module whose __virtual__() function returns user  and then set your minion to use that as its user provider
20:59 UtahDave Daemonik: nice
21:00 paletto joined #salt
21:00 arthabaska joined #salt
21:00 paletto good evening
21:01 Daemonik left #salt
21:01 travisp UtahDave: http://hastebin.com/vinejidice.dos
21:01 UtahDave hey, paletto
21:01 paletto i am just a starting salt user but always tryin the advanced stuff ;-)
21:02 paletto salt is a great piece of software, but i am stuck with salt-virt
21:02 paletto where do i store the config.options
21:02 paletto ?
21:02 UtahDave travisp: try   account['user']
21:02 KyleG joined #salt
21:02 KyleG joined #salt
21:04 zekoZeko UtahDave: any hints where to look for examples of stuff like this being done?
21:04 UtahDave paletto: I haven't used salt-virt much,   but with Salt, in general, config.option  items can be defined in the salt master's config, in pillar, or in the minion's config
21:06 UtahDave zekoZeko: well, here's some examples: https://github.com/saltstack/salt/blob/develop/salt/modules/mac_user.pyhttps://github.com/saltstack/salt/blob/develop/salt/modules/win_useradd.pyhttps://github.com/saltstack/salt/blob/develop/salt/modules/solaris_user.py
21:06 UtahDave https://github.com/saltstack/salt/blob/develop/salt/modules/mac_user.py  https://github.com/saltstack/salt/blob/develop/salt/modules/win_useradd.py  https://github.com/saltstack/salt/blob/develop/salt/modules/solaris_user.py
21:07 paletto so i have to define them in /etc/salt/master?
21:07 travisp UtahDave:I get: "object has no element Undefined"
21:07 UtahDave You'd just create another module that satifies all the required functions in these execution modules.  Then the user Salt State can use it
21:07 UtahDave paletto: Yeah, I think so.    Is there a url where you're looking right now?
21:08 travisp UtahDave: but for some reason this works: {account[account.keys()[0]]["user"]}}
21:08 zekoZeko UtahDave: i was looking for the minion 'providers' option, that part was eluding me :)
21:08 paletto http://salt.readthedocs.org/en/latest/topics/virt/nic.html
21:08 travisp UtahDave: to be exact (I was missing the first curly): {{account[account.keys()[0]]["user"]}}
21:09 zekoZeko UtahDave: thanks, i'll get working on an ldap user module. I couldn't find one so far, guess i'll have to dig into it.
21:09 paletto i have setup virt nic as described in /etc/salt/master
21:09 paletto with the kvm default bridge virbr0
21:10 paletto but when i try to deploy a new vm i tries to create a new nic on br0 (which is the default in salt) which obviously fails
21:11 UtahDave paletto: I'm not sure. I haven't used salt-virt.   You might try asking on the salt-users mailing list.  I know several salt-virt users watch that list
21:11 zach kind of a gross question...can salt-cloud use Azure?
21:12 paletto zach: yes
21:12 UtahDave zach: http://docs.saltstack.com/en/latest/ref/clouds/all/salt.cloud.clouds.msazure.html#module-salt.cloud.clouds.msazure
21:12 paletto http://salt.readthedocs.org/en/latest/topics/cloud/azure.html
21:12 paletto oh sorry
21:12 paletto UtahDave: thx i will try this
21:13 UtahDave sorry, I don't have the answer for you.  We should probably update those docs to specify where those configs should be.
21:13 zach hooray. Need to use salt-cloud to spin up 3k windows machines, install an MSI, run for 45 minutes, then delete
21:14 Andrevan joined #salt
21:14 luminous zach: wow
21:14 zach Cheaper to do a sandbox at azure than one locally
21:14 zach about $53 per hour for 3k machines @ azure
21:14 luminous why? so many for so short?
21:15 paletto UtahDave: no problem, i am used to figure things out
21:15 zach to install our monitoring software, collect some data (to make sure it works as expected)
21:15 Corey zach: Build a golden image with that MSI installed, then deploy 3K of those.
21:15 zach Corey: can you do that with azure? I'm not remotely close to being a windows guy
21:16 Corey zach: To my understanding, *every* cloud provider lets you do that.
21:16 zach Perfect, I shall give it a try
21:17 cewood joined #salt
21:17 zach Silly microsoft: Your password can't be longer than 16 characters.
21:23 srage joined #salt
21:24 ajw0100 joined #salt
21:28 smurfy_ joined #salt
21:30 Ryan_Lane joined #salt
21:31 SEJeff_work What is the best way to create an rpm from a git checkout of salt?
21:31 jcockhren https://github.com/jordansissel/fpm
21:32 SEJeff_work Yeah other than that
21:32 jcockhren SEJeff_work: is good in general for packaging
21:32 Corey *snerk*
21:32 SEJeff_work python setup.py bdist_rpm is broken
21:32 SEJeff_work which is fail :)
21:32 Corey SEJeff_work: koji has a thingy last I checked.
21:32 jcockhren I have't using it for salt specifically
21:34 UtahDave I think the package directory in the salt repo has everything you need to build an rpm
21:34 UtahDave It's been a while since I've built one, though
21:38 travisp UtahDave: Finally figured it out, I used a JSON to YAML converter and found my fatal mistake, I was giving my array of user's a key "- a1" when I should have just used a dash
21:40 UtahDave ah, ok'
21:41 whiteinge who is SEJeff_work and should we trust him?
21:42 UtahDave :)
21:44 Ryan_Lane1 joined #salt
21:44 Gareth whiteinge: absolutely not.
21:46 whiteinge SEJeff_work: run python ./setup.py sdist to make the source tarball. everything else is in salt/pkg/rpm
21:50 Daemonik joined #salt
21:50 Daemonik I want to run a Salt master version 2014.03.10-1 in a SmartOS base64 13.4.0 zone. Is any one else doing this?
21:51 nocturn joined #salt
21:56 Daemonik There's no reason salt-minions at version 0.17.5 can't work with a salt-master version 2014.1.1 right?
21:56 UtahDave Daemonik: I think that should be fine
21:58 bhosmer joined #salt
21:58 zain_ joined #salt
22:04 eliasp joined #salt
22:05 sifusam joined #salt
22:06 crazysim joined #salt
22:06 zach I'm kind of surprised...Azure is kind of nice
22:06 jillr joined #salt
22:06 snuffeluffegus joined #salt
22:07 troyready joined #salt
22:07 UtahDave zach: I haven't used it at all yet.
22:07 urban joined #salt
22:07 snuffeluffegus joined #salt
22:08 jaimed joined #salt
22:08 zach UtahDave: I'm abit surprised with how cheap it is
22:09 zach UtahDave: $15/mo for Windows 2008/2012 with 768MB ram and 150GB disk
22:09 UtahDave huh, not bad
22:09 arthabas_ joined #salt
22:10 elfixit joined #salt
22:13 fllr joined #salt
22:15 jaimed joined #salt
22:23 rocket joined #salt
22:24 viod joined #salt
22:26 mgw joined #salt
22:28 Networkn3rd joined #salt
22:33 krichardson left #salt
22:34 DaveQB joined #salt
22:44 APLU joined #salt
22:44 Ryan_Lane1 joined #salt
22:59 jeremyfelt joined #salt
23:02 Ryan_Lane when using masterless salt, are pillars cached?
23:02 UtahDave Ryan_Lane: I'm not sure, actually
23:03 Ryan_Lane heh, I wasn't either :)
23:03 Ryan_Lane the docs don't address masterless salt very well
23:03 diegows joined #salt
23:03 whiteinge i suspect pillar is cached. custom modules are
23:03 Ryan_Lane it may depend on how you include them in the config
23:04 Ryan_Lane for instance, if you use http://docs.saltstack.com/en/latest/ref/configuration/minion.html#module-dirs then the modules don't need to be included via the roots
23:04 Ryan_Lane and they aren't cached
23:05 Ryan_Lane also, from what I can tell with external pillars via masterless salt (which works, but is undocumented), it doesn't seem to be cached
23:07 faldridge joined #salt
23:09 hhenkel joined #salt
23:11 possibilities joined #salt
23:12 bemehow_ joined #salt
23:14 helderco joined #salt
23:14 KyleG joined #salt
23:14 KyleG joined #salt
23:15 TheGerm joined #salt
23:16 TheGerm Hey All! Question for you...this is killing me....
23:16 TheGerm I am trying to install a file only once
23:16 TheGerm if i delete the file on the server i do not want salt to reinstall
23:17 TheGerm i am setting a grain on the minion and trying to read it in the state as so:
23:17 TheGerm {% if salt['grains.get']('repo') != 'True' %}   .....   {% endif %}
23:17 jeddi TheGerm: use a unless: parameter to check for another flag file that you create .. it's a bit messy, but that's what i'd do int he first instance.
23:17 TheGerm jeddi... i tried that
23:18 jeddi TheGerm: code?  (in a pastebin)
23:18 TheGerm it didnt work too well
23:18 TheGerm please hold
23:18 jeddi i'd avoid using grains to identify file install (once, historically) ...
23:19 TheGerm http://pastebin.com/vjKqqrxy
23:20 TheGerm basically installing a deb repo, and repo keys and then the script adds the keys and performs a apt-get update and removes its self and key files
23:20 jeddi TheGerm: can you go back a step - why do you want to manage a file from salt (ie. intsalled from the salt master cli) that you also want to manage locally on the box (ie. remove without risk of it being re-installed)
23:21 TheGerm i have to deploy to hundreds of servers... not fun for me to manage them locally on every machine
23:21 jeddi oh.  can't you just add the repo by managing a file under /etc/apt/sources.list.d/{something.list}   ... and add the key if the key doesn't exist (cmd / unless)
23:22 jeddi TheGerm: i had a look at doing something like this a while ago, adn the first half was really easy, but i do recall there was some confusion (mine) on using apt-key to identify the key you've imported ... but it certainly was doable.
23:22 TheGerm we changed out our repo servers and this is required for the change of our currently deployed systems.... all new servers will not have this issue
23:23 jeddi you can do 'apt-key list' to identify if the key is already been imported.   so whack a grep onto it, and that's your - unless: line.
23:23 TheGerm "unless: apt-key list | grep -q D88E42B4"
23:23 TheGerm it checks
23:23 jeddi yeah - it's that hex string that seemed to be machine-unique ...
23:23 TheGerm if the key is found there is nothing returned.....
23:24 TheGerm its key unique
23:24 jeddi http://pastebin.com/qVUY83nw
23:24 jeddi that's what i did a while back .. same as you'v done.
23:25 TheGerm haha damn close
23:26 jeddi i think i meant to come back to that, as it was on a single box (only place i cared) ... but didn't yet scale.  more @TODO's .. :)    can you just grep for the presence / absence of the  description key?
23:26 jeddi or gpg if that's appropriate.   my apt-key list output on my desktop is 50 lines.
23:27 TheGerm yea ours is not that long
23:28 TheGerm so my question is why isnt this "{% if salt['grains.get']('repo') != 'True' %}" working?
23:28 jeddi on servers they should be much shorter, sure.   yeah - i think with my code for pushing salt repo out to my debian boxes i just grep'd for joehealy@gmail  .... which is perhaps not massively future-proof. ;)
23:28 TheGerm if i set it to none is still install anyway
23:28 jeddi do you need to restart the salt minion to get the nwe grains loaded?
23:29 manfred TheGerm: first off, you are setting it to true, and checking if it is not True
23:29 TheGerm i have tried playing with it forcing == and then it completely skips that section all together no matter what
23:29 manfred second, i only see one endif
23:29 Ryan_Lane when using jinja in pillars, is it possible to include pillar data from another file?
23:29 Ryan_Lane one that may not in the pillar path?
23:30 manfred in your pastebin atleast
23:34 Ryan_Lane UtahDave: ^^ any idea?
23:35 toofer joined #salt
23:37 TheGerm joined #salt
23:37 toofer Hey guys, I'm running in to something strange with file.managed. I have a config file with API key info in it, and Salt does not seem to even attempt to copy over the contents of the file. Any hints why this might be happening to me?
23:37 TheGerm joined #salt
23:38 TheGerm sorry all lost internet for a minute
23:38 UtahDave Ryan_Lane: I think you can include any file you want
23:38 toofer I vaguely recall something about YAML not managing long keys for SSH, but I just have a file that I want to be copied over to every client so I don't believe that something like that applies.
23:38 TheGerm but from the pastbin, the second endif just didnt get copied, its there in the code
23:38 UtahDave toofer: can you pastebin what you've got so far?
23:39 toofer UtahDave: sure
23:39 Ryan_Lane UtahDave: via the include directive?
23:39 UtahDave I believe so
23:42 Katafalkas joined #salt
23:42 Ryan_Lane seems it inteprets shell scripts, so that won't work so well, but it's good to know include works otherwise ;)
23:43 UtahDave yeah
23:45 Ryan_Lane1 joined #salt
23:52 jslatts joined #salt
23:53 cruatta joined #salt
23:56 ajprog_laptop joined #salt

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