Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2013-08-06

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

All times shown according to UTC.

Time Nick Message
00:02 rava left #salt
00:02 UtahDave :)
00:02 joonas UtahDave: hey
00:03 krissaxton joined #salt
00:03 joonas UtahDave: are you aware of any salt-specific meetups in NYC?
00:03 cvrebert joined #salt
00:04 UtahDave They had a Salt Sprint location at Columbia university recently.  Let me ask about meetups.
00:04 joonas UtahDave: cool, I'm mostly curious, so I figured I should go to one if there were some going on
00:04 cvrebert Is the timezone state example valid? If so, what's it do (UTC or Denver)? http://docs.saltstack.com/ref/states/all/salt.states.timezone.html
00:07 jpeach joined #salt
00:07 jpeach can I use the file.directory state to create multiple directories?
00:08 UtahDave jpeach: yeah.  Use the - names option to list the directories you want to create
00:09 UtahDave joonas: We have a TON of users in NYC, but nobody has organized a salt meetup there yet.
00:09 joonas UtahDave: that's a bummer
00:09 joonas UtahDave: got any salt employees in nyc?
00:10 UtahDave joonas: yeah, there are meetups in LA and San Francisco, but nothing there yet.
00:10 rmurley joined #salt
00:10 UtahDave joonas: Not yet. Our closest employee to NYC is in Chicago.  We do have Salt trainings in nyc about twice a year.
00:11 joonas gotcha
00:11 UtahDave cvrebert: I'm not sure about your timezone state question. That's very ambiguous!
00:11 joonas well, I'll keep an eye out :)
00:11 joonas I'm sure if someone organized one, it would come together
00:11 UtahDave Yep.
00:12 cxz joined #salt
00:12 UtahDave joonas: we do on-site trainings for companies as well, if that's something you're interested in.
00:12 joonas UtahDave: I was mostly looking to involve myself in community :)
00:12 joonas talk to people and so forth
00:14 pdayton joined #salt
00:14 rmurley joined #salt
00:15 felixhummel joined #salt
00:15 jpeach UtahDave: do you mean something like this: http://apaste.info/24r7
00:18 UtahDave joonas: cool!  I'll let you know if I hear of an event.  I bet I could put a few people in contact with eachother and a salt meetup would suddenly appear.  :)
00:18 raydeo joined #salt
00:18 UtahDave jpeach: exactly!
00:18 joonas UtahDave: I wouldn't be surprised if that did happen :)
00:18 joonas lots of things happening here in NYC
00:18 honza what are some clever tricks to reduce image size?
00:19 honza (wrong channel)
00:19 honza left #salt
00:19 rmurley left #salt
00:25 iquaba UtahDave, what did you think of the idea of getting the 'virtual' flag from the WMI objects that I just got pulled in?  Do you think it will be expandable enough or should I start looking into other ideas?
00:29 UtahDave iquaba: I totally love it.  In fact, right this minute I'm adding in checks for the Xen hypervisor.   :)
00:30 mikedawson joined #salt
00:31 jpeach UtahDave: thanks, works like a champ :)
00:31 iquaba Awesome.  I'm going to start working on some windows domain/active directory stuff at some point if you think that'd be useful
00:33 UtahDave jpeach: you're welcome!  glad it worked!
00:33 UtahDave iquaba: yeah, that would be awesome.
00:34 UtahDave iquaba: What aspect of AD stuff are you going to work on?
00:36 iquaba easiest seems to try and mirror the some win_useradd stuff for domains
00:37 iquaba though thinking of it now seems kind of silly...the whole point of just going straight to the domain controller is to manage the domain
00:37 iquaba I don't know why you'd go through salt
00:37 whit joined #salt
00:37 kenbolton joined #salt
00:39 napperjabber joined #salt
00:40 UtahDave iquaba: No, actually, I think there's a lot of value there.
00:40 honza joined #salt
00:40 UtahDave I'm just wondering if we should create a specific AD module and state, or make it part of win_useradd, etc.
00:41 iquaba I'd go seperate.  I think it makes it clearer and I foresee there could be a different set of problems involves
00:42 aat joined #salt
00:42 iquaba also, i'd consider brainstorming from the list of powershell ad-cmdlets (see table): http://technet.microsoft.com/en-us/library/ee617195.aspx
00:42 dthom91 joined #salt
00:44 iquaba a challenge will be working as domain admin - the service runs as local System
00:48 FreeSpencer joined #salt
00:49 iquaba how do i get the log on the windows minion to start populating or see the debug output on the console?
00:49 iquaba nevermind, got it
00:51 dstanek joined #salt
00:51 UtahDave iquaba: I agree with you on the separate AD stuff.
00:52 m_george|away joined #salt
00:52 UtahDave iquaba: I like that list.
00:52 m_george left #salt
00:52 kenbolton joined #salt
00:55 jaequery joined #salt
01:03 krissaxton joined #salt
01:04 kenbolton joined #salt
01:04 avienu joined #salt
01:06 tseNkiN joined #salt
01:07 LucasCozy joined #salt
01:11 Nexpro joined #salt
01:18 afx_hero joined #salt
01:18 afx_hero joined #salt
01:18 andrew joined #salt
01:19 iquaba UtahDave: For the windows list_users function we added win32net and win32netcon.  My server 2008 box works fine but the xp boxes can't import and lose the whole users module
01:19 iquaba is that a thing that can be built in?
01:22 joeTSUNAMI joined #salt
01:23 UtahDave iquaba: they're built from the same sources.
01:23 UtahDave can you try installing python and the pywin32 libraries and trying importing those  win32net and win32netcon?
01:24 iquaba yep
01:25 Lue_4911 joined #salt
01:28 rspectre joined #salt
01:30 mannyt joined #salt
01:31 faldridge joined #salt
01:33 Azaziel joined #salt
01:36 scottvdp joined #salt
01:37 afx_hero joined #salt
01:37 afx_hero joined #salt
01:38 Azaziel left #salt
01:39 Nexpro joined #salt
01:44 iquaba UtahDave: so I installed pywin32 and python and can import win32net/netcon fine manually however the minion still buggers out on the import
01:50 avienu joined #salt
01:51 jessep joined #salt
01:53 mikedawson_ joined #salt
02:04 krissaxton joined #salt
02:08 Furao joined #salt
02:15 jessep joined #salt
02:24 liuyq joined #salt
02:27 mannyt joined #salt
02:32 tomeff joined #salt
02:33 jpeach joined #salt
02:42 ninkotech__ joined #salt
02:43 lyddonb- joined #salt
02:43 cxz_ joined #salt
02:45 aat_ joined #salt
02:47 g3cko_ joined #salt
02:47 echos joined #salt
02:47 morganfainberg joined #salt
02:48 morganfainberg joined #salt
02:49 malinoff joined #salt
03:02 Nexpro1 joined #salt
03:04 krissaxton joined #salt
03:20 avienu joined #salt
03:30 dstanek joined #salt
03:36 UtahDave joined #salt
03:41 tomtom joined #salt
04:05 krissaxton joined #salt
04:05 * liuyq is away: Away
04:07 jessep joined #salt
04:18 cxz_ can anyone point me to some examples of salt-api?
04:18 cxz_ the documentation is a little hard to follow
04:26 rmurley joined #salt
04:36 carmony joined #salt
04:37 cxz_ does test.ping actually use ICMP?
04:37 cxz_ i get the feeling it doesnt
04:37 raydeo left #salt
04:40 jY cxz_: it's all via zeromq which is tcp to the minions
04:40 cxz_ jY: that's what i thought, thanks
04:43 LLckfan joined #salt
04:43 LLckfan I am trying to reconnect a blu-ray player to my router wirelessly and keep get dhcp cannot be acquired. Is there a way to fix this?
04:50 middleman_ joined #salt
04:52 dthom91 joined #salt
04:55 carmony joined #salt
04:55 EugeneKay Not really a #salt question, but my guess is your player isn't WiFiing right
04:56 LLckfan I guess
04:56 Corey I'm sorry, I have to ask. :-)
04:56 Corey How is this even tangentially Salt related? :-D
04:56 LLckfan left #salt
04:56 Furao EugeneKay: don't respond to him, his going trough all channels on freenode asking the same question
04:57 Furao I think it's a bot
04:57 EugeneKay You're a bot
04:57 Furao ?
04:57 EugeneKay http://en.wikipedia.org/wiki/Turing_test
05:02 carmony joined #salt
05:02 keekz offtopic, but the turing poem is pretty awesome
05:05 krissaxton joined #salt
05:05 EugeneKay At this hour of the night I think it's allowable
05:09 * rmt yawns. Good morning, everyone.
05:17 * liuyq is back (gone 01:12:09)
05:23 FOCer joined #salt
05:39 Slipo joined #salt
06:06 krissaxton joined #salt
06:09 troyready joined #salt
06:27 Xeago joined #salt
06:31 Ryan_Lane joined #salt
06:31 auser joined #salt
06:33 dthom91 joined #salt
06:38 ml_1 joined #salt
06:46 linjan joined #salt
06:56 mike25ro joined #salt
06:57 * mike25ro says hi guys
06:57 Furao joined #salt
07:03 dthom91 joined #salt
07:06 krissaxton joined #salt
07:07 EnTeQuAk Hey guys, just wondering, can I connect to the master via `salt` command from my local machine to execute various commands? Don't want to handle all the SSH stuff in automation scripts
07:08 ellisdee joined #salt
07:14 mike25ro EnTeQuAk:  from your local machine? is your local machine a minion?
07:15 vaxholm joined #salt
07:15 EnTeQuAk no, it's not and I hoped that I don't have to make it one
07:16 EnTeQuAk I saw salt-call but it looks like it's not what I want to have, I spawn multiple machines and a master from a map file (works perfectly) and want to control the minions from my machine afterwards
07:18 stevetodd joined #salt
07:20 malinoff I think, you have 2 ways: 1) you need to setup your local machine as salt-minion; configure master to resolve all publish commands from your local machine minion; salt-call publish.publish \* test.ping on your local machine
07:21 malinoff 2) use ssh or something like to connect directry to the master and run 'salt \* test.ping' as usual
07:21 malinoff directly*
07:21 unicoletti_ joined #salt
07:21 abele joined #salt
07:22 honestly joined #salt
07:25 EnTeQuAk hmm, malinoff, okay. Guess starting a minion specifically for that might be overkill, though as I'm using a wrapper script I can automatically spawn all requirements *thinking*
07:25 EnTeQuAk thanks!
07:26 krissaxton joined #salt
07:27 costi joined #salt
07:28 Ryan_Lane joined #salt
07:30 balboah joined #salt
07:31 auser joined #salt
07:32 Xeago joined #salt
07:41 carlos joined #salt
07:42 syngin EnTeQuAk: With SSH keys from your workstation to the salt-master, there shouldn't be any problems scripting your salt commands: ssh user@salt-master 'salt * test.ping'
07:43 it_dude joined #salt
07:43 syngin s husker 'sudo salt \* test.ping'  <-- works for me
07:43 syngin (s=ssh, husker=salt-master)
07:44 EnTeQuAk jepp, that works great :)
07:45 EnTeQuAk though I hope that calling the master through the 0mq interface might be faster
07:49 vaxholm joined #salt
08:00 Bosse joined #salt
08:03 auser joined #salt
08:03 auser EnTeQuAk: https://github.com/auser/saltcli
08:04 auser that's why I'm developing that
08:04 Ryan_Lane joined #salt
08:04 dthom91 joined #salt
08:07 costi joined #salt
08:07 costi exit
08:07 Guest99919 joined #salt
08:09 krissaxton joined #salt
08:12 zooz joined #salt
08:12 xl1 joined #salt
08:20 Mav_ joined #salt
08:21 Mav_ hey all, where's the best place to go to get information regarding deployment workflows with Salt? I've had a look @ Salt-Cloud, but I'm not sure it's exactly what I'm after
08:23 xl1 joined #salt
08:24 Xeago joined #salt
08:33 dstanek joined #salt
08:36 martineg_ joined #salt
08:36 felixhummel joined #salt
08:41 whiskybar joined #salt
08:46 dthom91 joined #salt
08:47 dthom911 joined #salt
08:48 it_dude joined #salt
08:48 SpX joined #salt
08:48 al5d joined #salt
08:53 felixhummel joined #salt
08:59 xerxas joined #salt
09:02 helderco joined #salt
09:08 yota joined #salt
09:24 Furao salt-cloud django webui is done
09:24 Furao first VM deployed
09:25 matanya joined #salt
09:30 dthom91 joined #salt
09:33 matanya_ joined #salt
09:57 aleszoulek joined #salt
09:58 Nazzy joined #salt
10:05 cloq joined #salt
10:06 cloq hey, is there an easy way of distinguishing between virtual and physical machine? so far it seems I have to create two pillars (physical and virtual) for all possible outputs of grains['virtual']
10:07 cloq by 'virtual machine' I also mean containers
10:08 xl1 joined #salt
10:14 kstaken joined #salt
10:16 krissaxton joined #salt
10:25 giantlock joined #salt
10:30 dthom91 joined #salt
10:31 david_a joined #salt
10:33 aleszoulek joined #salt
10:33 felixhummel joined #salt
10:33 mike25ro cloq: you can add a grain to each machine ... like machine: virtual or machine: physical
10:33 fredvd joined #salt
10:33 mike25ro then you have grains['machine'] in your pillar
10:35 cloq mike25ro: the pillar solution seems much easier then
10:35 Nazca joined #salt
10:35 Nazca joined #salt
10:37 mortis_ this is a python/salt noobie scripting question :P ..when i do something like ret = client.cmd(sys.argv[1], "cmd.run", [sys.argv[2]])  ..how do i find the exit-code of the command being run?
10:37 mike25ro true...
10:39 Furao mortis_: it's in ret
10:39 mortis_ hmm
10:40 mortis_ i only see the result of the command
10:40 mortis_ not the code itself
10:40 mortis_ result as a dict
10:40 Furao it's one key in the dict
10:41 Furao mortis_: not all state support numeric exit code
10:41 Furao well or module
10:42 ggoZ joined #salt
10:42 mortis_ k, cause im testing just like : ret = client.cmd("*", "cmd.run", ["cat /etc/debian_version"]) <-- something silly like this, gives me a dict containing argv[1] and argv[2] and no exitcode
10:43 Furao it probably should be ['cat', '/etc/debian_version']
10:43 mortis_ oh :o
10:44 mortis_ nah that wount work
10:45 xl1 joined #salt
10:45 mortis_ would be really handy to get that code when using cmd :)
10:46 costi joined #salt
10:47 mortis_ more research after LUNCH!!!!!!
10:47 Furao >>> c.cmd('candc', "cmd.retcode", ("/bin/false",))
10:47 Furao {'candc': 1}
10:47 Furao >>> c.cmd('candc', "cmd.retcode", ("/bin/true",))
10:47 Furao {'candc': 0}
10:47 mortis_ ooooh! retcode! there it is
10:48 mortis_ perfect! thanks Furao :D
10:51 cloq so I'm using file.recurse to mirror a folder to minions' /etc folder... I need to trigged a service reload after one of the files undergoes a change by file.recurse, do I need to create a separate state declaration for that file?
10:52 cloq trigger*
10:53 qba73 joined #salt
10:54 Furao not sure it's a good idea to file.recurse an entire /etc
10:54 Furao you'll ends with all services restarted, even if a single file is changed
10:55 cloq that's the point, I don't want that.
10:56 cloq so I guess I just need to exclude the one file, make a declaration for it and then watch it by an other state
10:56 Furao still sound as a bad ide
10:56 Furao idea
10:56 cloq I just wondered if there's a simpler way
10:56 cloq well as long as I have it under control
10:57 Furao file.managed per state
10:57 cloq it only messes with relatively unimportant stuff like /etc/motd
10:58 Furao just do like https://github.com/bclermont/states/blob/master/states/ssh/server/init.sls#L18
10:59 Furao even my motd is a state https://github.com/bclermont/states/tree/master/states/motd
11:00 cloq the grouped declaration seems ideal, thanks
11:00 Furao one reason to use salt is to document/simplify your infra, if keep everything as a blob of configs, it's hard to maintain and understand
11:01 dthom91 joined #salt
11:05 bhosmer joined #salt
11:23 Guest99919 joined #salt
11:23 joeTSUNAMI joined #salt
11:23 joeTSUNAMI joined #salt
11:30 diegows joined #salt
11:34 robertkeizer joined #salt
11:35 kenbolton joined #salt
11:35 aleszoulek joined #salt
11:36 bhosmer_ joined #salt
11:38 Katafalkas joined #salt
11:39 jessep joined #salt
11:40 Katafalkas Hey, anyone is using salt-cloud with rackspace ?
11:40 Furao Katafalkas: I will in few minutes
11:42 Katafalkas let me know how it will go
11:42 Furao I will use openstack provider
11:42 Furao I wrote a webui for salt-cloud and I'm testing it around few providers :)
11:43 Furao is there any free trial account with rackspace?
11:43 Katafalkas not sure ...
11:56 scott_w joined #salt
12:01 dthom91 joined #salt
12:05 abele joined #salt
12:06 blee_ joined #salt
12:07 ingwaem joined #salt
12:08 bhosmer_ joined #salt
12:10 ingwaem left #salt
12:12 ingwaem_ joined #salt
12:14 ingwaem_ Greetings everyone…anyone had luck setting up salt-cloud with VMWare ESX Server? just trying to figure out how to configure it
12:17 krissaxton joined #salt
12:26 Tom_Soft joined #salt
12:29 cewood joined #salt
12:30 aleszoulek joined #salt
12:31 dthom91 joined #salt
12:33 it_dude joined #salt
12:33 jslatts joined #salt
12:37 it_dude joined #salt
12:38 ingwaem_ Greetings everyone…anyone had luck setting up salt-cloud with VMWare ESX Server? just trying to figure out how to configure it
12:45 Furao ingwaem_: "Please be patient when asking questions as we are volunteers and may not have immediate answer"
12:45 toastedpenguin joined #salt
12:46 joshe joined #salt
12:46 faulkner joined #salt
12:47 blee joined #salt
12:47 ingwaem_ Sorry Furao, had asked as there were new comers incase it was missed :)
12:47 [vaelen] joined #salt
12:48 Furao it's probably the same way as the other cloud provider
12:53 jchen joined #salt
12:57 JesseC Katafalkas: Rackspace doesn't give anything away for free, you should test it with DigitalOcean though, they have an API as well. Would be cool to provision and boot up VM's from their offering.
12:59 anteaya joined #salt
12:59 juicer2 joined #salt
13:03 Furao it's very slow to state.highstate a minion in singapore with a master in texas
13:05 mjulian joined #salt
13:05 mjulian joined #salt
13:06 d10n joined #salt
13:07 oz_akan_ joined #salt
13:07 Katafalkas JesseC: did u try DigitalOcean API ? is it as good as, lets say, aws or rackspace ?
13:08 Katafalkas I haven't tried them yet. but heard a lot about them. and API is the only thing that kinda scares me a little. kinda got used to libs like boto
13:08 mannyt joined #salt
13:08 JesseC Katafalkas: I haven't used it yet, only read over it and I haven't used APIs for aws or rackspace either.
13:08 JesseC Katafalkas: I've coded for ridiculous amounts of APIs though and it all seemed pretty normal to me.
13:09 JesseC Whether or not they have issues though, I dunno.
13:09 JesseC There are people asking for provisioning tools in their feature requests though.
13:09 Katafalkas I like their pricing and the fact that they are not 'overused' yet. I might give them a shot in few weeks time
13:10 Furao digitalocean api is simple because they don't have much feature as openstack
13:10 Katafalkas is anyone working on salt-cloud plugin for them ?
13:11 Furao there is a salt-cloud plugin for digital ocean already
13:11 Katafalkas cool
13:11 Kholloway joined #salt
13:11 Katafalkas definitely gonna give them a shot.
13:12 Furao one guy who work for them hang around here sometimes
13:13 jeffasinger joined #salt
13:16 Furao he's even here right now :)
13:16 jessep joined #salt
13:19 logix812 joined #salt
13:21 Morty_ joined #salt
13:23 mgw joined #salt
13:25 alunduil joined #salt
13:28 m_george|away joined #salt
13:28 aleszoulek joined #salt
13:29 scott_w joined #salt
13:31 Linz joined #salt
13:32 mike25ro guys.. how can i use a module inside a state... something like IF this command; salt '*' file.remove /tmp/foo   returns true... apply a state... or do smth
13:33 mike25ro so how can i use that module file.remove inside a state?
13:33 mike25ro or any other module... i can figure it out afterwards.
13:34 m_george left #salt
13:34 troyready joined #salt
13:35 Furao mike25ro: module.run / module.wait etc
13:35 aleszoulek joined #salt
13:35 mike25ro Furao: thanks buddy will search that
13:35 mortis_ hmmm would it be wise to have some sort of configurable protection to pebcaks like cmd.run "rm -rf/" etc? :)
13:36 Furao mortis_: put in salt name.replace('rm -rf /', 'del tree c:/*')
13:36 mortis_ lol :)
13:37 mike25ro :)
13:37 * ze- sighs. Comment:   The following packages failed to install/update: rsync.
13:37 ze- any idea why it state it failed, though it is installed and up to date ? :(
13:37 Furao check the logs
13:38 Brad_ joined #salt
13:38 Brad_ should adding the -C option really add that much time to the excution time, 14 + seconds  http://pastebin.com/62AtJciK
13:38 ze- 2013-08-06 15:36:20,912 [salt.state       ][ERROR   ] No changes made for rsync
13:38 mgw joined #salt
13:39 Brad__ should adding the -C option really add that much time to the excution time, 14 + seconds  http://pastebin.com/62AtJciK
13:39 Furao ze-: run with log level at debug
13:39 pdayton joined #salt
13:40 ze- on the minion ?
13:40 Furao yes
13:41 Furao your master probably just render pillars and serve files
13:42 backjlack joined #salt
13:43 racooper joined #salt
13:44 * SEJeff_work just found github.com/saltstack-formulas
13:44 SEJeff_work whoa, was this announced somewhere and I just missed it?
13:46 ipmb joined #salt
13:46 Furao SEJeff_work: I think it came out after last sprint
13:48 Furao all those repos are still smaller than github.com/bclermont/states I didn't updated for months (today it's twicer larger) :)
13:49 ze- 2013-08-06 15:44:10,944 [salt.loaded.int.module.cmdmod][INFO    ] Executing command "dpkg-query --showformat='${Status} ${Package} ${Version} ${Architecture}\n' -W" in directory '/root'
13:49 ze- alot of stuffs, including:
13:49 ze- install ok installed rsync 3.0.9-4 i386
13:50 SEJeff_work Furao, Why not update them publically?
13:50 jeddi joined #salt
13:51 ze- then it decides to install rsync anyway, and get no changes...
13:51 Brad__ so while trying to figure out why  salt -C 'nixer.edu' test.ping  take much longer then just  salt  'nixer.edu' test.ping  I ran the master and minon in test mode and found out that when runnning the salt -C the sat minion is running  a "ps -efH' in directory '/root" for some reason
13:51 Brad__ why would that be necessary?
13:51 Furao SEJeff_work: I hired 1 more guy full time in my team and an other part time and we worked on those states for months and it's now a product (subscription) i sell + salt consulting (custom states).
13:51 SEJeff_work Furao, Makes sense!
13:51 Furao already found few clients on #salt so didn't had time to create a webpage :)
13:51 SEJeff_work Well at least point it out in the readme :P
13:51 Furao I wanted to have the website first :(
13:52 mike25ro Furao: i am a web dev as well .... i can give you a hand if you need
13:52 mikedawson joined #salt
13:52 Brad__ Furao> so you are just doing salt stack conulting now?
13:53 Furao mike25ro: it's the content. I have a django-cms base I build many website with, it just take a few minutes to get a new instance of a site to work on
13:53 Furao and it's not just states, it's a testing framework, process, etc
13:53 mike25ro Furao: that's good :) indeed the content is the hardest part
13:53 Furao many of the thing I made are open source
13:53 Furao like right now I'm finishing a salt-cloud webui
13:53 Furao Brad__: it's now 90% of my time
13:54 Brad__ furao> how has it been finding clients
13:54 mmilano joined #salt
13:54 Furao Brad__: I just talked about my project on #salt to few people
13:55 Furao and I converted 1 existing client
13:55 SEJeff_work Thats healthy for the salt ecosystem
13:55 SEJeff_work but thats also what saltstack does
13:55 Brad__ so while trying to figure out why  salt -C 'nixer.edu' test.ping  take much longer then just  salt  'nixer.edu' test.ping  I ran the master and minon in test mode and found out that when runnning the salt -C the sat minion is running  a "ps -efH' in directory '/root" for some reason
13:55 ze- damn. is there a way to tell pkg/apt to ignore architecture ?
13:55 Furao saltstack do the framework and consulting
13:55 Furao I do the states + consulting
13:56 SEJeff_work makes sense, but I think they do both
13:56 SEJeff_work either way, it is healthy for the ecosystem, and you're a long time contributor to the project, so it is a symbiosis
13:57 Furao my product is like, in 1-2 days we start from nothing and have a working hosting infra with monitoring, configs management, graphite, alerts, centralized logging, etc etc etc and then we salt'ify your stuff to it
13:58 Furao everything is highly integrated. so it don't suit to everyone
13:58 SEJeff_work Furao, Oh thats very cool
13:58 SEJeff_work Furao, You know that the openstack dashboard is 100% graphite under the covers too, right?
13:59 Furao SEJeff_work: no I didn't :)
13:59 SEJeff_work I didn't know that, but have about 6 former coworkers from a few jobs ago who work at metacloud. They send me graphite patches sometimes (I'm a maintainer in my freetime of graphite as well)
13:59 Furao I'm a long time graphite user and a little contributer
13:59 Furao and I gave a lot to diamond too
13:59 SEJeff_work Furao, That project needs about a month of solid love
13:59 Furao sometimes under some of my dev name
13:59 Furao I noticed you had git commit access
13:59 SEJeff_work Furao, If you want to send any patches, poke me if you don't get any love and I'll take a look
14:00 SEJeff_work The lead guy, michael leinartas, is here in Chicago
14:00 SEJeff_work works at twitter
14:00 mikedawson left #salt
14:00 Furao I hack graphite urls and the settings a lot
14:01 Furao {% if pillar['graphite']['web']['render_noauth']|default(False) %}
14:01 Furao ('^render/?', include('graphite.render.urls')),
14:01 Furao {% else %}
14:01 Furao ('^render/?', decorator_include(login_required, 'graphite.render.urls')),
14:01 Furao {% endif %}
14:01 SEJeff_work Furao, You know that will mess up clustered graphite, right?
14:01 SEJeff_work The webapps hit other webapps to aggregate data from a graphite cluster
14:02 Furao yes yes, I'm going to rewrite my carbon state and I'll have to handle all this :(
14:02 Furao what about megacarbon?
14:02 SEJeff_work My solution for that problem is more or less a hack in the apache config. You can use mod_setenvif to force an authenticated user if the source addy is another one of the graphite servers (The REMOTE_USER env var), then for everything else, use htaccess / ldap
14:02 SEJeff_work Furao, When michael merges megacarbon into master, I'll very likely write a riak/cassandra backend
14:03 SEJeff_work and thats most likely what $real_job for me will use
14:03 SEJeff_work We are pushing over 3 mill metrics every 10 seconds
14:03 Furao apache?
14:03 SEJeff_work for graphite-web
14:03 SEJeff_work yes
14:03 Furao my graphite run in uwsgi under nginx
14:03 SEJeff_work That works too
14:03 SEJeff_work You can do the same thing using nginx
14:03 Furao it's just I'm used to see you on #nginx :P
14:04 SEJeff_work ?
14:04 SEJeff_work Nope, not me
14:04 Furao no? wait a minute
14:04 SEJeff_work I've used apache for the better part of 10 years
14:04 SEJeff_work Apache 2.4 is as fast or faster than nginx
14:04 SEJeff_work depending on the config
14:04 SEJeff_work 2.2 was blown away by nginx no question
14:04 mike25ro SEJeff_work: is apache 2.4 faster?
14:05 mike25ro that is good to know
14:05 SEJeff_work mike25ro, Again, it depends on your config, but the primary focus of 2.4 was to beat nginx in performance
14:05 Furao oh sorry I confused your nick with someone else
14:05 mike25ro SEJeff_work:  even if it is not faster... if it approaches nginex... is a good deal
14:06 mannyt joined #salt
14:06 SEJeff_work http://www.serverwatch.com/server-news/apache-2.4-delivers-more-performance.html
14:07 JesseC Can you put multiple requires under a single - require: ?
14:07 JesseC or will the last one override the first in the list
14:07 SEJeff_work JesseC, yes
14:07 ml_1 joined #salt
14:08 napperjabber joined #salt
14:09 faldridge joined #salt
14:09 lyddonb_ joined #salt
14:09 mike25ro nice one SEJeff_work, thanks
14:09 SEJeff_work mike25ro, http://blog.coralic.nl/2013/05/12/apache-2-4-vs-nginx-1-4 also.
14:09 SEJeff_work Ok back to work for me ;)
14:10 SEJeff_work obviously kb/sec higher is better
14:12 bastion2202 joined #salt
14:13 kaptk2 joined #salt
14:15 opapo joined #salt
14:16 chrisgilmerproj joined #salt
14:17 jalbretsen joined #salt
14:17 tomeff_ joined #salt
14:17 premera joined #salt
14:18 krissaxton joined #salt
14:22 mgw joined #salt
14:23 chrisgilmerproj joined #salt
14:25 JesseC Is there an alternative method to run an sls from within another without using include or cmd.run?
14:25 [diecast] joined #salt
14:25 [diecast] joined #salt
14:25 SEJeff_work JesseC, Why wouldn't you use include?
14:26 JesseC because you can't control the order of include
14:26 SEJeff_work You can set the dependencies with requires and watch
14:26 mike25ro JesseC:  make a bash ... and put there all the state runs ... in your desired order...
14:26 scalability-junk yeah you should not rely on the oder, but only on dependecies
14:27 mike25ro but as SEJeff_work says .. it might work with watch
14:27 scalability-junk I would say it's bad practice to rely on the order of execution
14:27 SEJeff_work No it does work, not that it might
14:27 SEJeff_work I use it a lot
14:27 JesseC Just seems such a terrible way to organize things
14:27 JesseC I compile 10 difference pieces of software, all have similar dependencies required before being compiled
14:27 SEJeff_work JesseC, Why? You know the dependencies. That way things can execute in parallel
14:27 JesseC the only way to do that correctly with depenendencies is to copy them to each one
14:28 JesseC or compile all with a single state
14:28 SEJeff_work JesseC, If you include the same state into multiple sls files, it will only execute once
14:28 SEJeff_work include:
14:28 SEJeff_work - compile.deps
14:28 JesseC oh
14:29 JesseC so when it compiles it removes the duplicates?
14:29 SEJeff_work Yes by design
14:30 JesseC man that would have been good to know a week ago. :)
14:30 JesseC thanks
14:30 mike25ro left #salt
14:31 JesseC SEJeff_work: the deduplication would be part of jinja right?
14:31 scalability-junk what are your ways of autodiscovering of services? or do you sort of hardcode that. like apache should find the right mysql server and change the ip address when the mysql server changes for example
14:31 SEJeff_work JesseC, so the state files are yaml
14:31 SEJeff_work with jinja2 templating
14:32 SEJeff_work JesseC, So the jinja2 is rendered and you have yaml. Then the yaml renders and is essentially concatenated and then rendered into a python dictionary
14:32 cnelsonsic joined #salt
14:32 SEJeff_work I believe this is called the lowstate
14:32 SEJeff_work scalability-junk, 2 ways, using etcd
14:32 SEJeff_work scalability-junk, srv records in dns
14:32 SEJeff_work scalability-junk, or hardcoding it in pillar
14:32 JaredR joined #salt
14:33 unicoletti left #salt
14:33 scalability-junk mhh hardcoding could be prevented with some grains magic...
14:33 SEJeff_work scalability-junk, Well pillar can rely on grains
14:33 SEJeff_work so there you go
14:33 SEJeff_work scalability-junk, I like etcd
14:33 SEJeff_work but I live on the edge :D
14:34 scalability-junk that just seems like another service to rely on :D
14:34 SEJeff_work scalability-junk, http://www.zytrax.com/books/dns/ch8/srv.html
14:34 jessep left #salt
14:35 SEJeff_work scalability-junk, under the covers, Microsoft Active Directory uses srv records to autodiscover ldap and kerberos services running on various AD masters
14:36 * scalability-junk is lucky and doesn't have any microsoft related stuff running within his infrastructure
14:36 SEJeff_work scalability-junk, Also, etcd is kind of like apache zookeeper or bitly's doozerd, it is designed to be distributed and fault tolerant. A new leader election (for etcd) happens in $random_time_between_100_and_500_milliseconds
14:36 SEJeff_work https://github.com/coreos/etcd
14:37 scalability-junk already looking at the code, but I will probably start with hardcoded pillar till everything runs and then add etcd, or srv autodiscovery...
14:37 SEJeff_work scalability-junk, A better (and much longer) overview of the srv stuff is here: http://www.dns-sd.org/ServerStaticSetup.html
14:39 scalability-junk thanks will read through that, but it seems like a good solution actually to rely on dns for discovery, only issue is probably the 5min delay I have from my dns provider... own dns server for the win I assume then.
14:39 SEJeff_work scalability-junk, Exactly!
14:39 SEJeff_work Setup bind or tinydns as a shadow master
14:39 KennethWilke joined #salt
14:39 SEJeff_work which essentially (to clients) looks like an authoritative master, but is really just a pass through cache to the real master
14:39 scalability-junk there are 2 things I'm still scared about. running mail and running dns...
14:39 SEJeff_work mail yes
14:40 SEJeff_work dns is easy, you just need to get used to it
14:40 dthom91 joined #salt
14:40 SEJeff_work scalability-junk, You could likely do everything you want using dnsmasq to be honest, which is downright pleasant to use
14:40 SEJeff_work dnsmasq's learning curve is 10x less than bind
14:41 scalability-junk I always have be careful or you end up as ddoser ;)
14:41 scalability-junk but yeah will do probably.
14:41 SEJeff_work scalability-junk, Just turn off recursion
14:41 scalability-junk will write that down :D
14:41 SEJeff_work That prevents the kaminsky style stuff cold.
14:42 scalability-junk but without recursion I would need to have a fallback dns server within my minions right?
14:43 SEJeff_work If you set it up to only respond to queries from ips / hosts you control it shouldn't be a huge deal. You can fairly easily mitigate problems by configuring stuff correctly (even with recursion enabled)
14:43 SEJeff_work Just don't open up your dns server to queries from the internet and you'll be fine
14:43 scalability-junk SEJeff_work: alright cool
14:44 napperjabber joined #salt
14:49 oz_akan_ joined #salt
14:49 MTecknol1gy joined #salt
14:57 kenbolton joined #salt
14:57 auser joined #salt
14:58 faldridge joined #salt
14:58 MTecknology joined #salt
14:59 StDiluted joined #salt
14:59 robbyt joined #salt
15:01 up_the_irons joined #salt
15:03 conan_the_destro joined #salt
15:04 aat joined #salt
15:07 kermit joined #salt
15:07 terminalmage SEJeff_work: http://devopsreactions.tumblr.com/post/57507135731/trying-to-push-a-merge-conflict-fix-and-receiving-a
15:08 mgw joined #salt
15:08 SEJeff_work terminalmage, Isn't that the truth!
15:08 terminalmage hehehe
15:09 mgw1 joined #salt
15:09 terminalmage I just love the reaction
15:09 jacksontj joined #salt
15:09 p3rror joined #salt
15:12 whit joined #salt
15:12 jacksontj_ joined #salt
15:14 Furao_ joined #salt
15:17 vaxholm joined #salt
15:19 forrest joined #salt
15:21 aat joined #salt
15:22 forrest s0undt3ch, was the issue I was bringing up in https://github.com/saltstack/salt-bootstrap/issues/198 described clearly enough to take action on? I noticed you asked Herlo to weigh in. I can add more details (though I'm not sure what needs to be expanded on).
15:26 whit joined #salt
15:28 s0undt3ch forrest: yes, I only asked Herlo because he's the EPEL packager and knows more about it than I. I'm a Kubuntu user.
15:28 forrest s0undt3ch, Yea fair enough. I really don't think the RPM should be modified, it's a failure of the EPEL maintainers, not the RPM.
15:32 Gifflen joined #salt
15:32 forrest Actually maybe Herlo could talk to Thmoas Moschny, and ask him to just properly name the RPM in EPEL
15:33 forrest *Thomas
15:33 forrest I don't know why he modified the naming scheme.
15:34 jschadlick joined #salt
15:38 kenbolton joined #salt
15:41 abe_music joined #salt
15:49 _vimalloc joined #salt
15:50 chrisgilmerproj left #salt
15:51 devinus joined #salt
15:54 felskrone joined #salt
15:56 wendall911 joined #salt
15:56 bitz joined #salt
15:56 kstaken joined #salt
15:57 StDiluted Does salt compress before encryption?
15:57 jacksontj kindof-- if you are using msgpack its encodes to msgpack which is compact (but not compressed)
15:59 avienu joined #salt
16:00 auser joined #salt
16:03 djn hey, if I try to use the gitfs backend in 16.2 the logs show the following error: https://paste.selfnet.de/0dGcx/pytb thoughts?
16:04 mapu joined #salt
16:08 Ryan_Lane joined #salt
16:08 FOCer joined #salt
16:10 Tekni joined #salt
16:12 Ahlee whiteinge: any thoughts on why salt-api -l -d debug isn't creating a log file?
16:15 whiteinge Ahlee: do you mean ``-l debug -d``? tbh, i'm not very familiar with how salt's -d flag works. does salt itself create a log file when using those two flags?
16:16 rspectre joined #salt
16:18 whiteinge (salt-api is using the same option mixins as salt, so the behavior is supposed to be the same)
16:18 dthom91 joined #salt
16:18 vaxholm joined #salt
16:20 berto- joined #salt
16:22 troyready joined #salt
16:25 devinus joined #salt
16:27 Gifflen joined #salt
16:28 StDiluted Anyone at Salt have any stats about how many commits were made during the Salt Sprint?
16:30 TheRealBill joined #salt
16:33 faldridge joined #salt
16:36 KyleG joined #salt
16:36 KyleG joined #salt
16:37 Lue_4911 joined #salt
16:40 UtahDave joined #salt
16:42 Ahlee whiteinge: supposed to, but i see my salt-master is using -d --log-level=debug, so I'll try it
16:42 Ahlee and failing that, finally move to apache or nginx instead of cherrypy
16:44 Ahlee The exception: http://pastebin.com/Pyn5zg6E
16:46 whiteinge trying to recreate...
16:47 Ahlee this is calling a custom _module, so I"m guessing they have a print or something stupid in there that can't write since there's no stdout
16:47 Ahlee looking through the _module's code now
16:49 juanlittledevil joined #salt
16:49 juanlittledevil good morning peeps
16:49 JesseC juan is the loneliest number
16:49 austin987 joined #salt
16:50 juanlittledevil if I had juan penny for every time I've hear that ;)
16:52 ggoZ hm
16:52 ggoZ anybody toying with halite?
16:54 rspectre joined #salt
16:55 whiteinge Ahlee: the ``doc`` runner module prints to stdout which may be useful for testing
16:56 whiteinge which server are you using? do you have debug: True in your rest_cherrypy config section?
16:57 whiteinge also, what happens after the traceback is raised? does it stop the server or can you continue making requests?
17:00 nliadm I'm getting a lot of salt.exceptions.SaltReqTimeoutError when trying to do things on the master
17:01 nliadm in addition to the (now usual) minions claiming they're unauthenticated
17:04 krissaxton joined #salt
17:04 ggoZ i get `Error! Call Failed!` in  halite :<
17:05 afx_hero joined #salt
17:05 afx_hero joined #salt
17:05 Ahlee whiteinge: yes, debug: True
17:05 Ahlee whiteinge: from everyhting i can tell the entire api module is hung
17:06 Ahlee unfortunetely the consumers are impatient and don't like debugging, so when it enters that state they kill -9 and restart so I have't had a chance to dig since this never happens when i'm at my desk
17:06 Thiggy joined #salt
17:06 frosty996 left #salt
17:07 Thiggy What does/is the pillar data "master:environment" do/for?
17:09 JaredR joined #salt
17:11 Thiggy nevermind! #derp
17:15 devinus joined #salt
17:19 diegows joined #salt
17:23 HashNuke left #salt
17:27 Ryan_Lane joined #salt
17:29 aynik joined #salt
17:30 auser joined #salt
17:31 auser hey all
17:43 az87c joined #salt
17:55 LGSilva joined #salt
17:55 StDiluted hey auser
17:56 auser how goes StDiluted
17:56 StDiluted going ok
17:58 Furao joined #salt
17:58 gordonm joined #salt
17:58 nliadm can't get salt to run consistenly. Anyone have any advice?
17:59 dthom91 joined #salt
17:59 LGSilva hey guys. I'm trying to find on the documentation how to get the ip address for eth0 on a minion. the grains.item ip_interface return data for all interfaces.
18:00 smoof joined #salt
18:00 smoof Hey UtahDave
18:01 smoof how's it going?
18:07 Gifflen joined #salt
18:07 chetane joined #salt
18:08 auser nliadm: what do you mean consistenly
18:08 nliadm I mean, most of the time, some sort of error occurs
18:08 auser LGSilva: that is just a dict
18:08 auser what kind of errors
18:09 whiteinge Ahlee: ah, right. sorry, you've said that before. what version of salt-master and what version of salt-api?
18:09 nliadm TypeError, salt.exceptions.*, ZMQError, claiming the minion is unauthenticated
18:09 UtahDave i'm doing great, smoof!  how about you?
18:10 Ahlee whiteinge: 0.16.0 master, 0.8.2 salt-api
18:11 whiteinge hm. should be ok. frustrating...
18:11 faldridge joined #salt
18:12 druonysus joined #salt
18:13 nliadm these random error combined with the batching being broken makes it effectively useless as an orchestration tool. And the errors occurring when running salt-call make it effectively useless as a configuration tool
18:13 UtahDave nliadm: what version of Salt are you on?
18:13 jxqz joined #salt
18:14 nliadm 0.16.0
18:14 nliadm installed from the ubuntu ppa
18:15 UtahDave Can you update to 0.16.2?  It was just released. It will fix your salt-call issue. And it might help with the zmq issue you're seeing.
18:16 nliadm I'll try to get the OK on that and report back
18:21 zloidemon Hello
18:22 zloidemon UtahDave: How can I sync users from salt and linux machines? For example I'll remove from list one and then add one. How can I correct auto remove one and add one?
18:23 Ahlee whiteinge: Yeah, I just don't get it.  Ran fine from the last time we talked until now
18:24 cedwards terminalmage: just submitted a new bug, just for you :)
18:24 UtahDave zloidemon: you can use the user state    user.present and user.absent   http://docs.saltstack.com/ref/states/all/salt.states.user.html#module-salt.states.user
18:24 smoof Hey Utah, do you guys do the epel packages for salt?
18:25 whiteinge Ahlee: i have seen a similar IOError before. one coming from the outputter system after daemonization. there was/is a ticket for it in salt
18:25 UtahDave we don't yet. We're working with the packager to get 0.16.2 up
18:26 Ahlee whiteinge: interesting.  seems likely related.
18:26 smoof awesome. any idea how long that will take?
18:26 UtahDave zloidemon: Also, for one off user additions and deletions from the CLI you can use the useradd execution module: http://docs.saltstack.com/ref/modules/all/salt.modules.useradd.html#module-salt.modules.useradd
18:26 zloidemon UtahDave: Clear. Thank you I thought about another best way :(
18:27 UtahDave smoof: hopefully we can get uploaded today or tomorrow.
18:27 UtahDave zloidemon: cool
18:27 whiteinge Ahlee: that said, could a possible (temporary) workaround for your consumers be not to daemonize salt-api and just redirect the output. possibly a wrapper shell script? i'd be happy to help
18:27 Ahlee whiteinge: been there, i've run salt-api in screen, tmux, sh -c "2>&1 &", etc
18:28 whiteinge oh! so the daemonization may not be the culprit then?
18:28 Ahlee maybe, maybe not.
18:28 zloidemon UtahDave: I'm writing web ui for manage servers and deploy it with saltstack.
18:28 zloidemon UtahDave: All data is saving in mysql and deploy from it with gen configs at salt
18:29 UtahDave zloidemon: nice!  sounds cool
18:30 berto- joined #salt
18:30 Ahlee whiteinge: I can't prove it either way, which is the most frustrating part
18:33 craig_ whiteinge: hey. i JUST saw your email (re: salt api)
18:33 dave_den LGSilva: salt 'myminion' network.ip_addrs interface=eth0
18:33 craig_ was hoping you had a few minutes in about an hour to give me a hand
18:33 craig_ i followed your pointers, but the new "tool" isnt being run
18:34 morganfainberg joined #salt
18:35 LGSilva thanks dave_den
18:35 EnTeQuAk UtahDave, btw, yesterday we had the small discussion on if it's possible to easily spawn a salt-master and multiple minions at the same time and agreed that it's best to first spawn the master and afterwards the minions, just fyi - I found out that salt-cloud already does that if you have a master and minions mixed in a map file :-)
18:35 whiteinge craig_: yeah. am happy to
18:36 UtahDave EnTeQuAk: really?  that's cool.  I was not aware of that!
18:36 EnTeQuAk yea, it was already implemented, just stumbled upon the code lines by accident, tried it and it worked :-D
18:37 nmistry joined #salt
18:37 EnTeQuAk I should work on some documentation for that I guess
18:37 whiteinge Ahlee: just had a talk here in the office about the (possibly) related IOError. it may be daemonization is stymied due to the logging output. the logger could be causing salt-api to keep holding on to an outdated file handle
18:37 UtahDave EnTeQuAk: that would be very nice!  thanks!
18:37 EnTeQuAk :)
18:38 whiteinge Ahlee: there's likely a "proper" fix. but perhaps it would be worth testing to disable logging in the cherrypy app (or have it log directly to a file instead)
18:38 berto- joined #salt
18:46 mgw joined #salt
18:46 ipmb joined #salt
18:48 whiteinge Ahlee: something like this: https://github.com/whiteinge/salt-api/compare/cpy-logging
18:49 anon12321 joined #salt
18:50 middleman_ joined #salt
18:52 krissaxton joined #salt
18:53 blee_ joined #salt
18:59 Lue_4911 joined #salt
19:03 Ahlee whiteinge: that sounds entirely possible
19:04 Ahlee i'll give it a try
19:04 * whiteinge crosses his fingers
19:04 Ahlee Thanks for looking into it, appreciate it
19:04 Brad__ joined #salt
19:04 JesseC is there any way to run a command from within file.sed, to say generate a random string of characters for the phpmyadmin blowfish secret
19:05 whiteinge thanks for helping us troubleshoot it
19:05 Ahlee rolling out to uat and prod tonight, this will save me the hourly restart I have splanned
19:11 dthom91 joined #salt
19:11 zooz joined #salt
19:12 dave_den if I know the minion id in a runner, can I get a dict with the minion pillar data?
19:12 dave_den in the runner module
19:13 Ahlee whiteinge: Unknown if related, but if I leave the terminal I start the api with logged in, I get to what appears to be stderr the requests
19:14 helderco joined #salt
19:22 whiteinge i'm not sure if it's related or not. if you don't see the traceback in this new test then i'll bet it is
19:23 Gifflen joined #salt
19:25 JesseC Can you nest calls like this? {{ salt['cmd.run']( {{ salt['cmd.run'](generatedcommand) }} ) }}
19:25 JesseC That's not my particular use-case, but the idea is the same.
19:26 opapo joined #salt
19:29 juanlittledevil joined #salt
19:33 SEJeff_work JesseC, I don't think you can, but you could do something like: {% set generated command = salt['cmd.run'](generate_command) %}... {% salt[cmd.run](command) %}
19:34 anteaya joined #salt
19:37 JesseC SEJeff_work: I moved to trying something similar, but it's telling me "expected token 'comma', got 'rand'; line 1 in template"
19:37 napperjabber_ joined #salt
19:37 JesseC https://gist.github.com/JesseC-/bf74c968828caf613d2f
19:38 SEJeff_work JesseC, Oh well that won't work. It is python, you have to quote a string
19:39 SEJeff_work JesseC, I commented on your gist with a working version
19:39 SEJeff_work JesseC, Also, why are you trying to echo the random string? That is not necessary
19:39 SEJeff_work You can just do {{ rand }} anywhere in the template
19:40 felskrone joined #salt
19:41 JesseC The echo was just for testing
19:41 SEJeff_work gotcha
19:41 JesseC I actually need to feed rand into a file.sedf
19:41 JesseC file.sed^
19:41 SEJeff_work perfect
19:41 berto- joined #salt
19:44 JesseC woot. :)
19:44 JesseC Thanks SEJeff_work
19:45 SEJeff_work JesseC, Does that work for you?
19:45 devinus joined #salt
19:45 JesseC Yep. I added the single quotes then added my file.sed and it worked perfect
19:47 SEJeff_work :)
19:48 mr_chris joined #salt
19:48 mr_chris What would be Salt's alternative to Foreman with Puppet?
19:49 EugeneKay I don't know what that does
19:49 EugeneKay Google says its a thing to do DHCP, DNS records, and PXE boot.
19:50 EugeneKay Sounds like salt-cloud
19:50 mr_chris It's a web interface to monitor the status of all puppet agents and their status.
19:50 mapu It also is critical in reporting (Foreman)
19:50 mapu and alternative to Puppet dashboard
19:50 mapu (sorry to just jump in- was just flipping over and saw the Q)
19:51 mr_chris Mainly just need a dashboard to see if any cron salt-call commands are failing.
19:51 mr_chris mapu, Please. Any suggestion you have would be welcome.
19:52 EugeneKay I don't know if -cloud does DNS records et al
19:52 EugeneKay I suspect you can make it
19:52 mapu sadly, I have no suggestions right now. I am probably moving to salt- and almost all of my issues with puppet are addressed with Salt
19:52 mapu except the reporting portion
19:52 mr_chris Same here.
19:53 mapu However- since salt keeps specific info about each job- should be able to pull that info
19:53 dave_den the guis for salt a very new. https://github.com/saltstack/halite is one.
19:53 mapu for example- start a job and ctrl-c out of it
19:53 giantlock joined #salt
19:53 mapu you'll get a message like this:
19:53 mapu The minions may not have all finished running and any remaining minions will return upon completion. To look up the return data for this job later run:
19:53 mapu salt-run jobs.lookup_jid 20130806155328286111
19:53 mr_chris mapu, Found this. https://github.com/saltstack/halite
19:53 UtahDave joined #salt
19:54 dave_den mapu: you can easily hook into salt with the salt-api REST interface. https://github.com/saltstack/salt-api
19:54 mapu Ah- very zulu-alpha- but looks good.
19:54 mapu interesting
19:55 mapu I habd't quite gotten to the API yet
19:55 mapu looks like I have some homework
19:55 mapu :)
19:55 dave_den indeed
19:55 SEJeff_work mapu, It will be what halite is for, but halite was just started
19:55 SEJeff_work so needs at least a few months
19:55 mapu Sure- understood.
19:55 SEJeff_work mapu, Check out the screenshots: https://github.com/saltstack/halite/tree/master/screenshots
19:56 nliadm SEJeff_work: know what version of coffeescript is required? the one from Ubuntu lts throws errors
19:56 mapu nice
19:57 SEJeff_work nliadm, I'd ask a saltstack employee like whiteinge or UtahDave
19:57 mmilano joined #salt
19:57 whiteinge nliadm: that should be listed in the README. will you file a ticket?
19:58 whiteinge i don't know the required version offhand but the guy who will respond to the ticket will
19:59 JesseC Anyone know how to disable the backup in file.sed, the only thing in the documentation shows setting the file extension for the backup
20:00 SEJeff_work JesseC, The docs say
20:00 SEJeff_work JesseC, http://docs.saltstack.com/ref/states/all/salt.states.file.html#salt.states.file.sed "The extension for the backed-up version of the file before the edit. If no backups is desired, pass in the empty string: '' "
20:00 JesseC http://docs.saltstack.com/ref/modules/all/salt.modules.file.html#module-salt.modules.file
20:00 zooz joined #salt
20:01 JesseC oh. I was looking in modules
20:01 SEJeff_work JesseC, Do you have a github account? You could get a single commit if you wanted to fix: Make "if no backups is desired" into "if no backups are desired"
20:02 JesseC I do, but haven't gotten as far as pull requests and such yet
20:02 LGSilva joined #salt
20:02 joeTSUNAMI joined #salt
20:02 forrest JesseC, can you run an rpm -qi python-jinja2 on your cent6 64 bit VM if it's booted?
20:02 SEJeff_work JesseC, If you have a github account, you can browse to that file, click "Edit" in the github webui, fix that, and then save it. Then click the "open a pull request button"
20:02 joeTSUNAMI with group.present, what format do i use to specify members
20:02 JesseC Oh nice, it's that easy
20:03 JesseC forrest: https://gist.github.com/JesseC-/9c6488dc72cb30906a18
20:04 forrest awesome thanks
20:04 it_dude joined #salt
20:04 zooz which repo should I contribute new grains support to?
20:05 austin987 joined #salt
20:06 nliadm anyone have thoughts on what current best practices are around reporting for salt? What returner/jobcache do people use?
20:10 tomeff joined #salt
20:16 td_ joined #salt
20:16 dave_den joeTSUNAMI: you'd use the user state function and have the user belong to the group
20:18 joeTSUNAMI meh.. ok.  Would be nice to have it organized under the group
20:19 rlawrie joined #salt
20:19 oozbooz joined #salt
20:19 FreeSpencer joined #salt
20:19 mike25ro joined #salt
20:20 abe_music joined #salt
20:21 oozbooz left #salt
20:23 krissaxton joined #salt
20:23 td_ Hi. When I run salt state.highstate nothing happens - not even a error just nothing. I started the minion with -l debug to get some pointer what went wrong but I still am clueless
20:23 td_ Here the output: http://dpaste.com/1333452/ - how do I debug this situation?
20:24 UtahDave td_: let's figure out why you're getting that stacktrace.
20:24 UtahDave td_: what version of Salt are you on?  Can you pastebin your sls files and top.sls?
20:25 td_ the version of fedora 17 (both minion and master)
20:25 td_ 0.15.1-1.fc17
20:26 dfinn joined #salt
20:27 dfinn is it possible to have salt create a list of directories all sharing the same ownership and permission or does each directory need to be listed?  for example, in puppet we do this:
20:27 dfinn http://pastebin.com/S26RYuxz
20:28 td_ UtahDave: well, I removed all but a single entry in the top.sls so I don't have to past 50 sls files - now it works. I will now re-add till it stops working
20:30 forrest Does anyone in here have a RHEL subscription where they aren't paying for the optional repos?
20:30 rlawrie Hi, I seem to have started to hit a problem where I receive an error (AttributeError: 'str' object has no attribute 'read') when trying to apply a change to a managed file to a minion. I'm running 0.16.2 on the master (Ubuntu Wheezy), and 0.16.0 on the minion (Amazon Linux AMI release 2012.09).
20:31 rlawrie The full error is here: http://pastebin.com/B3zpns3q
20:31 KyleG rlawrie: I reported this bug here; https://github.com/saltstack/salt/issues/6194
20:31 KyleG Please add-on as you need to
20:31 forrest dfinn, you could use jinja templating
20:32 dfinn i just came across https://github.com/saltstack/salt-states/blob/master/users/init.sls
20:32 dfinn that should work for a bunch of directories as well?
20:32 forrest that's exactly what I was gonna point out
20:32 Thiggy joined #salt
20:32 dfinn perhaps that is jinja
20:32 dfinn cool, thank you
20:32 forrest yea that's jinja2 templating with the {% %}
20:32 rlawrie Thanks KyleG.
20:32 KyleG np
20:34 aboe joined #salt
20:38 Ixan joined #salt
20:38 faldridge joined #salt
20:38 Thiggy #6522 is causing me some grief. What would the bootstrap command look like to install the 0.16.0 package? I can't find a similar example on the bootstrap project
20:39 forrest sh bootstrap-salt.sh git 0.16.0 I believe Thiggy
20:40 Thiggy ok so the -- git develop is just the branchname
20:40 Thiggy gotcha
20:40 Thiggy err refspec w/e.
20:40 forrest I believe so, JesseC would know for sure, I know he's been pulling specific versions down lately.
20:40 td_ UtahDave: https://github.com/saltstack/salt/issues/6544
20:41 td_ UtahDave: tested with 0.16.2
20:41 JesseC Thiggy: curl -L http://bootstrap.saltstack.org | sh -s -- git v0.16.0
20:41 Thiggy Much thanks!
20:42 forrest ahh forgot the v
20:42 aleszoulek I wish that bootstrap would be served on https
20:42 aleszoulek :)
20:42 UtahDave dfinn: you actually don't have to use jinja for that if you use the - names option.  Let me whip up an example real quick
20:43 dfinn cool, love all the options
20:45 berto- joined #salt
20:45 terminalmage cedwards: will take a look at that, thanks
20:47 Thiggy @forrest @JesseC worked like a charm.
20:48 forrest Thiggy, great, I'm glad JesseC had the right command handy :P
20:48 devinus joined #salt
20:49 JesseC Got every piece of my server provision working, ran them all together on a fresh image, boom, tons of requisites failing. >:(
20:50 JesseC I wish there was a better way of displaying what exactly failed and supressing all the random output
20:50 JesseC When you compile something, you get like 15,000 lines of randomness
20:51 UtahDave dfinn: Try something like this: https://gist.github.com/UtahDave/6168510
20:51 UtahDave dfinn: I haven't tested that, but that should work
20:51 twobitsprite joined #salt
20:52 UtahDave JesseC: have you looked at configuring your master to only show failures? Or terse output?
20:52 JesseC UtahDave: I'm using a masterless setup
20:52 aat joined #salt
20:52 twobitsprite so, I'm trying to install halite and I'm looking at the salt-api docs, and for ubuntu it says to use the salt-stack PPA, but browsing the PPA's repo I don't see a salt-api package...
20:52 forrest oh that's cool UtahDave, didn't think about using names
20:53 dfinn thanks UtahDave
20:53 whiteinge twobitsprite: it should be in there: https://launchpad.net/~saltstack/+archive/salt
20:53 felskrone UtahDave: any news on issue 5948 or 5729 yet? :-)
20:53 dfinn next question is, how could I have the creation of these directories require another module or package that will create the user who would own them?
20:54 twobitsprite I'm actually trying to install on a Debian Squeeze system, and I have the debian.saltstack.com/debian repo in my source and it's not in there either
20:54 twobitsprite whiteinge: ahh, ok I'll try that, thanks
20:58 UtahDave dfinn and forrest, yeah, that cuts down on the need for jinja.
20:58 twobitsprite ugh... the ubuntu version requires upstart which is problematic on debian squeeze :(
20:59 dfinn jinja is expensive on the cpu I take it?
20:59 felskrone twobitsprite: building your own package is quite easy. ever done that on before? i could give you a quick recipe
21:00 UtahDave felskrone: looking into those issues
21:00 felskrone great, thx
21:00 twobitsprite felskrone: I apprectiate it, but I've done plenty of debian packaging... it's just a bit of a pain that there isn't a straight debian package
21:01 rspectre joined #salt
21:01 UtahDave twobitsprite: We do have a debian package.  debian.saltstack.com
21:01 felskrone i agree, but for the same reason you mention i have to do it almost weekly :-)
21:01 twobitsprite UtahDave: I don't see salt-api there
21:02 UtahDave dfinn: jinja isn't very cpu intensive.  It just gets complicated and messy quickly.
21:02 UtahDave twobitsprite: Oh, I'm sorry. I didn't realize you were talking about salt-api
21:02 felskrone with the salt-* packages is basically a checkout, remove *.upstart in rules and dpkg-buildpackage -b and you're done
21:03 UtahDave dfinn: I always recommend using jinja as lightly as possible.  jinja is awesome, but too much templating makes it hard to debug sls issues.
21:03 dfinn gotcha, I will keep that in mind
21:06 druonysus joined #salt
21:06 druonysus joined #salt
21:08 whit joined #salt
21:09 Thiggy @UtahDave are there some best practice for debugging templates? Some kind of "show me what this file would look like on this machine" thing?
21:10 UtahDave Thiggy: there are various functions in the state execution module such as  salt 'minionname' state.show_highstate  state.show_sls   state.show_top
21:10 Thiggy Ooh ok, I'll look in there.
21:10 Thiggy thanks
21:11 UtahDave Thiggy: also, running the minion in debug mode in the foreground will often reveal stacktraces and things.
21:11 Thiggy ok
21:17 druonysuse joined #salt
21:17 druonysuse joined #salt
21:19 dfinn UtahDave, for that directory creation example that you helped me with…how could I have that require creation of the user that will own those directories?  that local user creation would probably be in another package/sls, is there a way I can tell this to require that?
21:20 UtahDave dfinn: yeah, that's just a simple require
21:20 aat joined #salt
21:21 UtahDave Assuming you're already defining that user in salt somewhere:
21:21 UtahDave - require:
21:21 UtahDave - user: myuser
21:21 dfinn excellent
21:22 dfinn and so if this directory creation sls is called and it sees that those users aren't required, it will call the other sls for the user and create the user?
21:22 dfinn sorry, i meant user aren't created, not required
21:23 krissaxton joined #salt
21:24 UtahDave dfinn: requires only work in the context of a highstate. It will make sure that the user is created successfully  first before these files are created.
21:25 dfinn hmm....
21:26 smoof does git_pillar work similar to gitfs?
21:27 UtahDave smoof: Yeah, it allows you to keep pillar info in a git repo
21:28 Valdo joined #salt
21:28 smoof I think I need some better examples cause I can't seem to get it to work right...
21:29 smoof I'm too thick headed...
21:29 smoof :)
21:29 UtahDave :)  what problems are you seeing?
21:29 UtahDave it's a very new feature
21:30 smoof well, I think it's just not connecting to the repo
21:30 smoof but I guess I'll have to plug along on it tomorrow
21:30 smoof cause it's almost quittin time
21:30 smoof :)
21:30 UtahDave ok, cool.
21:30 UtahDave I know you just want to go down that slide one more time today, smoof.
21:31 smoof :)
21:32 felskrone UtahDave: any updates on the issues? i have to go to bed very soon. i'll ask again tomorrow or so if you need more time.
21:35 nineteeneightd joined #salt
21:38 kermit joined #salt
21:39 dthom91 joined #salt
21:41 UtahDave felskrone: thatch mentioned that he was working on them in the comments, but I haven't been able to talk to him yet. He's been in meetings all afternoon.  :(  I'll make sure I get to him this evening or in the morning and get back to you.
21:43 felskrone UtahDave: no need for stress, i'll be on vacation on friday for the next two weeks :-)
21:43 UtahDave OK.  I hope you have a great vacation!
21:44 felskrone i'll send you a postcard if you want :-)
21:44 nliadm after the minion finally didn't act like it was unauthenticated, it did this: http://pastebin.com/HAVFngUF
21:45 UtahDave felskrone: Do you have a SaltStack tshirt to wear in a photo??
21:45 carxwol joined #salt
21:46 felskrone UtahDave: no, not yet
21:46 UtahDave dang, we need to get one to you, felskrone!
21:46 dstanek joined #salt
21:46 druonysus joined #salt
21:47 dfinn when creating a user, can I tell it to add that user to a group IF the group exists and if it doesn't then just move along?
21:48 felskrone UtahDave: once salt is a little more known in europe, it will be easier to get shirts etc. for now, lets start with a postcard. i'll post it to the saltstack address and you in person :-)
21:48 UtahDave dfinn: yeah, there's an optional_group option. (check the docs for the exact name)
21:48 UtahDave felskrone: sounds great!
21:48 felskrone alright, have a good one. good night
21:49 UtahDave nliadm: looking at your stacktrace right now
21:50 nliadm if I get zmq errors (not incredibly common, but I do see them) it's usually that exception
21:50 forrest UtahDave, for next year's pycon you guys should do the clear stickers as opposed to the big white ones.
21:52 UtahDave forrest: yeah, they're really popular.  I'm pretty sure we'll stick with the clear ones.
21:52 forrest UtahDave, oh did you guys have clear ones?
21:52 forrest the one I got was one of the big white rectangle ones
21:53 UtahDave forrest: Yeah, we got some cool clear ones. clear background and then SaltStack and the logo in black or white
21:53 forrest oh nice that's really cool
21:53 UtahDave nliadm: OK, after a little digging it looks like there are several bugs related to what you're seeing.
21:53 nliadm ok
21:53 avienu Silly question… so I have a file delivered to minions via salt://path/file.ext. Can I use pillar data in that file and have it be rendered prior to delivery?
21:53 nliadm I saw some, but wasn't sure if they were the same
21:53 UtahDave nliadm: Tom is going to dig some more into that today and tomorrow.
21:53 nliadm excellent
21:54 UtahDave avienu: yep!
21:54 UtahDave nliadm: sorry that issue has been annoying
21:54 avienu UtahDave: Do I have to do anything special for that to happen or is it automatic?
21:56 linjan joined #salt
21:56 cewood joined #salt
21:58 UtahDave avienu: first you have to have   - template: jinja  in your file.managed.
21:59 UtahDave avienu: then in your file in the appropriate location have  {{ salt['pillar.get']('pillarvalue', 'defaultvalue') }}
22:00 forrest UtahDave, are you guys planning on hitting PyCon up in Canada next year?
22:03 mike25ro UtahDave: things like this {{ salt['pillar.get']('pillarvalue', 'defaultvalue') }}   are not very well explained in the doc... i know we can use jinja2, but more examples in the doc would be great...
22:03 mgw joined #salt
22:04 mike25ro UtahDave: since i am ... also  a newbie ... i am planning on creating ... on my blog... a startup salt doc... something that ... i think is useful, but it would be great if some more advanced salt users can also take a look and add remarks/help me choose the best examples for the newbies
22:07 UtahDave forrest: yeah, I'm pretty sure we'll be at Pycon!
22:07 forrest Cool
22:07 UtahDave mike25ro: Yeah, we definitely could use additions and clarifications to the docs.  As you're going through things, would you mind making any additions you think would be helpful?
22:08 UtahDave mike25ro: the docs are all in the docs directory in the salt repo
22:13 jacksontj joined #salt
22:13 jacksontj UtahDave: yt?
22:13 UtahDave hey!
22:14 UtahDave jacksontj: Tom finally figured out that issue you were seeing.  He was hoping you could test against the latest develop
22:14 jacksontj yea, i was trying to test it
22:14 UtahDave ah, what are you seeing so far?
22:14 jacksontj i still get an error :(
22:15 jacksontj UtahDave: http://pastebin.com/Fxzi3BSR
22:16 jacksontj so now its tellinng me its a recursive requisite
22:16 jacksontj so, better than infinite recursion ;)
22:16 UtahDave Ah.
22:19 kenbolton joined #salt
22:20 mike25ro thanks UtahDave
22:20 UtahDave thank you, mike25ro!
22:20 UtahDave jacksontj: Is that using the same states you put in the original issue?
22:21 jacksontj yes
22:21 UtahDave ok, I'll grab Tom as soon as he gets out of this meeting.
22:22 jacksontj ok :)
22:22 forrest boooo meetings
22:22 jacksontj i should be here most of the rest of the day
22:24 krissaxton joined #salt
22:25 iquaba joined #salt
22:25 whit joined #salt
22:25 berto- joined #salt
22:26 auser joined #salt
22:28 dthom91 joined #salt
22:29 viraptor joined #salt
22:29 krissaxton joined #salt
22:30 alunduil joined #salt
22:31 viraptor hi all, I'm trying to reload grains on local node after a new file is downloaded - but cmd.call doesn't seem to work the way I expect it to - what's wrong with this: http://pastebin.com/PMav1reL
22:33 dthom91 joined #salt
22:38 cron0 joined #salt
22:38 berto- anyone going to djangocon?
22:40 cxz joined #salt
22:41 forrest berto-, only if James Bennett wears the dinosaur costume from PyCon again
22:41 forrest http://pyvideo.org/video/1795/write-the-docs
22:42 dave_den viraptor: i think you want to use the states.module.watch instead of cmd.call
22:42 forrest or pony I think
22:42 UtahDave viraptor: I think what you want module.run  http://docs.saltstack.com/ref/states/all/salt.states.module.html#salt.states.module.run
22:43 berto- forrest: HA!
22:44 UtahDave viraptor: also, would   saltutil.refresh_modules work for you?   http://docs.saltstack.com/ref/modules/all/salt.modules.saltutil.html#salt.modules.saltutil.refresh_modules
22:48 mike25ro left #salt
22:50 oz_akan_ joined #salt
22:53 FreeSpencer joined #salt
23:03 ingwaem joined #salt
23:04 ingwaem Greetings everyone…Salt-Cloud…anyone used it successfully against VMWare ESX server?
23:04 viraptor @utahdave it doesn't seem to work unfortunately :( "Module function salt.modules.saltutil.refresh_modules is not available"
23:05 viraptor unless I'm doing it wrong, but I'm just setting "- name: salt.modules.saltutil.refresh_modules" in module.run
23:05 UtahDave nah, try   - name: saltutil.refresh_modules
23:05 rlawrie left #salt
23:06 kenbolton joined #salt
23:07 viraptor UtahDave: great, that worked :)
23:07 UtahDave cool!
23:08 dthom91 joined #salt
23:08 viraptor UtahDave: but now I wonder if it actually made any sense... the .sls files are rendered at the very beginning of the run, right? even if I reload the grains, the part that contained {{ grains["blah"] }} will not change at this point, right?
23:09 UtahDave viraptor: that's true.  all jinja in {{ ljlkjlkj }} will be evaluated first.
23:11 aat joined #salt
23:11 viraptor UtahDave: that's not fun... I'm running in standalone mode and I'm trying to first get some data from s3, then use it as parameters. do you know of any sane way to do it? or should I just run highstate twice?
23:12 UtahDave how are you trying to get data from s3?
23:13 viraptor running 's3cmd get ...' to dump it into /etc/salt/minion.d/credentials.grains.conf
23:13 bitz joined #salt
23:15 UtahDave viraptor: have you looked at the s3_grains.py in the salt-contrib repo?
23:15 viraptor oooooooo.....
23:15 viraptor OOoooooo...... :)
23:17 goodwill UtahDave: when I just run salt-call what log file do I find the output of it in?
23:17 viraptor UtahDave: actually no, I can't find it - there are some ec2_{info,tags,...}, but you say there's an s3_grains somewhere?
23:18 UtahDave goodwill: /var/log/salt/minion/something..
23:18 UtahDave viraptor: https://github.com/saltstack/salt-contrib/tree/master/grains
23:19 UtahDave those 3 modules will pull various bits of ec2 info
23:19 UtahDave bah, sorry, that's not s3
23:20 viraptor UtahDave: yeah, not what I'm after unfortunately. I just have a custom yml file uploaded
23:20 UtahDave viraptor: I'm thinking that you're going to want to create an s3 external pillar.
23:20 UtahDave Here's the existing external pillars.  https://github.com/saltstack/salt/tree/develop/salt/pillar
23:20 UtahDave the git_pillar  might be a good example to get you started.
23:20 UtahDave viraptor: I can help you tomorrow, but I have to leave right now. Wife is waiting for me.
23:21 viraptor utahdave: thanks, I'll give it a go
23:21 jeffmendoza joined #salt
23:22 forrest joined #salt
23:26 darrend joined #salt
23:38 jslatts joined #salt
23:43 kenbolton joined #salt
23:47 cxz joined #salt
23:47 cxz win 7
23:55 ingwaem joined #salt
23:57 ingwaem left #salt
23:58 intchanter joined #salt

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