Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-01-13

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

All times shown according to UTC.

Time Nick Message
00:11 rojem joined #salt
00:11 fllr joined #salt
00:28 DanGarthwaite joined #salt
00:32 nkuttler elithrar: sounds like a feature request.. should be easy considering there's already salt.modules.upstart.status
00:34 elithrar Hm, that might work since upstart responds with the right info (service redis-<instancename> status works)
00:35 elithrar nkuttler: I assume modules are CLI only, and states are for state files (duh)? Coming across from Puppet
00:38 nkuttler you can write custom state modules http://docs.saltstack.com/ref/modules/index.html
00:39 nkuttler errr
00:39 nkuttler http://docs.saltstack.com/ref/states/writing.html
00:40 forresta you can also call a command line module from a state: http://docs.saltstack.com/ref/states/all/salt.states.module.html
00:42 zzzirk_wk joined #salt
00:54 pdayton joined #salt
00:55 elfixit joined #salt
01:10 Furao joined #salt
01:19 djinni` joined #salt
01:21 xzarth_ joined #salt
01:21 malinoff joined #salt
01:25 oz_akan_ joined #salt
01:30 jeddi elithrar: never discount the quick-n-dirty benefits of doing an upstart call via cmd.run (not sure if the upstart module does what you want natively - i'm not an ubuntu user)
01:39 elithrar jeddi: Good point. This is a single server, masterless setup so I can probably afford to be a little pragmatic ;)
01:40 elithrar (building DO/AWS images via Packer using Salt, so if my server gets hosed I can rebuild it in < 30 mins)
01:41 elithrar I think I fixed the issue though: since disabing a service adds a file called service.override and writes "manual" to that file, I needed to ensure I wasn't *removing* the original init file beforehand
01:43 elithrar I'll still need to use either cmd.run or module.run - func: upstart to ensure the new instances are running, thoguh.
01:51 davet joined #salt
01:54 jeddi elithrar: I've become *very* pragmatic since using salt .. it's a much faster way to be :)
01:54 jeddi There is always time to refactor.
01:54 Ryan_Lane joined #salt
01:56 harkx joined #salt
01:58 Furao joined #salt
01:58 diegows joined #salt
01:59 Furao joined #salt
01:59 yomilk joined #salt
02:00 oz_akan_ joined #salt
02:00 elithrar If I use module.run: - func: upstart.restart I can "solve" the issue, although it'll always force a restart on every highstate pass (few and far between, TBH)
02:01 elithrar Is there a simple way to instead module.run: - func: upstart.status - and if that returns *False*, then module.run: - func: upstart.restart?
02:02 elithrar If not I'll just wear the restarts.
02:06 psyl0n joined #salt
02:12 taion809 joined #salt
02:15 Furao joined #salt
02:16 Linz joined #salt
02:23 helderco joined #salt
02:23 philipsd6 Are there any SaltStack people around? I have a Salt formula for consideration...
02:24 Marion joined #salt
02:24 helderco Hey guys
02:31 Furao joined #salt
02:32 cnelsonsic joined #salt
02:33 yomilk joined #salt
02:36 harkx joined #salt
02:37 KabukiWookie joined #salt
02:37 helderco joined #salt
02:39 AdamSewell joined #salt
02:43 mgw joined #salt
02:45 forresta philipsd6, I don't work for salt, but I do have the ability to create formula repos, what's up?
02:46 helderco joined #salt
02:47 AdamSewell Could someone point me to the documentation that covers using conditional statements in a conf file?
02:47 forresta AdamSewell, jinja wise you mean?
02:48 AdamSewell forresta, i believe so yea. basically i need to check the contents of a grain and then decide to include or exclude a section of a config file
02:48 KabukiWookie left #salt
02:49 colinbits joined #salt
02:49 forresta AdamSewell, it would be just like you'd do in a state.
02:50 forresta basically just {% if grains['grain'] == 'whatitshouldbe' %} \n this block \n {% else %} \n this block \n {% endif %}
02:51 AdamSewell got ya
02:51 scoates I would pass that, explicitly, in the template's context instead of using grains at the config file's jinja level, but I'm a but uptight about those kinds of things. (-:
02:52 forresta scoates, yep that's another option for sure.
02:52 scoates I just hate globals… even __salt__ bothers me a little (-;
02:52 scoates (I'd kind of prefer to import it)
02:58 yomilk joined #salt
02:59 Hipikat joined #salt
03:02 zzzirk_wk joined #salt
03:05 xl1 joined #salt
03:10 psyl0n joined #salt
03:12 KabukiWookie joined #salt
03:12 ajw0100 joined #salt
03:13 KabukiWookie Quick question about the maximum directory depth in which state files are allowed to reside.
03:13 favadi joined #salt
03:13 KabukiWookie If I create a directory depth of more than just one subdirectory
03:14 KabukiWookie I am getting a 'No states found for this minion' error
03:14 KabukiWookie When doing a salt '<host> state.highstate
03:15 KabukiWookie Is it possible bury a statefile in multiple layers of subdirectories?
03:15 KabukiWookie Thanks
03:18 AdamSewell forresta, is it possible to apply grains to minions after they've been created? I'm sure it is but it doesn't really say so on the grains doc
03:18 AdamSewell i guess through the /etc/salts/grains?
03:19 forresta what do you mean by after they have been created?
03:20 AdamSewell like, i want add a new grain to each minion
03:21 AdamSewell what would be the simplest way to do that?
03:21 forresta AdamSewell, oh yea there are docs on that: http://docs.saltstack.com/topics/targeting/grains.html#writing-grains
03:21 forresta it's pretty easy, just goes into the _grains dir once you write them
03:21 psyl0n joined #salt
03:22 bhosmer joined #salt
03:26 dpac|away joined #salt
03:28 favadi joined #salt
03:29 KabukiWookie To clarify my situation:
03:29 forresta KabukiWookie, so you have /srv/salt/asdf/asdf2/asd3.sls
03:30 KabukiWookie At the moment I am having my state files in /srv/salt/httpd for instance
03:30 forresta did you just modify your top to reference it as asdf.asdf2.asd3?
03:30 forresta ok
03:30 KabukiWookie Which works fine
03:30 forresta right
03:30 KabukiWookie Once I add an additional layer /srv/salt/service/httpd (and adjust the top.sls)
03:30 forresta what do you adjust it to
03:30 KabukiWookie I am getting the 'No states found for this minion error;
03:31 KabukiWookie Are dots required instead of full dir paths?
03:31 forresta yea
03:31 forresta if you have /srv/salt/service/httpd
03:31 forresta /init.sls
03:31 forresta reference it like service.httpd
03:32 KabukiWookie Yes
03:32 forresta if it's /srv/salt/service/httpd/asdf.sls, reference it like service.httpd.asdf
03:32 KabukiWookie Thanks heaps!
03:32 forresta np
03:32 KabukiWookie That works
03:32 forresta great
03:33 KabukiWookie I was not able to find that in any of the tutorial docs unfortunately
03:34 forresta yea you can see it used here: http://docs.saltstack.com/ref/states/top.html#other-ways-of-targeting-minions
03:34 forresta but it's not explicitly explained.
03:34 bretep forresta: I was able to get things going with salt-cloud yesterday.
03:34 forresta bretep, oh what did you end up changing to get it worked?
03:35 bretep Unfortuanly documentation was off and some major bugs exist in salt-cloud. I'll have a couple pull requests ready.
03:36 bretep salt-cloud just needs a bit more love. :)
03:36 forresta bretep, nice I'm sure techhat will be happy to hear that
03:36 forresta it's weird you were having issues on the same version that works flawlessly for me
03:36 bretep I'm sure he will.
03:36 bretep Do you use maps and deploy into every EC2 region?
03:36 forresta I don't use EC2
03:36 bretep Or even just anything other than us-east-1
03:37 bretep Ahhh...
03:37 bretep That explains it. :)
03:37 forresta we don't use salt at work, so all my salt-cloud knowledge is just messing with it at home
03:37 forresta and amazong is a bit too expensive to do that with
03:37 bretep Cool.
03:37 forresta *amazon
03:37 forresta it's not cool, they hurt my wallet :(
03:38 bretep The cool wasnt for aws. :)
03:38 forresta ahh
03:38 bretep Personally I use digital ocean for personal stuff
03:38 forresta as do I
03:39 scoates amaZOMG
03:39 forresta heh
03:39 bretep At work we use aws because they have all the security certifications our customers require.
03:40 forresta yea totally understandable
03:40 bretep The only other cloud that mees those requirements is azure...
03:40 forresta heh
03:40 forresta no thanks
03:40 bretep I prefer to run my linux boxes on linux.
03:40 bretep Alright, I've got to finishup the pull requests
03:41 bretep There are a couple more serious bugs, but I don't think I can tackle them anytime soon. I'll have to create some issues
03:42 scoates we're just pretty deeply embedded in the AWS ecosystem (we use a bunch of the services). And it's very expensive. /-:
04:04 oz_akan_ joined #salt
04:06 oz_akan__ joined #salt
04:13 AdamSewell joined #salt
04:25 Furao joined #salt
04:34 AdamSewell joined #salt
04:48 ajw0100 joined #salt
04:48 pdayton joined #salt
04:57 ajw0100 joined #salt
05:01 oz_akan_ joined #salt
05:08 ajw0100 joined #salt
05:09 JesseCW joined #salt
05:16 Linz joined #salt
05:16 quickdry21 joined #salt
05:19 pdayton joined #salt
05:25 forresta philipsd6, You around?
05:32 anuvrat joined #salt
05:35 ajw0100 joined #salt
05:40 Ryan_Lane joined #salt
05:51 ossalk joined #salt
05:53 Furao joined #salt
05:58 favadi joined #salt
06:01 sroegner joined #salt
06:12 ossalk Hi All. I want to use pillar and want to assign a vlan variable based on salt network.subnets.
06:13 ossalk my top.sls http://pastebin.com/JtcBRKrH
06:13 ossalk my osrelease.sls http://pastebin.com/Fgt49jDL
06:13 ossalk my hostvlan.sls http://pastebin.com/vdL0H4XU
06:14 ossalk osrelease returns tag : win8_desktop
06:14 ossalk but hostvlan returns nothing
06:14 Furao ossalk: I'm pretty sure salt['network.subnets'] return a list not a string
06:17 mr_chris joined #salt
06:17 Furao it should be more {% if "192.168.6.0/24" in salt['network.subnets'] %}
06:17 Furao and even that
06:17 ossalk Hmm ok let me check
06:17 Furao salt['network.subnets'] is a function not the output of it
06:17 Furao it should be {% if "192.168.6.0/24" in salt['network.subnets']() %}
06:17 Furao with the () after the func
06:19 ossalk still returns nothing
06:19 Furao saltutil.refresh_pillar
06:20 ossalk tried but my minions says NONE
06:20 ossalk by the way I am learning it :)
06:21 Furao minions say none to what?
06:22 ossalk as a result of refresh_pillar
06:22 ossalk salt "*" saltutil.refresh_pillar
06:22 Furao ah it will always return None
06:22 Furao once it's refresh'ed can you salt pillar.get vlan
06:23 ossalk yes but pillar.items returns tag: but not returning  vlan
06:24 ossalk so pillar.get vlan returns empty
06:25 ossalk interesting
06:25 ossalk I added {% if "192.168.0.0/24" in salt['network.subnets']() %} vlan: server {% endif %}
06:25 ossalk and now it returns vlan: server .
06:26 ossalk but when I use salt "*" network.subnets
06:26 ossalk it gives myclient:     - 192.168.6.0/24 as a resutl
06:32 mohae joined #salt
06:36 ConceitedCode joined #salt
06:44 ossalk Same problem. Even if I use {% if salt['network.in_subnet']("192.168.6.0/24") %} master always thinks of minion in its own subnet range. Maybe a bug...
06:46 SkyRocknRoll joined #salt
06:46 SkyRocknRoll joined #salt
06:47 SkyRocknRoll i am newbie to saltstack. any books or  recommended tutorials ?
06:48 malinoff SkyRocknRoll, http://docs.saltstack.com/topics/tutorials/walkthrough.html
06:48 forresta SkyRocknRoll, while old, http://www.youtube.com/watch?v=yphLKSjnSU8 is also pretty good
06:48 malinoff http://docs.saltstack.com/topics/tutorials/states_pt1.html
06:50 rmt joined #salt
06:50 SkyRocknRoll malinoff, forresta thanks :)
06:50 forresta np
06:52 slav0nic joined #salt
07:00 cewood joined #salt
07:06 kermit joined #salt
07:18 linjan joined #salt
07:30 juasiepo joined #salt
07:32 middleman_ joined #salt
07:35 giantlock_ joined #salt
07:35 Iwirada joined #salt
07:36 gasbakid joined #salt
07:37 matanya joined #salt
07:38 Shenril joined #salt
07:45 fllr joined #salt
07:50 gammalget joined #salt
07:50 sroegner joined #salt
07:52 cnelsonsic joined #salt
07:54 fxhp joined #salt
08:00 aleszoulek joined #salt
08:03 elithrar joined #salt
08:03 martoss joined #salt
08:07 balboah joined #salt
08:08 cnelsonsic joined #salt
08:08 martoss joined #salt
08:08 martoss1 joined #salt
08:12 ndrei joined #salt
08:17 ravibhure1 joined #salt
08:19 bowen joined #salt
08:25 harobed_ joined #salt
08:25 harobed_ joined #salt
08:26 harobed_ joined #salt
08:27 ndrei joined #salt
08:52 ekarlso joined #salt
08:53 yomilk joined #salt
08:55 helminthe joined #salt
09:00 taion809 joined #salt
09:03 BbT0n joined #salt
09:12 Shenril joined #salt
09:13 Damoun joined #salt
09:29 ckao joined #salt
09:37 ndrei joined #salt
09:39 sroegner joined #salt
09:40 esoel_ joined #salt
09:46 fllr joined #salt
09:49 ndrei joined #salt
09:54 ndrei joined #salt
09:59 deepakmdass joined #salt
10:10 salt_ joined #salt
10:12 gasbakid joined #salt
10:14 salt_ left #salt
10:15 anuvrat joined #salt
10:16 salt__ joined #salt
10:18 bowen left #salt
10:18 salt__ i have installed the salt master in my machine and salt minion in another machine. i have added the ip of salt_master in the /etc/salt/minion. but when i ran salt '*' test.ping it throws me with the following error  salt '*' test.ping [ERROR   ] Error parsing configuration file: /etc/salt/master - while parsing a block mapping   in "<string>", line 14, column 1:     interface: 0.0.0.0     ^ expected <block end>, but found '<scalar>'
10:31 druonysuse joined #salt
10:33 druonysus-deskto left #salt
10:40 Nazca joined #salt
10:44 druonysus-ws joined #salt
10:44 seanz joined #salt
10:51 bbinet salt__: this looks like salt-master config issue
10:52 bbinet double check your /etc/salt/master file on your salt-master server
10:53 salt__ ok i will let you know what is there in my salt master
10:54 salt__ # The address of the interface to bind to interface: 0.0.0.0  # Whether the master should listen for IPv6 connections. If this is set to True, # the interface option must be adjusted too (for example: "interface: '::'") #ipv6: False  # The tcp port used by the publisher publish_port: 4505  # The user to run the salt-master as. Salt will update all permissions to # allow the specified user to run the master. If the modified files caus
10:54 salt__ # master subscription connection. If enough minions connect you might start # seeing on the console(and then salt-master crashes):    Too many open files (tcp_listener.cpp:335)    Aborted (core dumped) # # By default this value will be the one of `ulimit -Hn`, ie, the hard limit for # max open files. # # If you wish to set a different value than the default one, uncomment and # configure this setting. Remember that this value CANNOT
10:54 bbinet salt__: can you pastebin the whole file please?
10:55 salt__ sure sir
10:56 che-arne joined #salt
10:59 salt__ http://pastebin.com/Y7y9L7dr
10:59 salt__ please take a note of it
11:07 juasiepo joined #salt
11:07 SkyRocknRoll joined #salt
11:07 SkyRocknRoll joined #salt
11:08 Linz joined #salt
11:12 pdayton joined #salt
11:13 bbinet salt__: try to use quotes around 0.0.0.0 interface
11:13 bbinet so that it looks like:
11:13 bbinet interface: "0.0.0.0"
11:15 bbinet salt__: and I thing that line 152 is invalid
11:16 bbinet and useless in your case: don't use acl for now
11:20 salt__ actually it has been commented
11:21 salt__ please let me know whether i need to add the IP_SALTMINION in the /etc/salt/master
11:27 sroegner joined #salt
11:28 bbinet salt__: nope, the minion will connect the master, not the other way around
11:28 percussiverepair joined #salt
11:30 percussiverepair joined #salt
11:32 salt__ please let me know why i am getting this error and how can i get rid of the error
11:33 bbinet salt__: you're still getting the error ?
11:34 bbinet salt__: have you restarted the salt-master daemon?
11:35 bbinet if it still fails, can you post the updated version of your /etc/salt/master file?
11:35 salt__ yes, whether do i have change the  interface: "0.0.0.0"  in /etc/salt/master
11:36 salt__ yes, i am getting the errror whether do i want to change the  interface: "0.0.0.0"  in /etc/salt/master
11:37 bbinet and line 152 is commented out?
11:37 bbinet and salt-master daemon has been restarted
11:37 bbinet ?
11:38 salt__ this is my 152 nd line "# capabilities to non root users. By default this capability is completely"
11:38 martoss1 left #salt
11:39 bbinet see line 152 here: pastebin.com/Y7y9L7dr#li152
11:39 bbinet (should be commented)
11:39 salt__ sorry i have commented 152 nd line as per paste bin link #    - test.ping
11:40 bbinet ok
11:40 salt__ still i have this error
11:40 bbinet salt__: the last line should also be commented
11:40 bbinet "remaining part of the files are commented" (line 173)
11:40 bbinet oh sorry
11:41 bbinet haven't read it ;)
11:41 salt__ yes done
11:41 bbinet salt__: is there any file available in /etc/salt/master.d/ ?
11:42 salt__ no files
11:42 bbinet salt__: line 67. is also invalid
11:43 bbinet salt__: same for line 42.
11:43 bbinet salt__: line 32. and 33. too
11:44 salt__ shall i comment these lines raise max open files hard limit debian
11:44 diegows joined #salt
11:44 krak3n` joined #salt
11:44 salt__ 32, 33
11:44 bbinet salt__: yes, all of these should be commented
11:45 bbinet salt__: because these are inline doc comments
11:45 bbinet should never have bee uncommented
11:45 bbinet been
11:47 fllr joined #salt
11:48 * apergos is looking for cro, apparently asleep
11:57 apergos zz_cro: when you wake up, I have that salt testing environment with pile of containers on single host, each with their own minion
11:58 apergos wondering now how many worker threads you had going; this is for issue https://github.com/saltstack/salt/issues/8087
11:59 jeddi joined #salt
11:59 apergos I can spin up and spin down a cluster of containers off any git commit (as long as the tree isn't busted at that point) so I'd like to duplicate your results and then get going on finding out which commit broke things
12:00 ggoZ joined #salt
12:01 ggoZ left #salt
12:01 martoss joined #salt
12:02 martoss2 joined #salt
12:11 Corey Good morning, Salt folks.
12:20 elithrar joined #salt
12:30 salt__ yes, i have done all things
12:30 salt__ and i am gettting the error
12:30 salt__ sorry getting
12:31 ekristen joined #salt
12:31 ekristen morning
12:32 salt__ and my error is [WARNING ] Failed to open log file, do you have permission to write to /var/log/salt/master? Failed to authenticate, is this user permitted to execute commands?
12:32 ekristen the map file that shows that you can use grains does not work for me with salt-cloud 0.8.11 — I get a minion key error https://salt-cloud.readthedocs.org/en/latest/topics/map.html
12:36 elfixit joined #salt
12:39 jrdx joined #salt
12:43 bhosmer joined #salt
12:48 backjlack joined #salt
12:54 mpanetta joined #salt
13:16 sroegner joined #salt
13:18 AdamSewell joined #salt
13:19 sroegner joined #salt
13:25 gadams999 joined #salt
13:34 ndrei joined #salt
13:39 gnu-man joined #salt
13:42 deepakmdass joined #salt
13:44 martoss joined #salt
13:46 blee joined #salt
13:47 fllr joined #salt
13:49 brianhicks joined #salt
13:49 fllr joined #salt
13:50 martoss joined #salt
13:51 tessellare joined #salt
13:52 jslatts joined #salt
13:52 martoss1 joined #salt
13:58 oz_akan_ joined #salt
13:59 gnu-man joined #salt
14:08 dangra joined #salt
14:10 deepakmdass joined #salt
14:10 vejdmn joined #salt
14:13 racooper joined #salt
14:13 juicer2 joined #salt
14:17 fllr joined #salt
14:17 jrdx joined #salt
14:18 bhosmer joined #salt
14:19 _fllr_ joined #salt
14:25 AdamSewell joined #salt
14:32 pdayton joined #salt
14:35 ekristen arg, the mine functions doesn’t make any sense
14:36 timoguin joined #salt
14:40 N-Mi joined #salt
14:43 sroegner ekristen: ?
14:43 ekristen sroegner: greetings
14:46 danielbachhuber joined #salt
14:47 arthurlutz1 joined #salt
14:49 ekristen sroegner: I can do mine.get ‘os:Ubuntu’
14:49 ekristen sroegner: but I cannot do mine.get ‘role:blah’
14:50 mordred joined #salt
14:50 sroegner sure you can
14:51 sroegner sec
14:51 ekristen well its not working
14:51 ekristen how about that ;)
14:51 ekristen my minion config has mine_functions: grains.items: []
14:51 oz_akan_ joined #salt
14:52 Topa left #salt
14:54 sroegner are you looking to get the value of the grain itself or use the grain to target nodes?
14:55 elfixit joined #salt
14:55 sroegner salt-call mine.get 'roles:hadoop_master' network.interfaces grain
14:56 sroegner uses the hadoop_master role to pull network.interfaces from taht host
14:57 sroegner but you have to qualify the pattern with the grain arg at the end
14:59 ekristen let me try
14:59 ekristen ok that worked
15:00 gadams9991 joined #salt
15:00 sroegner :-) told ya
15:00 ekristen so now how to conform that into my jinja template
15:01 cyberbob joined #salt
15:01 fllr joined #salt
15:01 sroegner https://github.com/saltstack-formulas/hadoop-formula/blob/master/hadoop/settings.sls
15:01 sroegner that call is in there
15:01 Gifflen joined #salt
15:01 sroegner took it from there right now
15:02 cyberbob hi all, I am running a few machines in the cloud and want to setup hostname for those machine as AWS sets hostnames as ip-10.xxx.xx so i ma suffering on howto set hostnames for AWS instances with saltstack
15:03 ekristen sroegner: thanks!
15:03 sroegner ekristen: np
15:04 cyberbob has someone suffered from the same case ?
15:06 mgw joined #salt
15:07 sroegner cyberbob: i just pushed a formula that solves this for us: https://github.com/saltstack-formulas/hostsfile-formula
15:07 sroegner comes with a separate state that only sets the hostname
15:08 timoguin sroegner, there was already a hosts formula: https://github.com/saltstack-formulas/hosts-formula
15:08 timoguin is yours different in some way?
15:08 sroegner i think it is - i couldn't get the hosts formula to do anything
15:08 timoguin really? i'm using it just fine.
15:09 sroegner hostsfile strictly uses the minion id
15:09 sroegner yopu use that in ec2 only?
15:09 timoguin nah, digitalocean and vagrant too.
15:09 sroegner hm
15:09 dangra joined #salt
15:10 timoguin but i set my minion ids manually during provisioning
15:10 timoguin to the fqdn
15:10 sroegner i see - the opposite approach
15:10 timoguin i need to get dhcp/dns working properly
15:10 sroegner as this is a chicken-egg kind of problem maybe we need both
15:11 timoguin just haven't had time to set it up inside a VPC
15:11 sroegner i have salt-cloud or my vagrant env set the mini-id for me which is why i can rely on that
15:12 sroegner i have salt-cloud or my vagrant env set the minion-id for me which is why i can rely on that
15:12 sroegner oops
15:12 colinbits joined #salt
15:13 opapo joined #salt
15:14 Ahlee anybody got a minute to talk ext_pillars?
15:15 Ahlee I'm assuming pillars are not the same as _modules given they have a pillar_roots definition in master conf
15:15 Ahlee so I"m assuming I just drop foo.py in pillar_roots, and then define my ext_pillar in there, and call it via... foo?
15:16 ravibhure joined #salt
15:16 Ahlee oh bother, it looks like pillar just provides information
15:17 rlarkin joined #salt
15:19 esoel_ joined #salt
15:19 gnu-man joined #salt
15:20 cyberbob sroegner: :) actually I am not using salt-cloud. All the instances are triggered by a program created by our dev. team so not able to set the hostname while provisioning the ec2 instance. In my case the hostnames need to set after the instance provisioning is done
15:21 sroegner cyberbob: which is exactly what i am doing
15:22 sroegner the state in the formula sets the hostname after what is in /etc/salt/minion_id
15:23 timoguin joined #salt
15:23 sroegner which means you have to set the minion id to the fqdn
15:26 favadi joined #salt
15:26 iri- joined #salt
15:27 iri- Hi all. I just upgraded to the develop branch and salt refuses to find my state files. What gives? How to debug?
15:27 iri- I'm running `salt-call -ldebug state.highstate`, and the output doesn't contain my /srv/salt directory
15:28 tzero joined #salt
15:28 tzero joined #salt
15:31 pass_by_value joined #salt
15:34 bhosmer joined #salt
15:39 forresta joined #salt
15:42 ekristen sroegner: do you know if there is way to order the results of a mine.get
15:43 gadams9991 left #salt
15:43 sroegner ekristen: you could try appending a |sort
15:44 sroegner http://jinja.pocoo.org/docs/templates/#list-of-builtin-filters
15:44 cnelsonsic joined #salt
15:46 alunduil joined #salt
15:48 kaptk2 joined #salt
15:50 quickdry21 joined #salt
15:53 gnu-man joined #salt
15:53 toastedpenguin left #salt
15:53 ccase joined #salt
15:53 toastedpenguin1 joined #salt
15:54 psyl0n joined #salt
15:54 gnu-man joined #salt
15:56 tyler-baker joined #salt
15:57 mgw joined #salt
16:02 mgw1 joined #salt
16:03 jalbretsen joined #salt
16:11 imaginarysteve joined #salt
16:11 bhosmer_ joined #salt
16:12 Iwirada left #salt
16:20 AdamSewell Does anyone know if there is a monitoring platform that uses salt? I'd like to be notified of when a server has issues and what not.
16:21 mpanetta Hey guys.  I am having a unique issue today... Not quite sure what is going on, but my pkg.installed state seems to be braindead.  I ran it locally using salt-call, but it acts like it isn't even trying to do the install...
16:21 mpanetta I can manually install packages using yum on the system fine.
16:22 forresta mpanetta, can you run the command with -l debug, anything there?
16:22 mpanetta yeah here is the output:
16:22 mpanetta https://gist.github.com/anonymous/431b0739570e44a8ee3f
16:22 bhosmer_ joined #salt
16:23 iri- Is there a salt-dev mailing list?
16:23 mpanetta Well a snippet...
16:23 forresta what version of salt are you on mpanetta?
16:24 mpanetta I don't understand, how it says there are no packages available to install, when I can install them manually...
16:24 mpanetta 0.16.4 still
16:24 sroegner that error message usually means you got the package name wrong
16:24 sroegner is it really -dev?
16:24 nahamu -devel on redhat-ish systems, usually
16:25 sroegner exactly
16:25 mpanetta Hmm, could one package throw the whole thing off?
16:25 forresta yea
16:25 mpanetta And yes, that package name is wrong... :(
16:25 mpanetta Thanks
16:25 forresta because you have this 'mypkgs' ID right? So all those packages are part of a single ID, so if part of it fails, the whole thing fails
16:26 mpanetta Hmm, yeah that should have been obvious to me I suppose.  The error threw me off. :(
16:26 forresta you can blame it on monday if you want.
16:26 mpanetta Ok :P
16:27 zach it is monday's fault, always
16:27 mpanetta Lack of caffeine...  Only had one tea so far :P
16:28 mgw joined #salt
16:29 mpanetta Yeah, removing that package from the list fixed it.
16:29 mpanetta Thanks guys!
16:29 mpanetta This is what happens when you have a weekend in between things ;)  Brain goes on vacation :P
16:29 forresta Gareth, and I are just glad it's monday, end of on-call, wooo
16:30 mpanetta Woot!  On call sucks :P
16:30 mpanetta Esp on weeends.
16:31 iri- Hi all. I just upgraded to the develop branch and salt refuses to find my state files. What gives? How to debug?
16:31 iri- I've tried salt-call -l debug, but I don't see anything indicating any problems.
16:31 iri- Nor do I see my salt repository /srv/salt referenced.
16:32 iri- if I run the highstate I get "No Top file or external nodes data matches found"
16:32 iri- or if I "state.show_sls" a specific sls I get "No matching sls found for 'devops-packages' in env 'base'"
16:33 cdsrv joined #salt
16:33 taion809 joined #salt
16:36 mpanetta iri- did you accidentally overwrite your master config? Maybe your file_roots and pillar_roots got overwritten?
16:37 iri- mpanetta: downgrading fixed the problem, so I don't think so
16:37 mpanetta Hmm
16:37 forresta iri-, you might want to make sure that the develop branch is building properly
16:38 forresta last night when I was working on some stuff builds were failing on tests in develop, so they might be doing some work in there.
16:38 iri- so now I'm trying to salt-bootstrap to a daily or stable and I don't seem to be able to find my way out
16:38 iri- No matter what I do I'm now on version 2014.1.0-330-gb1b338b.
16:39 forresta what are you running as your bootstrap command?
16:39 forresta and I assume you uninstalled salt from the machine in question?
16:39 iri- I think when I originally ran "bootstrap-salt -m daily" this morning I was on 0.17.4
16:39 iri- forresta: does bootstrap not handle that for me?
16:40 forresta not unless it's had some major changes lately.
16:40 forresta Maybe see if there's an overwrite option to add onto the command
16:40 forresta I can't remember if it overwrites files by default
16:41 higgs001 joined #salt
16:41 iri- it has an option to overwrite /etc files which I don't want.
16:41 jrdx joined #salt
16:41 forresta yea, as far as I know it doesn't handle downgrades, but I also haven't tried it myself, so I'm not sure.
16:42 eclectic joined #salt
16:42 iri- hm. I uninstalled via apt. I verified the salt command was gone. Then I reinstalled via bootstrap. It said it was installing 0.17.4 again (good), but then salt --versions-report now says 2014.1.0-330-gb1b338b
16:42 forresta oh so you did remove everything
16:42 forresta maybe 2014 is now the stable release in apt? What happens if you update the apt-cache then check it?
16:43 iri- (forresta: after you suggested that the bootstrap script doesn't handle that)
16:43 forresta joehh, did you drop the new release into the apt repo?
16:43 iri- the apt version claims to be 0.17.4-1saucy
16:43 forresta hmm
16:43 iri- which salt says /usr/bin/salt
16:43 Gareth forresta: Im still technically on call until I hand that pager over :)
16:43 iri- dpkg -S /usr/bin/salt says salt-master, which apt claims is 0.17.4-1saucy
16:45 forresta Gareth, you guys have a physical pager?
16:45 forresta iri-, hmm
16:46 iri- same with </usr/lib/python2.7/dist-packages/salt/__init__.py> which belongs to salt-common which dpkg -l claims is 0.17.4-1saucy.
16:47 iri- however: python -c "import salt; print salt.__version__" prints 2014.1.0-330-gb1b338b
16:48 iri- interestingly, that file is quite old, older than my apt-remove and bootstrap
16:48 Gareth forresta: yeah.  we use pager duty as well.  never quite got that one :)
16:48 iri- so I've tried apt-get remove'ing salt-common, salt-master and salt-minion
16:48 forresta yea that's why I am confused, pagerduty should replace an actual pager.
16:48 Gareth forresta: well its not a pager pager...its a cell phone.
16:48 forresta ahhh ok
16:48 forresta that makes more sense
16:49 iri- forresta: now versions-report correctly says 0.17.4.
16:49 gnu-man joined #salt
16:49 jankowiak joined #salt
16:50 iri- which appears to function, phew.
16:50 bigie joined #salt
16:50 forresta iri-, weird, glad you got it figured out.
16:50 iri- finally climbed out of that hole.
16:51 Nexpro joined #salt
16:51 forresta yea, I'd suggest not going straight to develop
16:51 forresta playing with some fire
16:51 forresta :P
16:51 iri- forresta: yeah, my mistake. I was wanting to try out dockerio
16:52 iri- which I figured was only in develop because salt told me it didn't exist
16:52 iri- but now I discover is actually in 0.17.4
16:53 forresta iri-, it's kinda broken in 0.17.4
16:53 iri- forresta: :(
16:53 forresta there were a bunch of patches for it, you might want to drop in those states from the develop branch into _states
16:53 iri- indeed if I try running ' salt '*' docker.get_containers' I just get '"docker.get_containers" is not available.'
16:53 forresta yea it sucks, someone around here fixed a bunch of stuff which is nice htough
16:53 iri- forresta: is there a way of methodically doing this?
16:54 forresta ehhhhhhhhh, not really, best way is to just copy the files.
16:54 quickdry21 Hey everyone, I'm installing some python requirements into a virtualenv using virtualenv.managed. I recently enabled system_site_packages, but now I'm getting a "CommandNotFoundError: Could not find a `pip` binary" when I run state.highstate on new nodes.
16:54 iri- forresta: it annoys me that the whole point of salt is to automate things but I have to manually copy some files into my repo
16:54 forresta quickdry21, did you install pip?
16:54 quickdry21 Yeah
16:54 forresta iri-, I don't disagree!
16:54 forresta quickdry21, does salt fail on the second run?
16:54 quickdry21 Yeah
16:54 forresta same error?
16:55 quickdry21 Yeah.
16:55 forresta run the highstate with -l debug
16:55 iri- forresta: where do I put it? /srv/salt/_states?
16:55 Marion joined #salt
16:56 forresta iri-, yep, just _states in your file_roots, so by default /srv/salt
16:56 iri- forresta: seriously, I'm going to the salt repo in github to find the raw link to these files to wget them to my repository and I feel almost a physical repulsion from doing so
16:56 forresta iri-, http://docs.saltstack.com/ref/states/writing.html#using-custom-state-modules there's some docs on it
16:56 forresta don't forget to sync them
16:56 forresta you probably need the docker module too
16:57 forresta I think there were some fixes in there.
16:57 quickdry21 The system_site_packages=False in virtualenv.managed doesn't seem to create the pip binary in the virtualenv/bin.
16:57 quickdry21 Where using virtualenv from the command line with --system-site-packages does.
16:58 dave_den quickdry21: don't you want system_site_packages=True  ?
16:59 quickdry21 Thats what I meant, :D
16:59 forresta can you pastebin/gist your state quickdry21 ?
17:00 quickdry21 Sure.
17:05 xmltok_ joined #salt
17:05 quickdry21 http://pastebin.com/nUqXPezN
17:06 quickdry21 Significant bits.
17:07 dave_den that state won't even run the virtualenv.managed states
17:07 KyleG joined #salt
17:07 KyleG joined #salt
17:08 clearclaw WTF: State grains.list_present found in sls grains is unavailable
17:10 dave_den clearclaw: there is no grains.list_present
17:10 dave_den there is grains.present, though
17:10 scott_w joined #salt
17:10 forresta iri-, lol yea
17:16 higgs001 joined #salt
17:17 ajw0100 joined #salt
17:18 martoss joined #salt
17:20 zooz joined #salt
17:27 troyready joined #salt
17:30 cachedout joined #salt
17:36 joehillen joined #salt
17:43 iri- joined #salt
17:44 matanya joined #salt
17:53 quickdry21 so I figured out my problem, I guess when adding system_site_packages: True to a virtualenv.managed, it doesn't install pip by default (which is the default action for virtualenv command). Added     - pip: True and all is well again.
17:54 ajw0100 joined #salt
18:00 nliadm anyone know if the job cache and returner were split out yet?
18:00 Linz joined #salt
18:01 bhosmer_ joined #salt
18:01 Linz joined #salt
18:03 Ryan_Lane joined #salt
18:03 abe_music joined #salt
18:09 clearclaw dave_den: This says there is a grains.list_present: http://docs.saltstack.com/ref/states/all/salt.states.grains.html
18:10 gnu-man joined #salt
18:11 dave_den clearclaw: https://github.com/saltstack/salt/commit/366c9153a5c6d86785a041c916cfce4b1d87a3f1
18:11 dave_den it's not in 0.17. only in 2014.1 and git develop
18:11 thrashr888 joined #salt
18:12 clearclaw Awwww, shoot.
18:12 jimallman joined #salt
18:12 forresta created https://github.com/saltstack/salt/issues/9721 so a version add is put in the docs.
18:13 clearclaw Any of y'all know when the Ubuntu packages will be out?  My develop-branch salt master builds 0.17.4 minions that use the current package...
18:13 tmwsiy ok I have an interesting idea and wondering how much I wold have to bend salt to make it work. Looking to be able to wake up machines on remote subnet's in an environment where the magic packet will not cross router hops. I think I can guarantee that at least one minion will be up in a given broadcast domain.
18:14 tmwsiy but I basically want to identity a minion in the same broadcast domain as the trageted machines and then proxy a wake up packet through that minion
18:14 dave_den clearclaw: 0.17.4 is the latest. 2014.1 is an rc
18:17 dave_den tmwsiy: you can either create a custom module that you can execute on the minion in the broadcast domain, or you can make a WOL script and execute that on the minion in the broadcast domain and specify the MAC to wake
18:17 dave_den the WOL code for the network.wol runner function is dead simple
18:17 analogbyte does anybody know a way to iterate over all minions on the master? I'd like to schedule a state which provides pwgen passwords to all minions via pillar
18:19 dave_den analogbyte: here's an example of how to get a list of minions from a target and expr_form:  https://github.com/saltstack/salt/blob/develop/salt/utils/master.py#L227
18:20 dave_den analogbyte: how are you trying to execute the state?
18:21 bhosmer joined #salt
18:22 analogbyte dave_den: I wanted to use basic scheduling, or use the event system to detect new keys
18:23 analogbyte dave_den: thanks for the link, but I don't think this is usable from a state... but I guess I could use a salt client python script and call that usingt salt events/by schedule
18:23 dave_den do you need to know the list of all minions, or would simply triggiring a state run to '*' when an event is fired work?
18:24 kickerdog joined #salt
18:24 amckinley joined #salt
18:25 analogbyte nope, '*' would not work, as I need the hostnames/fqdn/saltid/whatever to match the generated passwords in the pillar to their respective minions
18:25 ajw0100 joined #salt
18:25 analogbyte but I guess I can use salt python client without an issue... there is actually no need to use a state for this
18:26 analogbyte even nonsensical, as I think about it ;)
18:28 dave_den sounds like a job for a custom runner module to me
18:28 Gifflen joined #salt
18:29 Gareth terminalmage: ping
18:29 thrashr888 joined #salt
18:29 terminalmage Gareth: sup?
18:30 Gareth terminalmage: think anymore about that UpSCALE talk idea for SCALE? :) "If you give a programmer a cookie..."
18:30 terminalmage Gareth: not yet... when's the deadline?
18:31 forresta Man, Gareth reminds me of a pushy salesman, 'you know you wanna buy this!' :P
18:31 Gareth forresta: Can I interest you in some land in Florida?
18:31 terminalmage Gareth: tbh, I am not that clever....
18:31 forresta heh
18:32 terminalmage but I'll bounce some information off the guys
18:32 terminalmage see if anyone else can come up with something
18:32 terminalmage Gareth: all I have right now is that tag line :)
18:33 Mua joined #salt
18:33 Gareth terminalmage: heh.  I just thought it was a great idea for a talk.
18:33 markm joined #salt
18:34 terminalmage I know!
18:34 Gareth terminalmage: follow the origina story....substitute where necessary.
18:34 forresta I still think you should turn UtahDave's toaster oven into a salt master for salt conf
18:34 terminalmage Gareth: yeah, that sounds like a plan, I'll look at it today and tomorrow. I actually have a copy of that book stowed away in a box in my garage, I think
18:35 terminalmage with a bunch of other childhood stuff
18:35 Gareth forresta: you've heard of the netbsd toaster right?
18:35 forresta Gareth, yes, I was looking at turning my raspberry pi into a salt master and putting it in a toaster, but the pi is a little underpowered
18:36 Gareth forresta: maybe the new Einstein board :)
18:36 nahamu forresta: clearly you should build the pi into a slightly oversized and wired salt-shaker...
18:36 forresta Gareth, hmm maybe.
18:36 forresta nahamu, yea taht would be funny
18:36 forresta or just a cardboard salt box
18:36 nahamu was just thinking about the salt box. :)
18:37 terminalmage Gareth: Ha! found it... and I have a couple ideas now
18:37 terminalmage especially around the part where the mouse gets carried away and sweeps the entire house
18:37 terminalmage :D
18:37 nahamu or this: http://www.ebay.com/itm/JADEITE-GREEN-GLASS-SALT-BOX-JAR-CANISTER-CONTAINER-w-LID-COLUMN-DESIGN-/380814599993
18:38 Gareth terminalmage: excellent :)
18:38 teskew joined #salt
18:38 * nahamu will stop now.
18:38 forresta nahamu, lol
18:38 terminalmage Gareth: this could easily be done for project managers as well
18:38 terminalmage and maybe more effectively
18:38 terminalmage what do you think/
18:38 terminalmage ?
18:40 Gareth Thinking what would get the most laughs and most amusement.
18:40 terminalmage yeah
18:42 andresr joined #salt
18:47 ilbot3 joined #salt
18:47 topic for #salt is now Welcome to #salt - SaltConf Jan 28-30, 2014! http://saltconf.com (reg deadline January 3) | 0.17.4 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/
18:48 srage joined #salt
18:48 JesseC joined #salt
18:49 JesseC Does salt support resuming after a reboot in the lastest version?
18:49 aleszoulek joined #salt
18:50 JesseC It's been a while since I've updated my scripts, been using 0.16~ for a while.
18:50 forresta JesseC, nope
18:51 JesseC forresta: dang, ah well, it's still awesome.
18:51 forresta yea
18:52 new-to-salt joined #salt
18:55 bhosmer joined #salt
18:55 davet1 joined #salt
18:55 new-to-salt Hello! I am pretty new to salt and am having trouble getting my EC2 instances tagged upon creation. this seems like it should be straight forward, but I have yet to figure it out.
18:55 seanz joined #salt
18:55 pelme joined #salt
18:56 * robawt pokes seanz
18:56 new-to-salt is it something that should be specified in the cloud.profiles?
18:57 seanz robawt: How can I help you?
18:57 pelme is it possible to specify config directories (i.e. cachedir) relative to the config file itself, rather than absolute paths?
18:57 travisfischer joined #salt
18:59 pelme (i would like to use salt-ssh with configuration from a local directory, rather than /etc or system paths)
19:00 druonysus joined #salt
19:00 druonysus joined #salt
19:00 gnu-man_ joined #salt
19:00 ndrei joined #salt
19:01 kickerdog1 joined #salt
19:02 fishpen0 joined #salt
19:04 gadams999 joined #salt
19:09 analogbyte is there a way to match minions to pillar data named after them? that means, i have a minion called abc, and a pillar file abc.sls
19:09 higgs001 joined #salt
19:11 imaginarysteve joined #salt
19:11 ajw0100 joined #salt
19:13 test__ joined #salt
19:13 imaginarysteve joined #salt
19:15 test__ i have centos 6.4 as master. win7 and ws2k08 as two minions. when i try the test.ping it comes back with "failed to authenticate, is this user permitted to execute commands?"
19:17 new-to-salt @ test__ try adding sudo before running that command
19:18 test__ even though im running as root?
19:18 new-to-salt if you are running as root, that wouldn't be the issue
19:19 new-to-salt when I have seen this though, it has been a permissions issue on the master
19:19 test__ i've seen several old threads regarding the issue that was supposely been fixed with this latest version. so its not a permission on the minion?
19:19 Gifflen_ joined #salt
19:20 test__ where do you go to check for permission on master?
19:21 cdcalef joined #salt
19:22 mgw joined #salt
19:23 cdcalef how come salt-ssh has problems using ssh host keys?
19:23 cdcalef keeps telling me permission denied when i'm specifying a ssh key that i can use to login with `ssh` fine.
19:23 psyl0n joined #salt
19:24 cdcalef it says 'permission denied for host' then asks for a password.  i put a non-sense password in and it logs in fine and runs my command.
19:26 austin987 joined #salt
19:27 kickerdog1 left #salt
19:29 fishpen0 joined #salt
19:29 toastedpenguin2 joined #salt
19:32 bhosmer joined #salt
19:33 viraptor1 joined #salt
19:34 jankowiak joined #salt
19:35 apergos cro!  you're awake... when you have time to talk salt testbeds (trying to track down the 17.1 slow command bug), please holler.   It's my evening but I'll be around for a bit yet
19:35 cro apergos: OK
19:36 toastedpenguin joined #salt
19:38 thrashr888 joined #salt
19:38 fishpen0 joined #salt
19:42 iri- joined #salt
19:43 iri- /join #fractalcraft
19:43 iri- left #salt
19:44 bejer joined #salt
19:45 fishpen0 joined #salt
19:45 srage joined #salt
19:48 ekristen how do I make a cmd.run only if git.latest actually updates code?
19:49 quickdry21 So it looks like doing a virtual --system-site-packages doesn't install pip into the virtualenv/bin. Unfortunately _get_pip_bin https://github.com/saltstack/salt/blob/v0.17.4/salt/modules/pip.py#L31 only looks in the virtual environment for pip.
19:49 bhosmer joined #salt
19:50 MedicalJaneParis joined #salt
19:51 dave_den ekristen: cmd.wait
19:53 martoss joined #salt
19:54 martoss1 joined #salt
19:57 bejer joined #salt
20:02 Mua joined #salt
20:02 MTecknology Is there any easy way to see how jinja renders? I'm trying to figure out if these are the same. http://dpaste.com/1549713/
20:02 MTecknology err... yaml
20:03 imaginarysteve joined #salt
20:03 ndrei joined #salt
20:04 dave_den http://yaml-online-parser.appspot.com/
20:05 MTecknology nifty :)
20:05 MTecknology so, they're the same!
20:05 dave_den using [] is a shorthand list
20:05 dave_den yep
20:05 bejer joined #salt
20:06 MTecknology yaml is weird
20:08 rojem joined #salt
20:09 test__ i have centos 6.4 as master. win7 and ws2k08 as two minions. when i try the test.ping it comes back with "failed to authenticate, is this user permitted to execute commands?"
20:09 rojem joined #salt
20:11 dave_den test: how exactly are you running test.ping?
20:12 cdcalef does salt 0.17.4 fix broken salt-ssh i wonder..
20:13 cdcalef looks like not.
20:14 test__ new-to-salt: do you have any ideas?
20:14 dave_den test__: how exactly are you trying to run test.ping?
20:15 ekristen when using a gitfs fileserver
20:15 ekristen when does salt check the remote repo for updates?
20:16 ajw0100 joined #salt
20:17 dave_den ekristen: they refresh every loop_interval as defined in the master config.
20:17 ekristen ah ok
20:17 ekristen thanks
20:18 dave_den ekristen: you can manually update by doing http://docs.saltstack.com/ref/runners/all/salt.runners.fileserver.html
20:19 test__ logged into salt masters (centos 6.4) as regular user, in terminal "salt bvl-win7-x64 salt.ping"
20:20 test__ i tried "su root" "sudo root
20:20 test__ gave up so i decided to log in as root and see what happens so when i log in as root it works
20:20 dave_den yes, you have to be root on the master by default
20:21 dave_den you can use the eauth system to allow non-root users to run salt commands.
20:21 felixhummel joined #salt
20:21 dave_den test__: http://docs.saltstack.com/topics/eauth/index.html
20:21 test__ also heard from another unix admin, in order to truely run as root, sometimes you have to use the "su - root" instead of the regular "su root" didn't know difference between the " -" means
20:22 dave_den adding the '-' to su means switch to the user with a login shell.
20:23 Gifflen joined #salt
20:23 test__ iam a whitebelt nix person so im like a blind person in a dark room when it comes to understanding and navigating around centos
20:24 test__ but im liking it though
20:24 test__ learning that is
20:24 dave_den is that worse than a blind person in a lighted room?
20:24 test__ not really lol!
20:25 vejdmn joined #salt
20:25 racooper speaking as someone who had a blind roommate for a year...never underestimate what someone is capable of just because they can't see... ;)
20:26 Linz joined #salt
20:27 ndrei joined #salt
20:29 jacksontj joined #salt
20:29 EugeneKay Out of curiousity, did you wear pants?
20:30 KyleG racooper: When I worked at HostGator one of their best perl developers was a blind guy.
20:30 andresr joined #salt
20:30 jacksontj we finally got our release of salt done in production, the 3 performance fixes we comitted have dropped CPU usage from 89% to 18% :D
20:30 KyleG Always blew my mind, had so much respect for that dude
20:30 xmj .oO you cycle through all opensource channels with new messages and ... the message you notice is, "did you wear pants?"
20:31 * EugeneKay is pretty open
20:31 imaginarysteve joined #salt
20:31 * racooper sighs
20:31 EugeneKay Serious question though; I've never really known a blind/deaf person.
20:31 dave_den jacksontj: sweet
20:32 jacksontj got a cool graph, just don't know where to put it :(
20:32 racooper my former roommate undertook a nationwide tour of every major league baseball park, alone, visiting with teams, broadcasters, etc; navigating airports, transportation and all that without a helper. in two months.
20:33 opapo joined #salt
20:33 EugeneKay Cool.
20:34 racooper and yes to normal clothes.  normal, college-type roommate experience other than little dots on the microwave control pad so he could find the numbers.
20:34 EugeneKay Ah, college. Never went.
20:35 racooper I wasn't in college, then, but he was, and I was in that age range.
20:40 thrashr888 joined #salt
20:44 jergerber joined #salt
20:44 cewood joined #salt
20:47 kermit joined #salt
20:50 test__ how do i called minion to run netsh command on windows minions since there isn't a lot of windows modules readily available to do a certain task?
20:50 forresta test__, cmd.run?
20:51 test__ forresta, i remember somwhere in the master config file that cmd is explicity disable by default right?
20:52 forresta test__, uhh not that I'm aware of.
20:55 dave_den does anyone here use systemd on debian for init
21:00 gadams999 left #salt
21:01 gadams999 joined #salt
21:04 ajw0100 joined #salt
21:12 foxx joined #salt
21:15 jimallman joined #salt
21:17 martoss joined #salt
21:18 noobi3 joined #salt
21:18 noobi3 Hi Guys, would you say the latest version - 2014.1 is safe to use in production?
21:19 forresta noobi3, no, that is the first release candidate.
21:19 forresta so I wouldn't use it in prod
21:19 noobi3 oh, I thought that was simply the new naming convention
21:20 noobi3 maybe I'll stick with 17.3
21:20 cyrusdavid joined #salt
21:22 test__ dumb question here but how do you setup windows minion to run powershell?
21:22 alunduil joined #salt
21:23 NotreDev joined #salt
21:23 NotreDev what's a good way to show my team that people actually use salt?
21:24 robawt NotreDev: tom posts a lot of "salt air" episodes on youtube and sometimes discusses different users
21:24 vejdmn joined #salt
21:25 NotreDev robawt: k. sounds good
21:26 NotreDev also, what's a good way to find salt folk? i guess i could go to my local devops meet up, but i need to hire someone to join me...
21:27 NotreDev a lot of the guys currently use puppet/chef... but I want my strategy of using salt to live on :)
21:27 robawt NotreDev: this channel is good. i'd check the mailing list rules before posting there
21:27 NotreDev again, sounds good. i didn't want to open that conversation if it's against the channel's TOS
21:27 robawt i don't think it is
21:28 NotreDev if anyone is looking for a job doing DevOps in Austin, TX let me know. i work at pristine.io
21:28 NotreDev i'm currently the engineer handling deployments :)
21:29 ajw0100 joined #salt
21:30 NotreDev we're a little more than 100 states large, live on CentOS, and make use of client-specific pillar data (each hospital we deploy to is slightly customized)!
21:31 fishpen0 joined #salt
21:35 quickdry21 Is there a way to specify a version to pip.installed? Likes virtualenv==1.9?
21:36 forresta quickdry21, maybe try passing install_options?
21:37 forresta quickdry21, or you could just ensure that a specific release of the required package is installed, then you could avoid that
21:42 quickdry21 looks like you can specify the name parameter as a package==version
21:43 giantlock joined #salt
21:43 Gifflen_ joined #salt
21:44 forresta oh so just like your requirements file.
21:45 quickdry21 yeah
21:45 scott_w joined #salt
21:49 clearclaw joined #salt
21:51 diegows joined #salt
21:52 martoss joined #salt
21:52 psyl0n joined #salt
21:54 gadams999 joined #salt
21:54 ajw0100 joined #salt
21:54 martoss joined #salt
21:56 mwmnj joined #salt
21:57 thrashr888 joined #salt
22:01 EugeneKay NotreDev - how many zeroes on the offer? :v
22:02 NotreDev EugeneKay: price is right style, every digit is a non-zero integer ;)
22:02 EugeneKay Tricksy
22:03 EugeneKay I'm not actually interested, just curious as to what a DevOps guy makes nowadays.
22:06 pass_by_value left #salt
22:07 zooz joined #salt
22:09 yomilk joined #salt
22:09 MTecknology I need help....
22:10 forresta dun dun dunnnnnn
22:12 timoguin joined #salt
22:12 rojem joined #salt
22:13 markizano joined #salt
22:14 rojem joined #salt
22:14 psyl0n joined #salt
22:15 MTecknology I need to do some weird templating in a config file... {% for center in pillar['centers_served'] %}@{{ center }}, {% endfor %}   except that I don't want the trailing ,
22:17 forresta can you not just remove it?
22:17 MTecknology via code?
22:17 MTecknology via templating? *
22:17 forresta why can't you just do what you are doing now
22:17 forresta but remove the ,
22:18 MTecknology This is in a template that is part of a state
22:19 MTecknology I don't want to have to manually trim it from every box every time state.highstate runs
22:19 schmichael joined #salt
22:19 forresta so is this in the template?
22:19 MTecknology ya-
22:19 forresta so again, why can you not just remove the ,
22:20 MTecknology how?
22:20 forresta oh you mean the very last one
22:20 MTecknology ya
22:20 schmichael how do i begin to diagnose commands not returning? test.ping (without a timeout value) will just block forever
22:20 schmichael is there a down minion? if so, how do i discover which one?
22:20 dave_den @{{ pillar['centers_served']|join(',\n@') }}
22:21 MTecknology this just confused me...
22:21 kermit joined #salt
22:21 forresta schmichael, try to run it through with -l debug
22:21 MTecknology It looks like what I want, just confused me
22:22 MTecknology centers_served: [1, 2, 3, 4] --> @1, @2, @3, @4
22:22 david_a joined #salt
22:22 schmichael forresta: thanks! i'm new to salt if that's not already obvious :) enjoying it far more than chef
22:23 JordanRinke Morning
22:23 forresta schmichael, yea np, sometimes the debug logging can really help out to see where the problem is, though if you aren't passing a timeout value to test.ping, it should timeout relatively quickly
22:23 forresta JordanRinke, UtahDave isn't around to actually tell you that it's the middle of the afternoon, even in CA, so I will do so for him.
22:23 dave_den MTecknology: so it worked?
22:23 schmichael forresta: i noticed the default timeout is 5, but if i don't set it, it doesn't seem to ever timeout. debug logs don't hint at anything going wrong
22:24 MTecknology dave_den: I'm trying it
22:24 JordanRinke Science says people that get up later, are smarter. Just saying.
22:24 JordanRinke Although, I have been up since 5am, but whatever.
22:24 forresta JordanRinke, well, yea, there is a difference however between later, and disfunctional :P
22:24 JordanRinke Science says people that check irc later, are smarter.
22:24 forresta schmichael, hmm, can you paste your debug output to gist/pastebin? And how many minions are you running? And what version of salt?
22:25 MTecknology dave_den: [ERROR   ] Jinja variable 'center' is undefined; line 46
22:25 schmichael forresta: oh, we have our timeout set to 600. so that explains that
22:25 MTecknology ah... I know why
22:25 forresta schmichael, oh
22:25 schmichael forresta: salt-master is 0.17.4
22:27 forresta schmichael, ulimit issues? http://docs.saltstack.com/topics/troubleshooting/index.html#too-many-open-files
22:27 schmichael forresta: log output is pretty boring: https://gist.github.com/schmichael/8409331
22:28 schmichael forresta: our cluster is very small (low double digits)
22:28 schmichael forresta: could it just be a down node? if so is there anyway to detect that?
22:29 forresta dave_den, am I crazy, or does https://gist.github.com/schmichael/8409331 look... weird?
22:29 forresta with all the repeats
22:29 forresta schmichael, no, if you set the timeout low, it should just kick back and say that the ping on that specific server failed.
22:30 dave_den looks like a problem with a custom module
22:32 schmichael forresta: so how does the timeout work with long running commands like highstate?
22:32 schmichael forresta: when running highstate i'd like for salt to block until the jobs complete
22:33 ekristen side note, anyone have experience with AWS ELB?
22:34 MTecknology dave_den: aside from needing a space and not a newline, that was 100% perfect, THANKS!
22:35 gadams999 left #salt
22:35 dave_den MTecknology: cool. no prob
22:35 JordanRinke aww yisss welcome to your new home... GTX Titan.
22:36 MTecknology now to write a bunch of other states around that... this is getting cooky, but sane
22:37 martoss joined #salt
22:39 vlcn joined #salt
22:41 test__ can someone please show me how to run a powershell command to run on a windows target? salt machine.name 'cmd.exe=powershell' 'powershell command'?
22:41 forresta schmichael, sorry was in a meeting, what do you mean by 'block' until the jobs complete? Like block action on those machines?
22:42 EugeneKay ELB has been pretty solid in my dealings with it
22:43 EugeneKay It tends to be EC2 and EBS that fall over hilariously
22:43 schmichael forresta: np. just block the salt cli that initiated the command
22:43 EugeneKay I prefer Linode as a "cloud" provider - they're testing hourly billing now, it's pretty sweet.
22:44 KyleG joined #salt
22:44 KyleG joined #salt
22:45 forresta schmichael, so when you run something like state.highstate, that's just running, so do you mean just blocking for the user who initiated the run? Because in most scenarios unless there is a long running job which causes it to back out ot the command line, it will just run right there in front of you
22:46 schmichael forresta: yeah, but how does that interact with timeout? if timeout=5 and highstate takes 10s to complete on a machine, will that machine timeout from the cli's point of view?
22:47 forresta schmichael, so the timeout works as kind of a 'duel' timeout
22:47 ajw0100 joined #salt
22:47 forresta basically, it waits 5 seconds for the machine to return, if it does't, it queries the status of the job, basically giving it another 5 seconds
22:48 forresta so it times out in the sense that the salt master stops waiting for it, however it still has the job id value saved, so that the minion can say 'ok my job id of 1234 is done, update the status please.'
22:48 NotreDev joined #salt
22:49 forresta schmichael, are you running any custom modules like dave_den brought up earlier?
22:49 schmichael checking
22:51 schmichael forresta: yeah, looks like a handful of custom modules
22:51 forresta can you move those?
22:51 forresta and see what happens
22:51 forresta just with test.ping
22:52 MTecknology http://dpaste.com/1549905/ <-- This is redundant. Any thoughts on removing that redundancy?
22:52 MTecknology basically, it's the difference between one and multiple centers
22:52 Gifflen joined #salt
22:54 NotreDev joined #salt
22:54 elithrar joined #salt
22:55 schmichael forresta: i moved _modules to __modules and reran test.ping; output didn't change
22:55 blee joined #salt
22:55 schmichael forresta: do i need to restart salt-master?
22:56 forresta schmichael, salt '*' saltutil.refresh_modules
22:56 forresta run that
22:56 forresta if the modules were sync'd that could be an issue.
22:56 schmichael forresta: no change in test.ping output after refreshing modules
22:57 forresta ehh try restarting the master, can't do any harm
22:57 schmichael no change still
22:57 forresta hmm, ok let's try this, are you currently running it as salt '*' test.ping?
22:57 schmichael refresh_modules printed None for each node if that matters
22:57 schmichael yes
22:58 forresta ok, let's try that on a single minion that you know is up, so salt 'minion_name' test.ping
22:58 forresta does that return anything?
22:59 schmichael forresta: yes, the standard preamble + exactly what debug printed when run against every node
22:59 dave_den MTecknology: this is what i would do:  https://gist.github.com/dlanderson/b0081dc4187afd8fd6c0
22:59 forresta schmichael, so even on a known good node, it still doesn't return that test.ping completed?
23:00 seanz left #salt
23:00 schmichael forresta: oh, it does! i'm sorry. i thought we were just diagnosing the weird repeated output
23:00 schmichael forresta: i'm all good on nodes returning as expected
23:00 dave_den MTecknology: you can also reduce the homedir encryption checks
23:00 forresta schmichael, ok so it only fails when you query test.ping against all nodes?
23:01 schmichael forresta: oh, no. it works as expected. it was my misunderstanding of timeouts and a downed node. i'm sorry.
23:01 forresta schmichael, lol ok, so are we just troubleshooting the duplicate output now?
23:01 schmichael forresta: yeah, if you even care about it. i don't. sorry for wasting your time
23:01 schmichael here's a bonus log output bug:  The log file will be stored in '~/.salt/'master'.log'
23:02 schmichael extra quotes around 'master'
23:02 dave_den MTecknology: e.g.  https://gist.github.com/dlanderson/b0081dc4187afd8fd6c0
23:03 forresta schmichael, nah no worries, it still seems like output that shouldn't be there, but I'm not quite sure what is causing it, especially during debug. If it's not a module causing it, and after moving/removing them it still pops up, you might wanna make a post on the mailing list. I have no idea what would cause that if the modules were all cleaned up.
23:03 forresta schmichael, you might want to just double check that the _modules dirs on your minions aren't filled with crap
23:03 forresta and if so, clean that minion out, test.ping against it to see if you get the extra output
23:04 forresta then start testing the modules
23:04 forresta to determine which one is problematic
23:04 dave_den i'd double check your config files for errors, too
23:04 schmichael forresta: know an easy way to ls _modules on minions or should i take it from here? :)
23:05 forresta I think the modules should just be sync'd over into _modules (but I can't remember), I'd probably just locate them since you know what they are from the ones you have on the master.
23:05 schmichael sure, thanks
23:06 forresta np, let me know if you figure out which module it is, and whether it was from the extras repo, if so you should file an issue on that.
23:08 alunduil joined #salt
23:11 jacksontj joined #salt
23:12 zooz joined #salt
23:12 diegows joined #salt
23:16 Gifflen joined #salt
23:17 thrashr888 joined #salt
23:18 NotreDev joined #salt
23:20 schmichael forresta: please forgive my noobishness but i did find a returner with a print(...) in its returner function... could that be the problem?
23:20 schmichael i'm new to our saltstack and it's... interesting
23:21 forresta schmichael, It could be, I'm not sure though.
23:21 Whissi joined #salt
23:23 Ryan_Lane2 joined #salt
23:25 bhosmer joined #salt
23:26 psyl0n joined #salt
23:27 psyl0n joined #salt
23:28 viraptor1 joined #salt
23:29 markm joined #salt
23:31 dfinn joined #salt
23:32 jacksontj joined #salt
23:32 dfinn has anyone built something to collect the info from salt grains and put it into a nice web gui, kind of a poor mans cmdb?
23:33 Ryan_Lane joined #salt
23:43 jpeach joined #salt
23:44 Linz joined #salt
23:44 jpeach hi all, does anyone know if I can use grains to define pillar data keys or values?
23:51 timoguin joined #salt
23:51 elithrar_ joined #salt
23:54 schristensen joined #salt

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