Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-05-02

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

All times shown according to UTC.

Time Nick Message
00:02 allanparsons argh, nm
00:02 allanparsons that workaround didnt work
00:02 allanparsons weird
00:04 it_dude joined #salt
00:05 claytonk joined #salt
00:05 rome joined #salt
00:05 bhosmer joined #salt
00:09 ahammond So, I'm including tls_certs. tls_certs has a {% set tls_key_group = 'tlskeys' %}  which I then want to reference in a user.present section, but I'm getting Jinja variable 'tls_key_group' is undefined
00:09 ajolo joined #salt
00:10 lilmatt I'm having trouble getting sync_after_install to work with new Amz Linux nodes I'm spinning up on EC2.
00:10 ahammond I'd also like to require: group {{ tls_key_group }} but that is failing with the same error
00:11 ahammond I'm guessing I have to do something along the lines of a from import. yuck.
00:12 ahammond or... maybe put it in a pillar? also kinda yuck.
00:13 lilmatt Only clue I'm seeing is https://gist.github.com/lilmatt/c666b164cbd9a7517277
00:17 whiteinge ahammond: what is your import syntax?
00:18 rome joined #salt
00:18 ahammond whiteinge: include: - tls_certs
00:18 ahammond I worked around it by putting it in a map.jinja and doing the import stuff. fugly, IMHO. include should actually include.
00:18 whiteinge ah, gotcha. the jinja is processed as a separate step before the YAML is processed. you need to use a jinja-level include instead
00:19 ahammond ah. that makes sense.
00:19 ahammond and also yuck.
00:19 ahammond getting it done though.
00:20 whiteinge the map.jinja stuff is doing a bunch of extra things. if you just want to pull a few default values in, i'd recommend the {% import_json "defaults.json" as defaults %} instead
00:20 yomilk joined #salt
00:20 whiteinge or {% import_yaml ... %}
00:21 whiteinge that makes for a clean one-line jinja import and a nice, clean defaults.yaml or defaults.json file
00:27 tyler-baker left #salt
00:28 Luke__ joined #salt
00:30 elfixit joined #salt
00:32 rome joined #salt
00:33 redondos joined #salt
00:33 redondos joined #salt
00:43 redondos joined #salt
00:43 rome joined #salt
00:44 MTecknology I have a LUN in XIV presented to our ESXi cluster and formatted with VMFS5 and presented to five VMs using a separate BUS that allows me to share access across different hosts in the cluster. OCFS2 is the FS of choice so that I can access the same disk read/write on all of the boxes. :D
00:44 MTecknology That's effing awesome.
00:45 MTecknology whiteinge: too bad I can't stick load balancing on top, but... ooooh well... I'll end up creating that formula that edits the salt config and restarts the master if the config was changed so one minion is pinned to two masters. I'll probably write it tomorrow
00:45 Teknix joined #salt
00:54 rgarcia_ joined #salt
00:59 Nazzy joined #salt
00:59 Nazzy joined #salt
01:03 rome joined #salt
01:06 vbabiy joined #salt
01:10 rome_ joined #salt
01:12 rome_ joined #salt
01:18 Teknix joined #salt
01:21 Luke__ joined #salt
01:28 yomilk joined #salt
01:33 jalbretsen joined #salt
01:37 jalaziz joined #salt
01:47 ajprog_laptop joined #salt
01:49 ckao joined #salt
01:49 funzo joined #salt
01:50 funzo joined #salt
02:01 schimmy joined #salt
02:04 it_dude joined #salt
02:05 forrest joined #salt
02:06 forrest joined #salt
02:08 forrest basepi_, are you guys doing a doc sprint?
02:10 Luke joined #salt
02:12 manfred forrest: whiteinge and Ryan_Lane are doing one
02:12 forrest manfred, cool
02:13 forrest Ryan_Lane, is there a web page for the organizing of it or anything?
02:13 Ryan_Lane not yet. we set a date today
02:13 Ryan_Lane forrest: https://github.com/saltstack/salt/issues/12446
02:14 forrest Ryan_Lane, ahh ok, yea I saw all the email spam :P
02:14 Ryan_Lane :D
02:26 faldridge joined #salt
02:26 yomilk joined #salt
02:26 funzo joined #salt
02:27 Teknix joined #salt
02:31 nrgaway joined #salt
02:31 pjs joined #salt
02:32 jalaziz joined #salt
02:32 ksalman joined #salt
02:35 JasonSwindle joined #salt
02:36 ravibhure joined #salt
02:36 [diecast] joined #salt
02:37 schimmy joined #salt
02:40 sroegner joined #salt
02:44 lnxnut joined #salt
02:47 TheGerm joined #salt
02:52 sijis left #salt
02:55 aw110f hi, on the minion, how can i list the assigned states of that minion?
02:57 manfred salt-call show.highstate?
02:57 manfred err
02:57 manfred salt-call state.show_highstate
02:57 pjs hrmm, can I form a string in a jinja template? ie, 'hosts:' + grains['host'] ?
02:58 manfred pjs: |join()
02:58 manfred http://jinja.pocoo.org/docs/templates/#join
02:59 manfred or format http://jinja.pocoo.org/docs/templates/#format
02:59 pjs awesome!
03:00 pjs hrmm.. what about if I'm doing it in set? ie, this works: {% set host = salt['pillar.get']('hosts:' + grains['host'], '') %}
03:01 manfred aw110f: bah, it is state.show_top
03:02 aw110f manfred: thanks =)
03:03 manfred pjs: that is a different part, it works there fine, but if you are trying to return it, you should use the |format() ... iirc you can use the |format instead of that + as well
03:03 manfred and it is more performant
03:05 pjs thanks!
03:09 aw110f manfred: I have my minion assigned to a nodegroup with the top.sls file defining which states that group should have.  should state.show_top list the nodegroup assigned states as well?
03:10 napper joined #salt
03:11 aw110f Just tried it on another minion and looks like it displays all its nodegroup assigned states.  must be something wrong with this one that isn't...
03:13 manfred sounds about right, i haven't used show_top before... now?... so i don't know much about it, I would have to go code diving, and I am in the middle of some codecademy stuff right now
03:18 TyrfingMjolnir joined #salt
03:18 napper joined #salt
03:22 Luke joined #salt
03:24 aw110f restarted the master, since my /etc/salt/master.d/nodegroup.conf file where i define my nodegroups got updated
03:24 BogdanR joined #salt
03:25 aw110f does the master need to be updated for every nodegroup file changes?
03:25 eliasp joined #salt
03:25 andrej following on from yesterdays discussion
03:25 andrej aplogiies it's always in fits and starts, BAU often gets the better of me
03:26 andrej So I created "passwd" files for a bunch of servers to plonk into /opt/splunkforwarder/etc
03:26 andrej I named them passwd.<FQDN>
03:27 napper joined #salt
03:27 andrej How do I use a state to push those to the respective minions?
03:28 manfred andrej: if you make changes to master.d or master you do need to restart the master
03:28 manfred bah
03:28 manfred aw110f: ^^
03:29 manfred aw110f: that is why I don't use nodegroups, i usually just prefer to match on grains
03:29 manfred or pillars
03:29 manfred well not pillars lol
03:29 manfred but yeah grains :), salt -G 'nodegroup:Something'
03:29 manfred and you can set and change grains without restarting the master
03:30 aw110f ok thanks manfred
03:31 andrej manfred: Umm ok ... what did that have to do with the last question? :)
03:31 manfred andrej: it didn't
03:31 manfred it was for the other a person
03:31 andrej Oh
03:32 andrej ah cool ... tab expansion gone bad? :)
03:32 manfred all you people look alike
03:32 manfred andrej: indeed
03:32 andrej heh
03:32 andrej lots of black midgets here, huh
03:33 manfred O_O
03:33 manfred i didn't say that ಠ_ಠ
03:33 andrej No, you didn't
03:33 andrej I'm just in a silly mood, it's ALMOST the weekend
03:33 andrej under an hour to go
03:34 andrej TGIF
03:34 aw110f can grains be stored in gitfs?
03:34 manfred aw110f: don't believe so
03:38 Eugene Not really, no. If you want centralized  management of minion data, use pillar.
03:40 patrek_ joined #salt
03:40 andrej Eugene: I thought pillar doesn't have an actual file-interface?  That's what my whole hoohaa about SSL certs was about last week :}
03:40 Eugene File interface? You mean, besides the pillar directory?
03:41 Eugene Or do you men for storing files in, which it doesnt
03:41 andrej The latter
03:41 Eugene I understand that's a known deficiency though, and hopefully we'll get some sort of minion-specific file interface soon
03:42 manfred andrej: you could store yaml pip strings, or use jinja to import a file
03:42 manfred yaml pipe*
03:42 Eugene For now, i would use salt-cp(possibly as part of a provisioning script) to copy it in
03:42 manfred since the pillars are rendered on the master
03:43 Eugene That's always felt like a hack
03:43 sroegner joined #salt
03:43 manfred i mean... whatever you want to call it, it is in jinja for a reason
03:44 Eugene It's fundamentally a file, not metadata.
03:44 manfred andrej: http://jinja.pocoo.org/docs/templates/#include
03:44 vbabiy joined #salt
03:44 Eugene But if it works, it ain't stupid
03:46 manfred i mean, it feels really hacky to me as well, and in my opinion the better solution for me was yaml multiline string pipes, but i do know people that want to have just include the files and maintain the slightly differently :)
03:46 manfred if it works for you, more power
03:49 andrej heh
03:49 andrej I'll have a look at that manfred
03:50 andrej But w/ all the fixes for heartbleed and new certs out of the way it's not that high on the list. :)
03:51 andrej If I wrote a state file - how would I reference the files that are names passwd.<FQDN> to be able to deploy them? :)
03:54 catpiggest joined #salt
03:55 possibilities joined #salt
04:00 __number5__ use pillar to get the FQDN?
04:01 __number5__ sorry grains in this case
04:05 andrej thanks __number5__ :}
04:15 yomilk joined #salt
04:21 sine_nitore joined #salt
04:28 war2 joined #salt
04:31 wendall911 left #salt
04:33 schimmy joined #salt
04:42 stevednd currently struggling to add a command to /etc/rc.local. I tried adding the command I need using file.blockreplace, but append puts it after the 'exit 0' line, and prepend puts it all the way at the top. Any way I can insert what I need just before the exit 0, and manage it going forward?
04:44 schimmy joined #salt
04:46 Ryan_Lane joined #salt
04:48 schimmy1 joined #salt
04:54 pjs can I test a single state? calling highstate every time to debug new states is slow
04:54 __number5__ pjs salt-call state.sls yoursate
04:54 pjs ahhh, thanks
04:54 __number5__ np
05:10 Ryan_Lane1 joined #salt
05:11 picker joined #salt
05:13 mgarfias joined #salt
05:18 l0x3py joined #salt
05:27 raizyr joined #salt
05:33 bhosmer joined #salt
05:48 CeBe joined #salt
05:49 aCodinMan joined #salt
06:37 briner joined #salt
06:42 Psi-Jack_ joined #salt
06:43 __number5__ joined #salt
06:44 ajw0100 joined #salt
06:46 ghartz joined #salt
06:49 sverrest joined #salt
07:05 harobed_ joined #salt
07:06 Nazca__ joined #salt
07:06 adyromantika joined #salt
07:18 jalaziz joined #salt
07:24 maveas joined #salt
07:41 briner hello.. when we do salt cmd, the output is formatted in yaml way. I thought that this will allow to easily use the output within salt.
07:42 it_dude joined #salt
07:42 briner like.. I do a command to see if there is something, and somehow we pipe it to a new salt command telling to act accordingly.
07:44 briner In my case, I'm looking for entry in iptables which are matching a pattern, and I echo the line-numbers. Then I thought to pipe it to an other salt command instructing to delete this line from iptables
07:50 ravibhure joined #salt
08:02 bdf joined #salt
08:06 yomilk joined #salt
08:06 topochan joined #salt
08:08 Ryan_Lane joined #salt
08:10 gildegoma joined #salt
08:11 babilen briner: You might be looking for the reactor system: http://docs.saltstack.com/en/latest/topics/reactor/
08:12 n8n joined #salt
08:13 jalaziz_ joined #salt
08:18 Ryan_Lane2 joined #salt
08:18 herzi_ joined #salt
08:18 goki_ joined #salt
08:19 jonwincus joined #salt
08:19 jcsp1 joined #salt
08:20 sabayonuser_ joined #salt
08:20 cedwards1 joined #salt
08:20 zain__ joined #salt
08:20 ifnull_ joined #salt
08:21 jeff___ joined #salt
08:21 BogdanR_ joined #salt
08:21 NVX joined #salt
08:21 nadley_ joined #salt
08:21 hotbox_ joined #salt
08:21 eliasp_ joined #salt
08:21 tru_tru_ joined #salt
08:21 Xiao_ joined #salt
08:22 __number5__ joined #salt
08:22 trevorjay joined #salt
08:23 scarcry_ joined #salt
08:23 DenkBret1l joined #salt
08:23 cheus_ joined #salt
08:48 vlcn_ joined #salt
08:50 ilako joined #salt
08:53 nkuttler joined #salt
08:53 jpcw joined #salt
08:53 sine_nitore joined #salt
08:53 ravibhure joined #salt
08:53 ckao joined #salt
08:53 crashmag joined #salt
08:53 xt joined #salt
08:53 Ryan_Lane joined #salt
08:53 N-Mi joined #salt
08:53 __number5__ joined #salt
08:53 Shish_ joined #salt
08:53 djaykay joined #salt
08:53 lahwran joined #salt
08:53 drags joined #salt
08:53 twinshadow_ joined #salt
08:53 shalicke joined #salt
08:53 flebel joined #salt
08:53 nocturn joined #salt
08:53 stevednd joined #salt
08:53 Nazzy joined #salt
08:53 SEJeff_work2 joined #salt
08:53 jbub joined #salt
08:53 CaptTofu joined #salt
08:53 abele joined #salt
08:53 ml_1 joined #salt
08:53 sashka_u1 joined #salt
08:53 chrismoo1 joined #salt
08:53 ksalman_ joined #salt
08:53 sverrest_ joined #salt
08:53 emostar_ joined #salt
08:53 musinsky_ joined #salt
08:53 freelock_ joined #salt
08:53 honestly_ joined #salt
08:53 Heartsbane_ joined #salt
08:53 __alex_ joined #salt
08:53 delkins_ joined #salt
08:53 luminous_ joined #salt
08:53 ksk_ joined #salt
08:53 grim76__ joined #salt
08:53 ziirish_ joined #salt
08:53 EvaSDK joined #salt
08:53 Guest57867 joined #salt
08:53 Ymage_ joined #salt
08:53 eclectic_ joined #salt
08:53 stubee joined #salt
08:53 vlcn_ joined #salt
08:53 cheus_ joined #salt
08:53 DenkBret1l joined #salt
08:53 scarcry_ joined #salt
08:53 trevorjay joined #salt
08:53 Xiao_ joined #salt
08:53 tru_tru_ joined #salt
08:53 eliasp_ joined #salt
08:53 hotbox_ joined #salt
08:53 nadley_ joined #salt
08:53 Guest13227 joined #salt
08:53 BogdanR_ joined #salt
08:53 jeff___ joined #salt
08:53 ifnull joined #salt
08:53 zain__ joined #salt
08:53 cedwards1 joined #salt
08:53 sabayonuser_ joined #salt
08:53 jcsp1 joined #salt
08:53 jonwincus joined #salt
08:53 goki joined #salt
08:53 herzi joined #salt
08:53 Ryan_Lane2 joined #salt
08:53 jalaziz_ joined #salt
08:53 n8n joined #salt
08:53 gildegoma joined #salt
08:53 topochan joined #salt
08:53 bdf joined #salt
08:53 harobed_ joined #salt
08:53 Psi-Jack joined #salt
08:53 briner joined #salt
08:53 raizyr joined #salt
08:53 l0x3py joined #salt
08:53 mgarfias joined #salt
08:53 war2 joined #salt
08:53 catpiggest joined #salt
08:53 patrek_ joined #salt
08:53 TyrfingMjolnir joined #salt
08:53 pjs joined #salt
08:53 nrgaway joined #salt
08:53 Teknix joined #salt
08:53 ajprog_laptop joined #salt
08:53 rgarcia_ joined #salt
08:53 redondos joined #salt
08:53 sealibor_ joined #salt
08:53 alunduil joined #salt
08:53 zain joined #salt
08:53 DaveQB joined #salt
08:53 chuffpdx joined #salt
08:53 rglen joined #salt
08:53 kermit joined #salt
08:53 nebuchadnezzar joined #salt
08:53 jdog joined #salt
08:53 novastar2 joined #salt
08:53 ndrei joined #salt
08:53 scalability-junk joined #salt
08:53 tempspace joined #salt
08:53 analogbyte joined #salt
08:53 sgviking joined #salt
08:53 workingcats joined #salt
08:53 zekoZeko joined #salt
08:53 Katafalkas joined #salt
08:53 nmistry joined #salt
08:53 gamedna joined #salt
08:53 repl1cant joined #salt
08:53 taterbase joined #salt
08:53 zz_Cidan joined #salt
08:53 seanz joined #salt
08:53 AdamSewell joined #salt
08:53 Bandikoto joined #salt
08:53 logix812 joined #salt
08:53 gothix joined #salt
08:53 xenoxaos joined #salt
08:53 rawzone joined #salt
08:53 lynxman joined #salt
08:53 layer3switch joined #salt
08:53 Linuturk joined #salt
08:53 dimeshake joined #salt
08:53 jcockhren joined #salt
08:53 chamunks joined #salt
08:53 xzarth_ joined #salt
08:53 Ansem joined #salt
08:53 shm_get joined #salt
08:53 googolhash joined #salt
08:53 lilmatt joined #salt
08:53 lazybear joined #salt
08:53 arcleo joined #salt
08:53 monokrome joined #salt
08:53 codekoala joined #salt
08:53 hellome joined #salt
08:53 perfectsine joined #salt
08:53 bmonty joined #salt
08:53 svs joined #salt
08:53 amontalban joined #salt
08:53 zgre joined #salt
08:53 rjc joined #salt
08:53 Debolaz joined #salt
08:53 ze- joined #salt
08:53 totte joined #salt
08:53 ninkotech joined #salt
08:53 kuL4 joined #salt
08:53 artificialexit joined #salt
08:53 syngin- joined #salt
08:53 Daviey joined #salt
08:53 andrej joined #salt
08:53 d3vz3r0 joined #salt
08:53 smkelly joined #salt
08:53 bturner joined #salt
08:53 gldnspud joined #salt
08:53 Tekni joined #salt
08:53 octarine joined #salt
08:53 saguilar joined #salt
08:53 Whissi joined #salt
08:53 ahaerpfer joined #salt
08:53 echos joined #salt
08:53 Hipikat_ joined #salt
08:53 mattikus joined #salt
08:53 mirko joined #salt
08:53 JordanRinke joined #salt
08:53 torrancew joined #salt
08:53 clone1018 joined #salt
08:53 philipsd6 joined #salt
08:53 ixokai joined #salt
08:53 rmnuvg joined #salt
08:53 Gareth joined #salt
08:53 yano joined #salt
08:53 dcolish joined #salt
08:53 micko joined #salt
08:53 homelinen joined #salt
08:53 kdorf joined #salt
08:53 ashb joined #salt
08:53 troyready joined #salt
08:53 logandg joined #salt
08:53 beardo joined #salt
08:53 ThomasJ|d joined #salt
08:53 twobitsprite joined #salt
08:53 schristensen joined #salt
08:53 opapo joined #salt
08:53 rnts joined #salt
08:53 nhubbard joined #salt
08:53 ninjabox joined #salt
08:53 gmoro joined #salt
08:53 Vivi-1[lvl8] joined #salt
08:53 borgstrom joined #salt
08:53 pviktori joined #salt
08:53 aarontc joined #salt
08:53 mpoole joined #salt
08:53 rawtaz joined #salt
08:53 tonthon joined #salt
08:53 Sypher joined #salt
08:53 jcristau joined #salt
08:53 iscsi joined #salt
08:53 svx joined #salt
08:53 entil joined #salt
08:53 madduck joined #salt
08:53 joehh joined #salt
08:53 MK_FG joined #salt
08:53 toddnni joined #salt
08:53 tharkun joined #salt
08:53 zirpu joined #salt
08:53 cro joined #salt
08:53 hardwire joined #salt
08:53 alekibango joined #salt
08:53 AlcariTheMad joined #salt
08:53 djinni` joined #salt
08:53 sarlalian joined #salt
08:53 dstokes joined #salt
08:53 ldlework joined #salt
08:53 cb joined #salt
08:53 Jarus joined #salt
08:53 jgelens joined #salt
08:53 qybl joined #salt
08:53 robinsmidsrod joined #salt
08:53 jperras joined #salt
08:53 RandalSchwartz joined #salt
08:53 balltongu_ joined #salt
08:53 wiqd joined #salt
08:53 pfallenop joined #salt
08:53 akoumjian joined #salt
08:53 [M7] joined #salt
08:53 simonmcc joined #salt
08:53 lyddonb_ joined #salt
08:53 Voziv joined #salt
08:53 arapaho joined #salt
08:53 dccc joined #salt
08:53 dstanek_zzz joined #salt
08:53 ede joined #salt
08:53 jpaetzel joined #salt
08:53 gwmngilfen joined #salt
08:53 cyrusdavid joined #salt
08:53 kevinbrolly joined #salt
08:53 seblu joined #salt
08:53 nlb joined #salt
08:53 thunderbolt joined #salt
08:53 Dattas joined #salt
08:53 APLU joined #salt
08:53 TOoSmOotH joined #salt
08:53 peno joined #salt
08:53 fxhp joined #salt
08:53 basepi_ joined #salt
08:53 JesseCW joined #salt
08:53 dpac|away joined #salt
08:53 mike25ro joined #salt
08:53 hvn joined #salt
08:53 xintron joined #salt
08:53 etw joined #salt
08:53 kiorky joined #salt
08:53 zdong joined #salt
08:53 scoates joined #salt
08:53 mariusv joined #salt
08:53 jforest joined #salt
08:53 \ask joined #salt
08:53 mr_chris joined #salt
08:53 keekz joined #salt
08:53 ronc joined #salt
08:53 oc joined #salt
08:53 sifusam joined #salt
08:53 individuwill joined #salt
08:53 jasonrm joined #salt
08:53 crazysim joined #salt
08:53 cowyn_ joined #salt
08:53 Zuru joined #salt
08:53 t0rrant joined #salt
08:53 andrein__ joined #salt
08:53 mnaser joined #salt
08:53 andabata joined #salt
08:53 viq joined #salt
08:53 SaveTheRbtz joined #salt
08:53 copelco joined #salt
08:53 goodwill joined #salt
08:53 xDamox joined #salt
08:53 zsoftich joined #salt
08:53 insatsu_ joined #salt
08:53 jacksontj joined #salt
08:53 timoguin joined #salt
08:53 tmmt joined #salt
08:53 devx joined #salt
08:53 terminalmage joined #salt
08:53 dopp joined #salt
08:53 ahammond joined #salt
08:53 Flusher joined #salt
08:53 scooby2 joined #salt
08:53 kamal_ joined #salt
08:53 puppet joined #salt
08:53 programmerq joined #salt
08:53 brd joined #salt
08:53 fxdgear joined #salt
08:53 renoirb joined #salt
08:53 mihait joined #salt
08:53 eightyeight joined #salt
08:53 canci joined #salt
08:53 davidone joined #salt
08:53 insatsu joined #salt
08:53 r4vi joined #salt
08:53 pescobar joined #salt
08:53 mfournier joined #salt
08:53 modafinil joined #salt
08:53 EWDurbin joined #salt
08:53 hoodow joined #salt
08:53 ikanobori joined #salt
08:53 whitepaws_ joined #salt
08:53 Schmidt joined #salt
08:53 msciciel1 joined #salt
08:53 jeffrubic joined #salt
08:53 andredieb joined #salt
08:53 z3uS joined #salt
08:53 esogas_` joined #salt
08:53 jab416171 joined #salt
08:53 daenney joined #salt
08:53 Damoun joined #salt
08:53 hillna_ joined #salt
08:53 rcsheets joined #salt
08:53 munhitsu_ joined #salt
08:53 Heggan joined #salt
08:53 gamingrobot joined #salt
08:53 Corey joined #salt
08:53 sulky joined #salt
08:53 Dinde joined #salt
08:53 jchen joined #salt
08:53 wedgie joined #salt
08:53 maber joined #salt
08:53 oeuftete joined #salt
08:53 bigl0af joined #salt
08:53 rhand joined #salt
08:53 drogoh joined #salt
08:53 ampex joined #salt
08:53 Mr_N joined #salt
08:53 ph8 joined #salt
08:53 thehaven joined #salt
08:53 stotch joined #salt
08:53 clearclaw joined #salt
08:53 bretep joined #salt
08:53 stewpot joined #salt
08:53 Twiglet joined #salt
08:53 jmccree joined #salt
08:53 bezaban joined #salt
08:53 kaictl joined #salt
08:53 joshbaptiste joined #salt
08:53 packeteer joined #salt
08:53 jesusaurus joined #salt
08:53 retr0h joined #salt
08:53 InAnimaTe joined #salt
08:53 pmcg joined #salt
08:53 shano joined #salt
08:53 marcinkuzminski joined #salt
08:53 manfred joined #salt
08:53 dcmorton joined #salt
08:53 codysoyland joined #salt
08:53 juice joined #salt
08:53 bejer_ joined #salt
08:53 magenbrot joined #salt
08:53 mortis joined #salt
08:53 vipul joined #salt
08:53 steveoliver joined #salt
08:53 aurigus joined #salt
08:53 dean|away joined #salt
08:53 whyzgeek joined #salt
08:53 moos3 joined #salt
08:53 TamCore joined #salt
08:53 bitmand joined #salt
08:53 zemm joined #salt
08:53 rofl____ joined #salt
08:53 utahcon joined #salt
08:53 melinath joined #salt
08:53 Ixan joined #salt
08:53 Yoda-BZH joined #salt
08:53 chesty joined #salt
08:53 txmoose joined #salt
08:53 MaZ- joined #salt
08:53 ClausA joined #salt
08:53 Vye joined #salt
08:53 cwright joined #salt
08:53 jakubek joined #salt
08:53 jphall joined #salt
08:53 kula joined #salt
08:53 rockey joined #salt
08:53 arnoldB joined #salt
08:53 tamentis joined #salt
08:53 bashcoder joined #salt
08:53 btorch joined #salt
08:53 lpn joined #salt
08:53 mortis_ joined #salt
08:53 sirtaj joined #salt
08:53 baffle joined #salt
08:53 hhenkel joined #salt
08:53 urban joined #salt
08:53 grep_away joined #salt
08:53 sinh joined #salt
08:53 al joined #salt
08:53 skogen joined #salt
08:53 eofs joined #salt
08:53 defunctzombie_zz joined #salt
08:53 iMil joined #salt
08:53 jamesog joined #salt
08:53 lionel joined #salt
08:53 jeblair joined #salt
08:53 yml joined #salt
08:53 chutzpah joined #salt
08:53 brewmast1r joined #salt
08:53 Valdo joined #salt
08:53 crane joined #salt
08:53 berto- joined #salt
08:53 Eugene joined #salt
08:53 whiteinge joined #salt
08:53 bwq joined #salt
08:53 nliadm joined #salt
08:53 zach joined #salt
08:53 londo joined #salt
08:53 mephx joined #salt
08:53 seb` joined #salt
08:53 babilen joined #salt
08:53 ay joined #salt
08:53 anteaya joined #salt
08:53 Bosch[] joined #salt
08:53 emilisto joined #salt
08:53 jY joined #salt
08:53 errr joined #salt
08:53 UForgotten joined #salt
08:53 Guest62618 joined #salt
08:53 blast_hardcheese joined #salt
08:53 xmj joined #salt
08:53 dh joined #salt
08:53 MTecknology joined #salt
08:53 faulkner joined #salt
08:53 bigmstone joined #salt
08:53 ange joined #salt
08:53 carmony joined #salt
08:53 chitown_ joined #salt
08:53 twiedenbein joined #salt
08:53 robawt joined #salt
08:53 tedski joined #salt
08:53 DenizB joined #salt
08:53 shadowsun joined #salt
08:53 uzomg joined #salt
08:53 Doqnach joined #salt
08:53 mikkn joined #salt
08:53 johtso joined #salt
08:53 Ahlee joined #salt
08:53 n0arch joined #salt
08:53 erjohnso joined #salt
08:53 kriptin joined #salt
08:59 briner babilen, thanks for the information
09:00 babilen briner: Would that come in handy? http://www.nineproductions.com/saltstack-ossec-state-using-reactor/ discusses one example in more detail
09:02 briner I'll defiinetly have a look
09:11 siciliansun joined #salt
09:16 siciliansun joined #salt
09:16 picker joined #salt
09:17 ab_ joined #salt
09:17 ab_ Hi All
09:17 jgelens From a minion I can call salt-call test.ping with positive result, but the other way around from the master I don't get any result. Any idea what can be wrong?
09:18 ab_ i have been banging my head on a wall trying to get saltstack on to OSX in a nice way, the MacPort version is out of date and i dont realyl want to deploy homwbrew to all my OSX fleet, does anyone know of a nice way of depoying it??
09:18 xt joined #salt
09:20 jgelens ab_: install it using pip?
09:20 siciliansun somebody remember by hearth how to get the user/group/mode of a file identical to an other file ? thks
09:21 londo_ joined #salt
09:22 ab_ i dont think pip is an option, let me check
09:24 siciliansun remembered , it's http://docs.saltstack.com/en/latest/ref/states/requisites.html#use
09:31 aleszoulek joined #salt
09:33 bmcorser joined #salt
09:42 ashb So. I have salt '*' state.highstate where a state fails on one of hte boxes. I woudl ike this to not exit with 0. Is this possilbe?
09:44 KKA joined #salt
09:48 siciliansun left #salt
10:21 mozg joined #salt
10:28 dancat joined #salt
10:30 austin987 joined #salt
10:42 it_dude joined #salt
11:00 yomilk joined #salt
11:00 martoss joined #salt
11:00 Ryan_Lane joined #salt
11:07 pressureman joined #salt
11:15 ashb so i want --retcode-passthrough but on salt, not salt-call
11:16 kedo39 joined #salt
11:18 bhosmer joined #salt
11:18 ndrei joined #salt
11:24 babilen I'm still frequently running into Recursion problems whenever I run state.highstate with test=True for a state such as http://paste.debian.net/96949/ that uses a prerequisite on another state with require statements.
11:25 babilen It works fine if I don't run it with "test=True" and assume that salt is simply no able to evaluate the actual status of dependent states on completely newly provisioned boxes and eventually reaches its recursion limit
11:26 babilen Is there a way to tell salt "If you can't determine the status of a state assume UNKNOWN at search depth $SOMETHING and stop" ?
11:27 babilen It is a shame that I can no longer use "test=True" to check how new machines will be provisioned now that I used prereq
11:28 Nein joined #salt
11:35 vbabiy joined #salt
11:35 it_dude joined #salt
11:44 happytux joined #salt
11:49 faldridge joined #salt
11:49 ekristen joined #salt
11:54 elfixit joined #salt
11:54 faldridge joined #salt
11:59 harobed joined #salt
12:06 kedo39 joined #salt
12:13 bastion1704 joined #salt
12:19 Jahkeup joined #salt
12:26 kvbik joined #salt
12:29 jslatts joined #salt
12:32 tempspace good morning!
12:33 babilen o/
12:36 tempspace (or good whatever it is where you are_
12:37 st_iron joined #salt
12:52 che-arne joined #salt
12:58 rome joined #salt
13:06 happytux joined #salt
13:08 jeff___ joined #salt
13:10 stritz joined #salt
13:11 vejdmn joined #salt
13:13 vejdmn joined #salt
13:16 mapu joined #salt
13:16 miqui joined #salt
13:17 miqui does anybody have some info on how to config salt master in a low memory server environment?
13:17 miqui low mem = 1gig ram
13:18 siciliansun joined #salt
13:19 kaiyou joined #salt
13:20 racooper joined #salt
13:20 resmike joined #salt
13:21 kaiyou hey :)
13:22 kaiyou im writing a state module and i want one of the functions to override the file.managed state function
13:22 kaiyou i cant find any documentation about overriding or wrapping around an existing state function
13:23 siciliansun hi, the render pyobjects is absent from http://pkgs.org/centos-5/epel-testing-i386/salt-2014.1.3-1.el5.noarch.rpm.html , could somebody of the Salt team take care of it ? thks
13:23 vbabiy joined #salt
13:27 ipmb joined #salt
13:28 uestra joined #salt
13:28 rome joined #salt
13:29 faldridge joined #salt
13:31 funzo joined #salt
13:31 ajprog_laptop joined #salt
13:33 ndrei joined #salt
13:34 jaycedars joined #salt
13:35 jeffasinger joined #salt
13:41 kermit joined #salt
13:43 rome joined #salt
13:44 happytux joined #salt
13:51 ajw0100 joined #salt
13:51 lnxnut joined #salt
13:53 briner hello, I do have serious problem on how to use file.blockreplace
13:53 kaiyou haha, for the record, i managed to do it by calling the execution module state :d
13:54 kaiyou __salt__['state.single']("statemodule.function", ...)
13:54 briner I'd like to have a space in /etc/bash.bashrc which is installed by the distribution. The idea is to have a *section* in this file that is managed centrally
13:55 briner I get an: Comment: An exception occurred in this state: Traceback (most recent call last):
13:55 briner File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1371, in call
13:55 briner **cdata['kwargs'])
13:55 briner File "/usr/lib/python2.7/dist-packages/salt/states/file.py", line 2123, in blockreplace
13:55 briner show_changes=show_changes
13:55 briner File "/usr/lib/python2.7/dist-packages/salt/modules/file.py", line 1146, in blockreplace
13:55 briner if not new_file[-1].ends_with('\n'):
13:55 briner AttributeError: 'str' object has no attribute 'ends_with'
13:58 harobed__ joined #salt
13:59 harobe___ joined #salt
13:59 briner this is happenning with a file.blockreplace
14:01 taterbase joined #salt
14:04 sroegner joined #salt
14:05 lilmatt I'm having trouble getting sync_after_install to work with new Amz Linux nodes I'm spinning up on EC2.
14:05 lilmatt Only clue I'm seeing is https://gist.github.com/lilmatt/c666b164cbd9a7517277
14:05 quickdry21 joined #salt
14:05 rome joined #salt
14:06 Networkn3rd joined #salt
14:07 sroegner_ joined #salt
14:10 logix812 anyone know, generally speaking, the memory cost of running a salt master? I see the RSS memory usage, but am curious how much of that is from shared libs
14:10 eliasp joined #salt
14:10 GeekyTex joined #salt
14:11 babilen logix812: I've been running a salt-master with 1G of RAM just fine
14:11 cedwards joined #salt
14:11 logix812 babilen: ya, but how much is salt actually using?
14:12 logix812 looking at top (which I know reports RSS memory) it's about 240 meg of RAM
14:13 logix812 but RSS blends shared memory into it's number
14:14 chesty doesn't your top also have a SHR column?
14:17 wendall911 joined #salt
14:18 JonGretar joined #salt
14:20 war2 joined #salt
14:21 Ansem joined #salt
14:23 bhosmer_ joined #salt
14:25 kedo39 joined #salt
14:27 ashb joined #salt
14:33 Ansem- joined #salt
14:33 uestra joined #salt
14:35 napper joined #salt
14:36 danielbachhuber joined #salt
14:36 war3 joined #salt
14:39 Ansem joined #salt
14:52 conan_the_destro joined #salt
14:52 scarcry joined #salt
14:54 jdog joined #salt
14:59 JonGretar Is there a rough idea on Hydrogen release?
14:59 timoguin Helium you mean? Hydrogen is 2014.1
15:00 jcockhren he means 2014.2
15:00 timoguin the aim is for the first RC in a few weeks
15:00 JonGretar Sorry. Yeah... Forgot my periodic table.
15:00 JonGretar :)
15:00 timoguin jcockhren: is it going to be 2014.2?
15:00 timoguin i thought the second number was supposed to denote the month of the release
15:00 jslatts when is strontium release? :)
15:02 it_dude joined #salt
15:02 jcockhren I'm wrong
15:02 jcockhren you're right timoguin
15:02 jeremyBass1 joined #salt
15:02 timoguin YES!
15:02 * timoguin dances
15:03 JonGretar @jslatts: 2023 assuming 4 releases a year I guess. :)
15:03 che-arne joined #salt
15:03 jslatts That is a release naming scheme with some serious legs
15:04 timoguin we better have a VR-based dashboard by then
15:05 jslatts I totally want an oculus based scree/dev environment
15:07 JonGretar Does Oculus work though? Does it not have the same basic flaw as all other VR. That the human body is incompatable with the idea.
15:07 rome joined #salt
15:07 jslatts for a large projected virtual screen, I can't see why it wouldn't work. not the same visual/physical motion disconnects
15:07 briner I've looked at the code of file.py and I still do not understand how such error can occur : AttributeError: 'str' object has no attribute 'ends_with'
15:08 alunduil joined #salt
15:08 Ansem joined #salt
15:08 thedodd joined #salt
15:09 joehh briner: are you looking at the right code?
15:09 briner I do think
15:09 joehh I often find myself looking at develop branch instead of correct branch
15:10 eriko joined #salt
15:10 joehh or actual release installed
15:10 briner oh.. in the stack trace they were telling me that :  AttributeError: 'str' object has no attribute 'ends_with' at line 1146 of "/usr/lib/python2.7/dist-packages/salt/modules/file.py"
15:11 timoguin briner: yea make sure you're on the right branch. the main branch is develop
15:11 briner and i do have a this line number1143         elif append_if_not_found:
15:11 briner 1144             # Make sure we have a newline at the end of the file
15:11 briner 1145             if 0 != len(new_file):
15:11 briner 1146                 if not new_file[-1].ends_with('\n'):
15:11 briner 1147                     new_file[-1] += '\n'
15:11 jaycedars joined #salt
15:12 joehh briner: is this your problem: https://groups.google.com/forum/#!topic/salt-users/wdCWCnuiGno
15:12 briner as I'm totally new to salt : 2 days of work. I have no clue about any branch
15:12 briner nope !
15:12 timoguin briner: well what version are you running?
15:13 briner how can I know the version, I'm running ?
15:13 timoguin salt --versions-report
15:13 briner salt-minion --version
15:13 briner salt-minion 2014.1.1
15:13 tyler-baker joined #salt
15:14 joehh which os?
15:15 briner Linux lunidebrepos1 3.2.0-4-amd64 #1 SMP Debian 3.2.54-2 x86_64 GNU/Linux
15:15 briner lsb_release -a
15:15 briner No LSB modules are available.
15:15 briner Distributor ID:Debian
15:15 briner Description:Debian GNU/Linux 7.4 (wheezy)
15:15 briner Release:7.4
15:15 briner Codename:wheezy
15:15 timoguin 'git checkout v2014.1.1' will get you the same code you're running, while 'git checkout 2014.1' will get you to the main branch for the 2014.1 release, which will have bugfixes on it
15:15 joehh If have installed via packages, you should be able to update to 2014.1.3 which should also have bugfixes
15:16 briner the fact is that I've installed the minion with a debian package from salt
15:16 joehh using the debian.saltstack.com repos?
15:16 briner cat /etc/apt/sources.list.d/saltstack.list
15:16 briner deb http://debian.saltstack.com/debian wheezy-saltstack main
15:16 briner yep
15:16 joehh I'll check, you should have got a newer version...
15:17 briner yep I see it
15:17 UtahDave joined #salt
15:17 joehh good - I was worried I hadn't pushed the package properly
15:18 briner joehh, sorry for the stress.
15:18 briner As said, I'm totally new to salt...
15:18 joehh no worries - have done it before :)
15:19 pdayton joined #salt
15:19 briner joehh, I do appreciate your help. Thanks for everything
15:20 dRiN joined #salt
15:20 bastion1704 is composer.installed works for someone ? I can;t find a way to use it. I use cmd.run instead
15:22 joehillen joined #salt
15:23 timoguin bastion1704: what errors are you getting? and what version are you running?
15:23 frame45 joined #salt
15:27 AdamSewell joined #salt
15:27 AdamSewell joined #salt
15:27 faust joined #salt
15:27 jimklo joined #salt
15:31 CeBe joined #salt
15:32 tligda joined #salt
15:35 uestra joined #salt
15:37 toastedpenguin joined #salt
15:42 mgw joined #salt
15:43 tessellare joined #salt
15:44 jalbretsen joined #salt
15:46 smcquay joined #salt
15:47 cheus_ Does anyone know if ext_pillar supports the git 'local' protocol (eg, file:///my/git/repo) ?
15:47 meteorfox joined #salt
15:49 UtahDave cheus_: I'm not sure.  Have you tried it yet?
15:49 cheus_ UtahDave, I have and it's not seeing my pillar
15:50 cheus_ It could be something else but was hoping to get confirmation on whether or not the local protocol was supported first.
15:51 mateoconfeugo joined #salt
15:57 bemehow joined #salt
16:00 SEJeff_work Salt template question. Is there a way (in a template) to reference the name of the sls file that wrote the template
16:00 Gareth morning
16:01 KyleG joined #salt
16:01 KyleG joined #salt
16:01 SEJeff_work something like (in the template): # {{ pillar.get("salt_banner", "This file is managed by salt in file" + state_name ) }} sort of thing
16:01 TheRealBill joined #salt
16:01 SEJeff_work where state_name is mysql/init.sls or something
16:01 SEJeff_work Gareth, yo yo
16:01 Gareth SEJeff_work: hey :) hows it going?
16:01 SEJeff_work Chicago weather SUUUUUCKS compared to LA and I missed Scale :(
16:02 Gareth :(
16:02 SEJeff_work but life is great and I'm becoming a much better developer
16:02 Gareth we're in the middle of a heat wave out here at the moment.  I wouldn't consider that great weather. :)
16:03 SEJeff_work Every year is a heat wave
16:03 SEJeff_work and every year 1/2 of CA burns down
16:03 SEJeff_work news at 11!
16:03 Gareth so true.
16:05 jonwincus left #salt
16:06 mfournier Is there an easy way to count how many hosts share the same value for a given grain ? For example, I'd like to have a statistical breakdown of all my hosts per "osrelease" or per "kernelrelease".
16:06 mfournier not only grains, actually. By pkg.version for a given package would be useful, etc.
16:06 FL1SK joined #salt
16:06 SEJeff_work mfournier, Directly with salt, no. That would be trivial to do with the salt api + python and the builtin collections.Counter python type however
16:07 NV joined #salt
16:07 UtahDave mfournier: there's actually a newish  map/reduce function that will do that for you.  Let me find it
16:07 ccase joined #salt
16:10 UtahDave mfournier: Hm. Not sure if this does exactly what you want, but take a look here http://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.survey.html#module-salt.runners.survey
16:12 jeffG_ joined #salt
16:14 pydanny joined #salt
16:14 FL1SK joined #salt
16:15 Rossmay joined #salt
16:15 jeffG_ I am trying to add a grain to my minion in /etc/salt/grains as per the documentation, but it is not getting picked up... any ideas.  I have named it role.sls and role.conf but neither works
16:15 Sypher good evening folks. who do I have to contact to be added to the saltstack-formulas team?
16:16 Rossmay jeffG_: Did you make sure to set the path to your grains folder in the master config file?
16:16 ccase joined #salt
16:16 Ansem joined #salt
16:16 UtahDave jeffG_: can you pastebin what you've tried so far?
16:16 Rossmay file_roots:
16:17 redondos joined #salt
16:17 redondos joined #salt
16:17 UtahDave Sypher: Do you have a formula you'd like to be up there?
16:17 Sypher yep UtahDave
16:17 Sypher two actually :)
16:17 UtahDave cool!
16:17 UtahDave whiteinge: do you want to help Sypher or would you like me to?
16:17 Gareth anyone know a tool offhand that can hash a hostname in the same way that ssh-keygen does? :)
16:17 jeffG_ UtahDave: it is just a role
16:17 * whiteinge looks
16:18 jeffG_ Rossmay: I did not... and I don't see that entry
16:18 whiteinge Sypher: nice! what's the repo URL?
16:18 Sypher whiteinge: https://github.com/syphernl/firewall-formula & https://github.com/syphernl/zendserver-formula
16:19 Rossmay in your master config file there should be a section for file_roots: where you'll specify paths to the files you want to be able to send to minions
16:20 Rossmay jeffG_: http://docs.saltstack.com/en/latest/ref/file_server/file_roots.html#directory-overlay
16:21 vbabiy joined #salt
16:22 jeffG_ I was reading http://docs.saltstack.com/en/latest/topics/targeting/grains.html#grains-in-etc-salt-grains but I will try the file_roots
16:24 forrest joined #salt
16:24 whiteinge Sypher: do you mind if i rename firewall-formula to iptables-formula?  (am i right that it is iptables-specific?)
16:25 Sypher for the time being it is indeed iptables only, also didn't feel it was 100% iptables'y so .. but if you think its a better suited name i'm fine with that whiteinge
16:26 TheGerm joined #salt
16:27 whiteinge there's been a little back-and-forth on whether we should have generic-tech repos or specific-product repos (i.e., ssh-formula, vs openssh-formula)
16:27 stephas joined #salt
16:27 whiteinge so far we've been sticking with the latter since it's tougher to go the generic route (ssh differs on linux vs windows, for example)
16:28 n8n joined #salt
16:29 ndrei joined #salt
16:29 whiteinge https://github.com/saltstack-formulas/zendserver-formula
16:30 Sypher :) guess i'll have to fork that one in order to modify it rather than my own original repo?
16:31 whiteinge Sypher: I added you to the contributors team. you have full powers there now :)
16:31 basepi jacksontj: what was the purpose of this?  https://github.com/saltstack/salt/commit/39f1749ff1e2ba2d6df943d32b43ed29d28b34c8
16:31 Sypher nice
16:31 basepi jacksontj: appears to be causing issues:  https://github.com/saltstack/salt/issues/12478
16:32 whiteinge https://github.com/saltstack-formulas/iptables-formula
16:32 whiteinge Sypher: ^^ done. thanks a lot!
16:32 whiteinge nice work too
16:33 Sypher the firewall is one i'm especially happy with
16:33 Sypher its so flexible and due to the pillar-merging nature of salt that works out great
16:33 whiteinge very nice
16:34 whiteinge i expect i'll make use of it in a few days, as a matter of fact :)
16:34 ccase joined #salt
16:34 Sypher cool, i'm happy to hear if you have any feedback or improvements
16:34 rogst joined #salt
16:35 jimklo is there a way to use pkg.installed state with an rpm that is built by the minion?
16:36 uestra joined #salt
16:38 kballou joined #salt
16:38 Sypher jimklo yep, that should be possible if your package uses a standard name and the pkg.installed requires the built package (which on its turn requires the build process)
16:39 war2 joined #salt
16:40 TyrfingMjolnir joined #salt
16:40 ghaering joined #salt
16:42 pass_by_value joined #salt
16:47 travisfischer joined #salt
16:51 cruatta joined #salt
16:51 saurabhs joined #salt
16:54 resmike joined #salt
16:58 aCodinMan joined #salt
16:59 ndrei joined #salt
17:01 schmutz joined #salt
17:02 it_dude joined #salt
17:04 yusuket joined #salt
17:10 frame45 noob here, other than docs are there any good videos or resources for getting SaltStack up and running on CentOS 6? Thanks
17:11 racooper frame45,  install it from EPEL unless you need the very latest.  I just set it up using the tutorials and it worked fine.
17:12 forrest frame45, the tutorials are pretty comprehensive, however if you need more of an overview of stuff, you can check out this video: https://www.youtube.com/watch?v=yphLKSjnSU8 It is a bit out of date though
17:13 harobed_ joined #salt
17:13 bhosmer joined #salt
17:15 happytux joined #salt
17:16 jaycedars joined #salt
17:21 londo__ joined #salt
17:21 netzmonster joined #salt
17:22 happytux joined #salt
17:22 [diecast] joined #salt
17:22 zain_ joined #salt
17:23 n8n joined #salt
17:24 frame45 @forrest Thanks!
17:24 googolhash joined #salt
17:30 aleszoulek joined #salt
17:35 n8n joined #salt
17:35 Ryan_Lane1 joined #salt
17:37 war2 joined #salt
17:38 arthabaska joined #salt
17:39 combusean joined #salt
17:40 combusean is it possible to run salt commands from multiple machines, or do they have to be run on the salt-master?
17:41 Ryan_Lane1 combusean: you can call salt commands from multiple machines as peer calls
17:43 combusean Ryan_Lane1, where are those documented?
17:43 Ryan_Lane1 one sec
17:43 Ryan_Lane1 combusean: http://docs.saltstack.com/en/latest/ref/peer.html
17:43 Ryan_Lane1 depending on what you're doing you may want to look at reactors, too
17:44 Ryan_Lane1 combusean: http://docs.saltstack.com/en/latest/topics/reactor/
17:44 timoguin i think we need a docs bot in here
17:45 timoguin !docs reactor
17:45 timoguin for example. :)
17:45 combusean or just make things googleable
17:45 combusean heh
17:46 timoguin they're generally googloobool when searching for "saltstack topic"
17:46 timoguin but not really if you don't salt's terminology
17:46 timoguin *don't know
17:46 combusean ahh
17:46 combusean that brought up the result I wanted
17:46 TyrfingMjolnir joined #salt
17:47 timoguin using 'saltstack' in searches works pretty well
17:47 combusean i did salt peer calls and didn't find what I was looking for
17:47 timoguin maybe that should be in the docs, heh. "When searching, use 'saltstack' instead of salt, otherwise you probably won't find this page."
17:47 pdayton joined #salt
17:48 timoguin but then how do people find that!?
17:48 timoguin *head explodes*
17:48 combusean that's not for the admins to worry about, clearly.
17:48 combusean :P
17:48 combusean lol
17:49 fivethreeo joined #salt
17:49 mapu joined #salt
17:50 fivethreeo anyone have a full lxc setup with pillar data i could take a look at?
17:52 TyrfingMjolnir joined #salt
17:53 jimklo Sypher: so are you saying that to run the package install via a script, then use pkg.installed to just 'enforce the state' that the packages are installed?
17:54 Ryan_Lane1 joined #salt
17:55 GradysGhost joined #salt
18:02 timoguin jimklo: pkg.installed can accept an RPM as the source, but i'm not sure how to point it to a path on the minion
18:03 xenoxaos joined #salt
18:03 jimklo timoguin: file:///?
18:03 timoguin if you can build it elsewhere you'll probably have a better time, and can just use the standard pkg.installed and point to the RPM in your state tree
18:04 timoguin jimklo: that may work. i'm not sure.
18:04 alunduil joined #salt
18:05 MTecknology salt.utils.get_group_list() <-- not there anymore?
18:05 timoguin cmd.run and cmd.script may help you as well
18:05 jimklo timoguin: it's a little tricky... the minion has to pull down a whole source tree (which is about 10G's)... then install the bits that are found within....
18:05 all_the_fisch joined #salt
18:06 timoguin in that case i'd probably write a build-script and put it in your state tree, then call it via cmd.script
18:06 jimklo timoguin: yes, i'm using cmd.script right now... was thinking that my script can build the rpm and install it... then use pkg.installed to ensure the 'installed state'
18:06 timoguin and finally pkg.installed if you can point it to the local file
18:07 timoguin jimklo: that sounds like it would work as well
18:08 chrisjones joined #salt
18:08 jimklo then pkg.installed would correctly fail, if cmd.script didn't install correctly... since the rpms don't exist in any repo
18:08 Ryan_Lane1 oh. yeah. a bot would be nice
18:08 Ryan_Lane1 let me ask someone something really quick
18:09 jimklo Ryan_Lane1: http://inamidst.com/phenny/
18:09 wm-bot4 joined #salt
18:09 Ryan_Lane1 wm-bot4: howdy
18:09 smcquay_ joined #salt
18:10 Ryan_Lane1 !reactors is http://docs.saltstack.com/en/latest/topics/reactor/
18:10 Ryan_Lane1 hm.
18:10 wm-bot4 Key was added
18:10 travisfischer joined #salt
18:11 timoguin !reactors
18:11 wm-bot4 http://docs.saltstack.com/en/latest/topics/reactor/
18:11 timoguin badass. that was fast. :)
18:11 Ryan_Lane1 oh. cool. it's working.
18:12 Ryan_Lane1 @statistics-on
18:12 wm-bot4 Statistics were now enabled
18:12 Ryan_Lane1 @info
18:12 wm-bot4 http://bots.wmflabs.org/~wm-bot/dump/%23salt.htm
18:13 Ryan_Lane1 !help
18:14 Ryan_Lane1 !help is I'm a documentation bot. See this URL for my commands: http://meta.wikimedia.org/wiki/WM-Bot
18:14 wm-bot4 Key was added
18:15 Ryan_Lane1 anyway. have fun with that :)
18:15 [diecast] joined #salt
18:15 miqui joined #salt
18:15 Ryan_Lane1 @logon
18:15 wm-bot4 Channel is now logged
18:15 Ryan_Lane1 @logoff
18:15 Gareth !cookie
18:15 wm-bot4 Channel is not logged
18:15 Gareth !botsnack
18:16 timoguin Ryan_Lane1: can we PM some keys rather than exploding the channel?
18:16 Gareth can't feed the bot :(
18:16 Ryan_Lane1 UtahDave, whiteinge: feelings on channel logging?
18:16 Ryan_Lane1 hm. I hope PMs work for that. I'll need to ask the bot author
18:16 timoguin it's already logged somewhere...
18:16 Ryan_Lane1 ah. ok
18:16 timoguin http://irclog.perlgeek.de/salt/
18:17 UtahDave Ryan_Lane1:  we just need to make sure people are aware of the logging going on
18:17 Ryan_Lane1 timoguin: good to know
18:18 Ryan_Lane1 so, even if the bot can't take PMs, we can add another channel #salt-bot, and link the channels
18:18 Ryan_Lane1 and add keys there
18:20 timoguin that'd work
18:20 Ryan_Lane1 would likely be best if the channel was registered :)
18:20 Ryan_Lane1 who manages the channel registrations?
18:20 UtahDave Hm. I think whiteinge has been doing that for us
18:20 * Ryan_Lane1 nods
18:21 tligda I'm having a great deal of difficulty using the archive state in 2014.1 and 2014.3. Is it known to be unusable in these versions?
18:23 Ryan_Lane1 @infobot-share-on
18:23 wm-bot4 Channel was configured to share the db
18:23 Ryan_Lane1 @infobot-share-trust+ #salt-bot
18:23 wm-bot4 You inserted channel #salt-bot to shared db
18:32 tligda Oops. I meant 2014.1.0 and 2014.1.3.
18:32 whiteinge hey, neat
18:34 fllr joined #salt
18:34 whiteinge Ryan_Lane1: how does it reconcile a word (like "reactors") to the URL?
18:34 whiteinge and why can't we feed it?!
18:34 timoguin you define it via !key is URL
18:34 timoguin if you have permissions
18:34 Ryan_Lane1 I'm working on adding permissions now
18:34 Ryan_Lane1 we can use #salt-bot to feed it without spamming the channel
18:34 whiteinge oh, i missed that seed command
18:34 whiteinge Ryan_Lane1: we're adding a short-url redirect thing to the main docs so we even have an index ready to go
18:34 whiteinge we could use that to seed
18:34 snave joined #salt
18:34 whiteinge http://docs.saltstack.com/en/latest/shorturls.json
18:34 tligda I use the archive state according to the docs and I get an error that says, "SaltException: The following keys were not present in the state return: name,result,changes,comment"
18:34 vbabiy joined #salt
18:34 davet joined #salt
18:34 Ryan_Lane1 whiteinge: ah. neat
18:34 Nazca joined #salt
18:34 Nazca joined #salt
18:34 nahamu_ joined #salt
18:35 yusuket_ joined #salt
18:36 tligda I pared down the state to the bare minimum. Now it's using the same name as the docs, "/opt/". I get a message that says, "Comment: /opt/ already exists". Of course /opt/ already exists. That's where I want the archive to be extracted to. Am I reading this wrong?
18:38 uestra joined #salt
18:38 war2 joined #salt
18:40 whiteinge tligda: looks like a problem with the state
18:40 whiteinge tligda: pastebin your bare minimum?
18:41 yusuket_ joined #salt
18:42 whiteinge i'm eyeballing it right now and i see one or two places offhand where a value could fall through the logic there and the function would return something salt's state system couldn't use
18:43 tligda http://pastebin.com/qR2wAHya
18:44 cruatta joined #salt
18:44 smcquay joined #salt
18:46 xt left #salt
18:46 redondos joined #salt
18:46 redondos joined #salt
18:48 whiteinge trying to reproduce...
18:49 pydanny joined #salt
18:49 whiteinge i see the same thing. reading the code...
18:51 UtahDave whiteinge: in jinja this works:     {% set server = salt['mine.get_docker']() %}
18:51 UtahDave but if I try to pass in arguments I get nothing.
18:51 UtahDave {% set server = salt['mine.get_docker']('interfaces="eth0"') %}
18:51 UtahDave Am I passing in that argument incorrectly?
18:52 jdmc_ joined #salt
18:52 whiteinge yeah, call it like you would from python: {% set server = salt['mine.get_docker'](interfaces="eth0") %}
18:53 UtahDave gah. that worked.  Thanks, man!
18:56 junster joined #salt
19:02 it_dude joined #salt
19:05 foxx joined #salt
19:08 jaycedars i can't seem to get my minion talking to my master. i've verified the ports are open, and the minion can connect to 4505-4506, verified with nc. the master starts up just fine with no errors. when i launch the minion on the CLI with `sudo salt-minion -l debug' it attempts to connect to the IP of the master, drops a SaltReqTimeoutError, and then says it's waiting for its key to be accepted by the master...
19:09 jaycedars the master, however, shows nothing in debug that indicates it's heard a thing from minion, and salt-key doesn't give me any keys to approve.
19:10 tligda jaycedars: You have the salt master's name or IP address in the minion's configuration file?
19:11 jaycedars name. but the output of salt-minion -l debug indicates the IP.
19:11 whiteinge tligda: i've been pulled away. i see the same behavior. will you open a ticket on that bug and also mention the docs need a little love?
19:12 tligda whiteinge: You bet! Thanks for the help!
19:12 jaycedars tligda: flipped to ip in the config. no change.
19:13 jaycedars ern. even the minion process on the master gets nothing.
19:14 tligda jaycedars: So you get "Attempting to authenticate with the Salt Master at …" and it's the right IP address?
19:15 jaycedars tligda: yes. and that's where everything stops. and the master's debug logs don't show any messages.
19:18 tligda Opened issue https://github.com/saltstack/salt/issues/12498 about the archive state difficulties.
19:19 tligda jaycedars: What do the minion's logs say? (/var/log/salt/minion)
19:22 jaycedars tligda: https://gist.github.com/jcderr/d7a6d5bb1ac1c6d5b038
19:25 ccase joined #salt
19:26 elfixit joined #salt
19:26 tligda jaycedars: Here's a recommendation from basepi: "I would recommend shutting down those minions, deleting the /var/cache/salt directory on those minions, and deleting /etc/salt/pki/minion/minion_master.pub so that the minion will accept the new master's key.  Then start the minion again, and see if it shows up on the master."
19:26 tligda jaycedars: Got it from https://groups.google.com/forum/#!topic/salt-users/Zq38NKjd1z4
19:26 jaycedars i'll give that a shot
19:27 redondos joined #salt
19:27 tligda jaycedars: Here is the description for the SaltReqTimeoutError: "Thrown when a salt master request call fails to return within the timeout"
19:31 jaycedars alas. no dice. :\
19:34 MindDrive joined #salt
19:38 jaycedars this is all off a base AMI that a coworker made using an older version of salt, which i upgraded. i'm not married to anything on it, and i've had trouble in the past when upgrading salt versions. so i'm just going to blow it away and start with a fresh base OS. :P
19:38 smcquay joined #salt
19:38 tligda jaycedars: Good plan!
19:38 uestra joined #salt
19:43 junster joined #salt
19:43 Ansem left #salt
19:45 cnelsonsic joined #salt
19:46 junster joined #salt
19:47 n8n joined #salt
19:47 cnelsonsic left #salt
19:52 vejdmn joined #salt
19:56 conan_the_destro joined #salt
20:00 rome joined #salt
20:01 it_dude joined #salt
20:04 bhosmer joined #salt
20:05 mgw joined #salt
20:05 n8n joined #salt
20:06 redondos joined #salt
20:06 redondos joined #salt
20:09 cheus_away "Specified ext_pillar interface git is unavailable", any idea what could be causing this?
20:15 timoguin cheus: my guess is that you don't have the necessary python libraries installed
20:16 cheus timoguin, That's what I thought too but I definitely have python-git installed
20:17 GradysGhost joined #salt
20:17 timoguin can you 'import git' at an interactive shell?
20:17 timoguin that's what that pillar's looking for
20:19 cheus timoguin, Yep. I basically replicated the commands in git_pillar.py
20:20 timoguin i'm assuming you've restarted the master to see if it gets loaded properly?
20:23 cheus timoguin, Aye I did, but I think I /just/ discovered it. Looks like git_pillar.py has a hard version requirement for git @L84 and my 12.04
20:23 cheus It's behind
20:24 kamal_ hmm, running salt-run jobs.active throws an exception even though the job is running just fine
20:24 kamal_ http://pastie.org/private/b2phh261u3slr3hgspaq
20:26 schmutz joined #salt
20:26 allanparsons joined #salt
20:26 allanparsons is anyone in here using the supervisord.running state successfully in here?
20:27 allanparsons i keep getting "ERROR (no such process)" when trying to launch a process.
20:28 martoss joined #salt
20:29 mgw joined #salt
20:32 timoguin cheus: yea that's what i was gonna tell you next. has to be greater than 0.3.0, looks like
20:32 combusean joined #salt
20:33 combusean so if you have peer runners set up, how do you actually make the call on the minion without salt-master installed?
20:33 combusean or with salt-master installed, as the case may be
20:33 Ryan_Lane1 you need to use master/minion for peer calls
20:34 Ryan_Lane1 !peer
20:34 wm-bot4 http://docs.saltstack.com/en/latest/ref/peer.html
20:34 Ryan_Lane1 one sec
20:34 Ryan_Lane1 combusean: http://docs.saltstack.com/en/latest/ref/peer.html#using-peer-communication
20:34 Ryan_Lane1 that's from the other minion. it'll publish a peer command
20:34 timoguin cool bot, bro
20:34 Ryan_Lane1 :D
20:34 combusean oh
20:35 combusean you need a different command
20:35 * combusean sighs
20:35 Ryan_Lane1 the salt command only exists on the master
20:35 combusean our deployer is wrapped around this running salt happily to run servers, and now that I want to make a new deployer, this has gotten much more difficult than I expected
20:35 Ryan_Lane1 salt-call publish.publish is relatively equivalent, but has different syntax
20:38 combusean we depend heavily on the output from salt, especially it's yml formatters at the moment
20:39 uestra joined #salt
20:40 Ryan_Lane1 combusean: you'll still get the same output
20:42 combusean it just feels like the salt executable should be extracted from salt-master and replace salt-call
20:43 Ryan_Lane1 it really would be kind of nice if the salt command existed on non-masters and always used the peer interface
20:44 combusean i have to rewrite the hell out of this to support the difference in salt/salt-call
20:45 alunduil joined #salt
20:45 smcquay joined #salt
20:47 ghartz_ joined #salt
20:48 to_json joined #salt
20:48 to_json hello #salt
20:49 to_json i've been working with salt-api, and I cannot for the life of me get it to respect a json blob containing an array of arguments
20:49 to_json the documentation seems to indicate that this should work
20:50 to_json but at the same time, there are no actual examples of the use of multiple args
20:50 to_json is this expected?
20:50 timoguin positional arguments?
20:50 timoguin the API only supports kwargs, i believe
20:50 vbabiy joined #salt
20:51 to_json {fun:'cp.get_url', arg: ["https://www.google.com/images/srpr/logo11w.png", '/tmp'], tgt:'my-machine', client: 'local'} is what I'm passing
20:51 to_json that is incorrect?
20:51 jimklo !cmd
20:52 jimklo wondering how to set the env vars for cmd.script... following the example syntax in the docs doesn't work...
20:54 jimklo http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.script  it shows BATCH as a dictionary...
20:54 allanparsons ah ha!
20:54 allanparsons bug in supervisord.running
20:54 rome joined #salt
20:55 to_json or rather, perhaps more to the point; does this mean that salt-api is incompatible with cp.get_url, as that command takes 2 positional args?
20:57 timoguin to_json: https://groups.google.com/forum/#!searchin/salt-users/salt-api$20kwarg/salt-users/5Kq18Y947LU/9nQbaI19QroJ
20:57 timoguin that may help
20:57 to_json homan, thank you timoguin!
20:58 ndrei joined #salt
20:58 to_json that answer is disappointing, as it means I can't convert hashes to my json blobs, but at least it permits me to proceed
20:58 to_json thanks a ton, I lost 3 working hours to this today!
21:01 diegows joined #salt
21:01 UtahDave whiteinge: do you know the answer to to_json's question?
21:02 vbabiy joined #salt
21:04 jslatts joined #salt
21:05 mgarfias how does one comment a jinja template?
21:06 mgarfias oh jeez, nevermind
21:08 DaveQB joined #salt
21:15 pydanny joined #salt
21:17 dfinn joined #salt
21:18 dfinn i'm trying to get salt-cloud up and running and having some issues.  I seem to already have a /usr/bin/salt-cloud binary which came with salt-master but it doesn't look like I have salt-cloud itself installed.  When I try to install it I get this error:
21:19 dfinn http://pastebin.com/YunTckfZ
21:19 dfinn and if I try to use that salt-cloud binary that I already have to connect to vsphere, I get this error:
21:19 dfinn http://pastebin.com/PmU7QhDk
21:20 Ryan_Lane1 UtahDave, whiteinge: has salt considered adding something like ansible's "register" to the states?
21:20 Ryan_Lane1 it would be incredibly useful for some things I need to do
21:20 UtahDave dfinn: you don't need to install salt-cloud any more. It's included in salt by default
21:21 timoguin dfinn: and you need pysphere installed
21:21 dfinn excellent, thanks
21:21 UtahDave Ryan_Lane1: what does register do?
21:21 timoguin someone on the list was having the same issue today
21:21 dfinn does EPEL not provide pysphere?
21:21 Ryan_Lane1 it allows you to register the output of a state into a variable
21:21 Ryan_Lane1 than you can use later in the state
21:22 UtahDave Ryan_Lane1: I think we already have it.  there's several dunder dictionaries that have been added
21:22 UtahDave __run__  stuff like that
21:22 Ryan_Lane1 I mean inside of the sls
21:22 UtahDave yes, inside the sls
21:22 UtahDave Oh, wait.  I see what you're saying
21:23 timoguin dfinn: doesn't look like they package it at all
21:23 timoguin aside from pip of course
21:24 Ryan_Lane1 I actually have a very specific use case for this where I need to generate something from one state module and use it in another. it would actually be nice if I didn't have to use __run__, but users could specify the output as an input themselves.
21:26 dfinn thanks timoguin, trying to figure pip out now
21:26 forrest hey has anyone ever used jinja to include all files from a subdirectory, then iterate over their values?
21:26 UtahDave Ryan_Lane1: Hm. I wonder if you could access it through jinja
21:27 Ryan_Lane1 https://gist.github.com/ryan-lane/cabe233738028d3082dc
21:27 Ryan_Lane1 that's what I need to do
21:28 UtahDave Ryan_Lane1: I think that's a great idea.  I don't know if the new dunder variables would provide what you need or not.  I'll ask
21:28 Ryan_Lane1 cool
21:28 dfinn i got pysphere installed and still get the same error as before
21:28 dfinn which I think was also happening to the guy on the mailing list
21:29 jimklo Can anyone explain to me why this doesn't work?  I'd expect to see JUNK1 and JUNK2 within the script environment scope, I think https://gist.github.com/jimklo/11486647
21:29 MTecknology I thought the patch from dave_den made it into 2014.1.3... :(
21:30 timoguin dfinn: could be a bug. that's a pretty new module
21:31 dfinn ok, i'll submit a bug if you think it's legit
21:31 dfinn UtahDave, any thoughts on that before I submit it?
21:31 logix812 joined #salt
21:33 vejdmn joined #salt
21:34 kaptk2 joined #salt
21:35 UtahDave dfinn: yeah
21:37 austin987 joined #salt
21:37 MTecknology UtahDave: can you help my sanity, please? https://github.com/saltstack/salt/pull/11222 <-- this was pulled into develop 2mo ago, shouldn't it be in 2014.1.3?
21:39 mateoconfeugo joined #salt
21:40 timoguin MTecknology: yea it should.
21:40 kermit joined #salt
21:40 timoguin usually @basepi will get mentioned if something needs to be cherry-picked.
21:41 timoguin the few things i've committed lately i've been cherry-picking them myself in the PR
21:41 basepi Yep, we're trying to be much more reserved with what we cherry-pick to try to prevent regressions.
21:42 basepi So when you need something cherry-picked, just mention me (or any of the other core devs) and ask us to put the Cherry-pick label on the pull request
21:42 timoguin it can be hard to figure out the line between feature and bugfix i suppose
21:42 MTecknology I'm sure everyone that uses salt is massively appreciative of that. I've noticed significantly less regression
21:42 basepi =)
21:43 basepi timoguin: it's less the line between bug/feature and more the line between "this bug only exists in develop vs develop and 2014.1".  plus going through *all* the pull requests has become too time-intensive.
21:43 MTecknology However... this particular PR from 2mo ago... I'm looking at salt/modules/cmdmod.py and it looks like this change never actually made it into 2014.1.3
21:43 basepi Right.  It was never labeled, so I never cherry-picked it.
21:43 MTecknology Will you? Pretty please?
21:44 basepi Hehe, I've marked it now, so I will
21:44 MTecknology My life is incredibly painful without this change.
21:44 timoguin only if you say please
21:44 MTecknology :D
21:44 basepi Not 100% sure that it will make it into .4, though.  we've already distributed an internal release candidate for that.
21:44 MTecknology My company paid him to make this patch and push it your way
21:44 basepi Ah, nice
21:45 MTecknology We're very much an edge case for server management. ~400 of the servers that I manage are connected over a T1.
21:45 nrgaway Is there a way to see which PRs have been cherry picked?
21:46 basepi nrgaway: yes, anything recent will have the "Bugfix - [Done] Cherry-pick"
21:46 MTecknology I lied... ~550 servers. I forgot a group of them.
21:46 basepi as opposed to the "Bugfix - Cherry-pick" label
21:46 basepi MTecknology: oh thank heavens it cherry-picked cleanly.  it will make it into .4 barring any craziness.
21:46 nrgaway I was wondering about pyobjects
21:47 nrgaway if it was one of the cherry picked items
21:47 MTecknology basepi: I want to hug you.
21:47 basepi nrgaway: pyobjects was different.  we cherry-picked it, but missed some subsequent fixes, and so things were breaking and we had to revert it
21:47 basepi it was an accident that it was cherry-picked in the first place, it was a feature and should have waited for Helium
21:47 MTecknology I wish I understood git better
21:47 basepi So it exists in 2014.1.1 i think, but no others.
21:47 basepi It will be in the Helium release candidate in a couple of weeks.
21:48 basepi MTecknology: this book is a lifesaver for that:  http://git-scm.com/book
21:48 basepi I highly recommend it.
21:48 MTecknology I'll read it!
21:48 nrgaway oh.  hope pyobjects  it make the next release :)  I built a custom renderer that depends on it I want to release in  week or so (yamlscript)
21:49 basepi nrgaway: it won't be in 2014.1.4, but will be in 2014.5.0-rc1 (again, hopefully in a couple of weeks)
21:49 MTecknology basepi: There are two other PRs in the conversation of that PR that are supposed to fix a few things too- do you need to cherry pick those too?
21:49 MTecknology https://github.com/saltstack/salt/pull/11483 & https://github.com/saltstack/salt/pull/11322
21:50 rome joined #salt
21:50 nrgaway cool, evan just added something to it today that my renderer needed so that should work
21:50 basepi MTecknology: good catch, thanks.
21:50 timoguin basepi: i remember wondering why pyobjects got cherry-picked
21:50 MTecknology :)
21:50 martoss joined #salt
21:50 timoguin i was like, "BUT FEATURE?"
21:51 basepi ya, i can't remember how that one snuck through.  i think it was one of the times Tom said "this shouldn't hurt anything, please cherry-pick @basepi"
21:51 basepi famous last words.
21:51 timoguin it's just a renderer
21:51 timoguin :)
21:51 MTecknology basepi: so... sounds like there's a strong chance of this going into 2014.1.4 and it sounds like 2014.1.4 is going through QA and should be released soon? So... I should probably just hang back on upgrading all my minions with a custom built package and wait for distribution.
21:52 basepi MTecknology: We should be cutting .4 and getting it to the packagers on Monday, Tuesday at latest
21:52 MTecknology wow- fast
21:52 basepi I would do it today, but it's 4pm on a Friday
21:52 basepi Ya, we wanted to get it out earlier this week
21:52 basepi but it didn't happen
21:52 MTecknology because you were waiting for me?
21:52 basepi you slid that fix in under the wire.  =P
21:53 basepi nope.  =P  but you're lucky we were busy, i guess!
21:53 MTecknology Thanks! :D :D
21:53 MTecknology Massively excited about that to a degree I can't express.
21:53 basepi hahaha, glad I could help!
21:53 timoguin try mixing lots of 1's and !'s
21:54 Ryan_Lane1 joined #salt
21:54 [diecast] joined #salt
21:54 UtahDave Ryan_Lane1: Hey, talked with Tom.  inside the state modules you have access to __running__ right now.   It would be pretty easy to extend that to make it available in jinja in the sls files
21:54 rome joined #salt
21:55 Ryan_Lane1 ah. cool
21:55 UtahDave Ryan_Lane1: go ahead and open an issue on that
21:55 Ryan_Lane1 it would be really nice for that to have some syntactic sugar from the states
21:57 harobed joined #salt
21:57 MTecknology basepi: like this?   http://dpaste.com/0SYB3PX/
21:57 MTecknology basepi: printf 'THANKS'; for i in {0..5000}; do if [[ "$(($RANDOM%2))" == '1' ]]; then printf '1'; else printf '!'; fi; done; printf '\n'
21:57 basepi hahaha
21:57 harobed joined #salt
21:57 basepi no like this!!!!!!1!!!111!!!!!eleven
21:58 MTecknology LOL!
21:59 MTecknology I should probably go home so I can head to MN so I can pick up my laptop, shoes, and a canopy so I can go back home and take a nap.
21:59 MTecknology basepi: Thanks again! TTYAL!
22:00 basepi later
22:01 combusean joined #salt
22:07 rome joined #salt
22:08 smcquay joined #salt
22:10 smcquay joined #salt
22:11 jimklo this seems like it's broken: https://github.com/saltstack/salt/pull/9027
22:11 jimklo in the v2014.1.3
22:12 jimklo I can't seem to get the environment to show up in my script
22:13 rome joined #salt
22:15 [diecast] joined #salt
22:21 whiteinge to_json: sending JSON to salt-api is the most flexible way to go. your syntax looks ok to me (i'm spinning up salt-api to double-check now). did you wrap that json in a list? or is that paste what you're sending?
22:22 to_json that paste is what I'm sending
22:23 whiteinge you need to send a list of low-data dictionaries. i'll bet you just need to wrap that in a list
22:23 whiteinge (checking)
22:23 whiteinge that lets you execute multiple commands through salt with a single http request
22:25 combusean Ryan_Lane1, YAML.load(`salt --output=yaml '*' cmd.retcode 'ls -al'`)  vs YAML.load(`salt-call --output=yaml publish.publish '*' cmd.retcode 'ls -al' 2>/dev/null `)['local']
22:25 combusean Ryan_Lane1, quite the diff syntax as well =/
22:27 combusean I guess the 2>  isn't necessary
22:27 whiteinge to_json: are you sending that request from javascript?
22:29 whiteinge [{"fun":"cp.get_url", "arg": ["https://www.google.com/images/srpr/logo11w.png", "/tmp/logo11w.jpg"], "tgt":"jerry", "client": "local"}]
22:29 whiteinge to_json: ^^
22:30 dfinn left #salt
22:31 bhosmer joined #salt
22:36 elfixit joined #salt
22:40 uestra joined #salt
22:41 Comradephate joined #salt
22:43 jnials joined #salt
22:43 rome joined #salt
22:48 to_json sorry, afk for a bit, I'll try that
22:48 to_json and i'm sending it from ruby (yeah, I know ;-) )
22:49 ek6 joined #salt
22:53 whiteinge heh
22:53 to_json so I got a 500 when I tried that, but I think I may have effed up my server messing sroung trying to make sure I was on latest
22:54 to_json :/
22:54 to_json it's a qa box so I'll live. Thanks for the help, y'all
22:54 whiteinge to_json: if you add ``debug: True`` to the rest_cherrypy config you can see the full traceback
22:55 whiteinge also make sure you're sending the right Content-Type header in your request so the server knows to interpret it as json
22:57 CeBe joined #salt
23:02 rome joined #salt
23:03 bhosmer joined #salt
23:05 mfournier SEJeff_work, UtahDave: hey, thanks for your answers earlier on ! survey.hash looks pretty much what I was looking for.
23:06 mfournier I find this sort of statistical breakdown with mcollective pretty useful. Looking forward to see how this looks like in salt's next release :)
23:10 jnials joined #salt
23:11 whiteinge mfournier: if you don't want to wait, you can pull the survey.py file off github
23:11 mfournier oh great, I'll try this ! Thanks !
23:12 rupsky joined #salt
23:13 rome joined #salt
23:13 rupsky joined #salt
23:13 allanparsons ok - i logged the bug in supervisord... https://github.com/saltstack/salt/issues/12506
23:15 it_dude joined #salt
23:22 n8n joined #salt
23:25 wwalker joined #salt
23:29 smcquay joined #salt
23:38 pjs is there a way to write a template that is reused? for instance, if I have a global packages dict and each one can have various keys, I'd like to write a single template to process each one and "call" (or include, etc.) from various state files.. is that possible?
23:39 to_json1 joined #salt
23:39 Katafalkas joined #salt
23:41 uestra joined #salt
23:42 whiteinge pjs: sounds like jinja macros may fit that bill
23:43 pjs whiteinge right, but I'm not really sure how to tell salt where to look for the macros
23:44 whiteinge put the macro in a stand-alone file alongside your .sls files, then you can {% from "mymacro.jinja" import mymacro %}
23:45 pjs ahhh.. gotcha!
23:45 pjs thank you!
23:45 whiteinge gl!
23:47 fllr joined #salt
23:49 happytux joined #salt
23:50 manfred pjs: you can also extend stuff
23:50 manfred pjs: http://jinja.pocoo.org/docs/templates/#extends
23:50 manfred and include
23:51 pjs manfred Right.. I was looking for macros actually.. similar to template tags for Django (sorry, Jinja / Salt newbie).. In this case, macro fits the bill.
23:51 pjs manfred thank you though!
23:51 manfred nice
23:51 hhenkel whiteinge: Seems like you know your way around with jinja....is there a way to check if a file exists in a relative path (gitfs) ?
23:53 Ryan_Lane1 how can I verify a module is available from inside the virtual function of another module?
23:53 Ryan_Lane1 I have a module that depends on other modules
23:54 whiteinge hhenkel: you might be able to call out to file.file_exists from jinja. i haven't tested to see how that works with relative paths
23:54 whiteinge hm. i'll bet it doesn't work well with relative paths
23:55 pjs to reference list index in jinja, is it {{ var[0] }} or {{ var.0 }}?
23:55 hhenkel whiteinge: Okay, I'll give it a shot then next time I'm in office. Thanks.
23:56 whiteinge hhenkel: you might be able to hack something together using the {{ sls }} variable. it'd be a hack though
23:56 whiteinge pjs: i *think* both work. i'd use the former to be explicit though
23:57 pjs awesome! thanks
23:57 whiteinge Ryan_Lane1: state module or execution module?
23:57 Ryan_Lane1 execution
23:57 taion809 joined #salt
23:57 Ryan_Lane1 I can see why this wouldn't work ;)
23:58 whiteinge i can think of a way to do it with the loader and loading a single module. i'm not sure if there's an official way or if it's being done
23:58 hhenkel whiteinge: I want to check for the existence of an sls...so what does the {{ sls }} provide?
23:59 whiteinge {{ sls }} is the path.name of the current sls file being processed

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