Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2014-10-21

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

All times shown according to UTC.

Time Nick Message
00:00 wnkz joined #salt
00:00 mgw joined #salt
00:05 sunkist evidence: checking...
00:06 lowkeyliesmith joined #salt
00:07 murrdoc joined #salt
00:07 sschwartz_ee_ varargs: also fails. What am I missing?
00:09 mosen joined #salt
00:09 davet joined #salt
00:12 aparsons_ joined #salt
00:15 blarghmatey joined #salt
00:15 blarghmatey Is there a way to print the rendered yaml and jinja for a state file to the console?
00:15 blarghmatey I'm trying to debug a weird issue where a loop in a state file that is reliant on pillar data seems to be producing an extra iteration
00:17 sunkist evidence: hey, it's not failing anymore!  Let me see if I can get salty-vagrant to inject that 'U' for me!
00:17 sunkist thanks!
00:17 arctan left #salt
00:17 baconbeckons joined #salt
00:17 kickerdog can't seem to get salt to start a docker image, any idea why this keeps failing? http://pastebin.com/ykRb9LYB
00:18 baconbeckons i have salt-master and minion running in a single vagrant vm. recently, i started getting the error “Passed invalid arguments: string indices must be integers, not str” or the error “salt.exceptions.AuthenticationError: message authentication failed”
00:19 jsm joined #salt
00:20 gattuso joined #salt
00:20 __number5__ blarghmatey: salt minionname state.show_sls slsname
00:20 blarghmatey __number5__ Thanks, forgot about that one
00:21 gattuso left #salt
00:23 mapu joined #salt
00:24 Outlander joined #salt
00:24 mapu joined #salt
00:25 Ryan_Lane joined #salt
00:26 mapu joined #salt
00:29 mapu joined #salt
00:30 bhosmer joined #salt
00:34 Singularo joined #salt
00:35 pdayton joined #salt
00:36 mapu joined #salt
00:39 mapu joined #salt
00:40 Ryan_Lane joined #salt
00:40 mapu joined #salt
00:42 jrluis joined #salt
00:43 mapu joined #salt
00:45 mapu joined #salt
00:46 crocket joined #salt
00:46 crocket hi gays
00:47 mapu joined #salt
00:47 crocket Can I describe a state in which a libvirt machine should be present on a remote host machine?
00:47 crocket As far as I know, e
00:47 crocket ther isn't
00:48 crocket there is no stat that describes libvirt machines.
00:48 crocket stat -> state
00:48 mapu joined #salt
00:48 crocket sorry for typos
00:48 crocket I'm typing on a tablet.
00:50 mapu joined #salt
00:51 mapu joined #salt
00:52 pdayton joined #salt
00:53 mapu joined #salt
00:55 mapu joined #salt
00:55 pdayton joined #salt
00:56 jsm joined #salt
00:59 Mike joined #salt
01:00 Guest99756 Does anyone know what the "Not Run" output count means in test=True?
01:03 MyGarfield Does anyone know what the "Not Run" output count means in test=True?
01:03 SheetiS joined #salt
01:08 TheThing joined #salt
01:08 jhulten joined #salt
01:08 synical joined #salt
01:11 snuffeluffegus joined #salt
01:16 hasues joined #salt
01:18 otter768 joined #salt
01:18 blarghmatey joined #salt
01:21 Mso150 joined #salt
01:27 sunkist joined #salt
01:28 malinoff joined #salt
01:31 aparsons joined #salt
01:32 druonysus joined #salt
01:32 druonysus joined #salt
01:40 fourmyle joined #salt
01:41 badon joined #salt
01:42 otter768 joined #salt
01:45 mg__ joined #salt
01:45 evidence has a multi-master for syndics discussion ever come up in the past?  a quick browse of issues on github doesn't show any hits
01:49 Sway joined #salt
01:58 StDiluted joined #salt
01:59 fourmyle joined #salt
02:00 fourmyle joined #salt
02:00 fourmyle joined #salt
02:01 fourmyle joined #salt
02:02 fourmyle joined #salt
02:03 fourmyle joined #salt
02:03 Nexpro joined #salt
02:03 fourmyle joined #salt
02:04 fourmyle joined #salt
02:04 anotherZero joined #salt
02:05 fourmyle joined #salt
02:06 fourmyle joined #salt
02:06 fourmyle joined #salt
02:07 fourmyle joined #salt
02:11 gmcwhistler joined #salt
02:22 Eugene joined #salt
02:30 bezeee joined #salt
02:30 ajolo joined #salt
02:33 ajolo_ joined #salt
02:34 thayne joined #salt
02:34 boer joined #salt
02:41 bhosmer joined #salt
02:42 Ryan_Lane joined #salt
02:43 ajolo joined #salt
02:51 nitti joined #salt
02:51 ramishra joined #salt
02:54 ndrei joined #salt
02:55 jalaziz joined #salt
03:08 StDiluted joined #salt
03:14 IOMonster joined #salt
03:15 p2 joined #salt
03:18 agj joined #salt
03:18 jsm joined #salt
03:19 Alan_S joined #salt
03:21 scoates_ joined #salt
03:23 ajolo_ joined #salt
03:23 otter768 joined #salt
03:32 TyrfingMjolnir joined #salt
03:39 jhulten joined #salt
03:39 mosen joined #salt
03:50 ixokai_ joined #salt
03:51 jeddi joined #salt
03:57 patrek joined #salt
04:10 kickerdog joined #salt
04:14 jsm joined #salt
04:16 crocket Help
04:19 crocket How can I describe a libvirt machine in sls?
04:21 ramishra joined #salt
04:21 jsm joined #salt
04:22 kermit joined #salt
04:37 kickerdog salt-virt is made for that.. http://docs.saltstack.com/en/latest/topics/virt/
04:41 felskrone joined #salt
04:42 bhosmer joined #salt
04:43 honza joined #salt
04:44 honza i'm affected by the jinja2 bug and i'm trying to upgrade to 2014.1.12 which claims to have fixed that bug --- however, it's not in the launchpad ppa.  What should I do?
04:47 UtahDave honza: is this a test system or production?
04:53 fragamus joined #salt
04:55 ramteid joined #salt
05:05 shiva_blre joined #salt
05:05 honza UtahDave: developer environment (vagrant)
05:06 UtahDave https://github.com/UtahDave/salt-vagrant-demo/blob/master/Vagrantfile
05:06 shiva_blre if I want to install rpm's from salt master, what do I have to do ?
05:06 shiva_blre am having all centos  machines
05:06 UtahDave honza: specifically look at the   salt.install_type and salt.install_args options
05:06 UtahDave honza: if you want 2014.13   then    salt.install_args = 'v2014.1.13'
05:07 malinoff shiva_blre, specify salt://path/to/package.rpm as sources argument
05:07 malinoff shiva_blre, http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html?highlight=pkg.installed#salt.states.pkg.installed
05:07 shiva_blre how the dependency resolve will happen? Will salt take care of it ?
05:08 malinoff shiva_blre, dependencies will be resolved by package manager
05:08 shiva_blre ok
05:08 honza UtahDave: great, thanks --- and how would you do this without vagrant, in vanilla ubuntu?
05:09 UtahDave honza: are you using salt-cloud to create the vm? or is this an existing ubuntu server?
05:10 honza UtahDave: i just add the saltstack ppa and apt-get install salt-minion --- i'm happy to rebuild local vm; production can wait for ppa build
05:11 UtahDave ok.   .13 should be in the ppa in a few days, I believe
05:11 UtahDave it's going through our QA team
05:11 honza UtahDave: i'm using vagrant but not a provisioner; just vagrant up and then i use fabric to install salt, etc
05:11 UtahDave ok
05:12 honza UtahDave: any chance i could get my hands on a .13 .deb?
05:12 honza (a bit presumptious i know)
05:12 UtahDave :)  that's not a problem.  Let me see if our packagers have it ready
05:14 UtahDave Hm. the debian/ubuntu packagers haven't gotten them to the qa team yet.
05:15 UtahDave I can check with a coworker in the morning and see what's up.  I'm the last one in the office.
05:16 honza UtahDave: excellent, thanks --- i'll let you know if i've found a workaround
05:17 UtahDave cool.
05:17 UtahDave one other thing.   the salt bootstrap script can install a specific version as well
05:18 __number5__ honza: you can use vagrant salt (masterless) provision to install any version of salt, it actually call the salt-bootstrap script for you
05:34 ekristen joined #salt
05:44 linjan joined #salt
05:47 zions joined #salt
06:08 mg__ joined #salt
06:08 n8n joined #salt
06:13 thayne joined #salt
06:21 mechanicalduck_ joined #salt
06:26 bra1nout joined #salt
06:28 bra1nout Hey guys, I continue learning salt and just wonder what's purpose for using pillar? Configuration files we can provide with states as well, and tutorial for Salt little bit confusing me. Could anyone clarify me this? Thank you in advance.
06:30 pjs joined #salt
06:30 malinoff bra1nout, pillars are variables assigned on the master side and transferred on per-minion basis, thus you can store sensitive information (like passwords) in pillars - they will not be accessible from other minions unless you told to do so
06:32 bagackiz joined #salt
06:32 bhosmer joined #salt
06:34 bahadir joined #salt
06:35 duncanmv joined #salt
06:39 mg__ I've written a custom runner and put it on the master (in a dir specified in the runner_dirs config). I can call salt-run on the master and it runs, but if I do it from a minion I get 'function is undefined'. Any ideas why?
06:40 colttt joined #salt
06:41 bra1nout malinoff: Thanks, mate! I need to dig more in this direction then =)
06:41 honza excellent, using bootstrap has solved my issues --- thanks for your help
06:41 malinoff bra1nout, http://stackoverflow.com/questions/13115700/salt-stack-grains-vs-pillars
06:42 Mso150 joined #salt
06:47 TheThing|24-7 joined #salt
06:49 georgemarshall joined #salt
06:49 APLU joined #salt
06:51 zions joined #salt
06:51 skarn joined #salt
06:53 bra1nout joined #salt
06:53 trikke joined #salt
07:07 cberndt joined #salt
07:14 holler_ joined #salt
07:14 flyboy joined #salt
07:14 holler_ hello, my vagrant + salt provisioner keeps crashing with this error and I have no idea why! UnicodeEncodeError: 'ascii' codec can't encode characters in position 168018-168020: ordinal not in range(128)
07:14 holler_ not really any clue in the traceback
07:16 CycloHex joined #salt
07:16 TyrfingMjolnir joined #salt
07:30 shiva_blre I tired to install a single rpm on minions. It worked. I placed the *.rpm inside a directory : /srv/salt
07:31 shiva_blre I want to install a rpm which has dependencies. how do I do ?
07:32 shiva_blre I placed all the rpms in a directory : /srv/salt/repo and in the .sls file under the - sources:
07:33 shiva_blre I have given the path ipmitool.x86_64: salt://repo/ipmitool-1.8.11-16.el6.x86_64.rpm
07:33 shiva_blre not able to install the rpms with their dependencies..
07:34 shiva_blre package ipmitool has got several dependencies.
07:34 shiva_blre As of know I don't want to point to my private repo..
07:36 shiva_blre any one out there ?
07:40 shiva_blre not able to install a rpm with its dependencies.
07:48 stephanbuys joined #salt
07:52 lcavassa joined #salt
08:02 CycloHex I'm kind of new to reactors and can't seem to get my reactors compiled, but that being said. I'd like to trigger a custom event whenever a minion finishes a highstate. How is this done? The docs aren't really clear on custom reactors
08:02 CycloHex at least not for me :*
08:09 faust joined #salt
08:10 CycloHex Are custom reactors or event always written in python?
08:14 ndrei joined #salt
08:15 jdmf joined #salt
08:18 chiui joined #salt
08:18 davidone joined #salt
08:21 bhosmer joined #salt
08:24 mechanicalduck joined #salt
08:25 shookees joined #salt
08:31 CeBe joined #salt
08:32 tmh1999 joined #salt
08:32 rostam joined #salt
08:33 CycloHex In a reactor, I have a state called rm_file:  cmd.file.remove:  - tgt: 'foo'  - arg: /path/to/file
08:33 CycloHex Is it not supposed to be formed like this? should the arg bve something else? I'm really running out of ideas here :s
08:39 VSpike Oh good. If I run salt master with "-l debug", it doesn't exhibit any of the problems I was seeing before
08:40 VSpike That's simulaneously a really annoying heisenbug, but also quite a useful workaround
08:40 gyre007_ joined #salt
08:43 martoss joined #salt
08:46 Fl0o joined #salt
08:47 viq hm, rc5?
08:58 akafred joined #salt
08:59 lcavassa joined #salt
08:59 felskrone joined #salt
09:00 pdayton joined #salt
09:00 pdayton joined #salt
09:01 martoss joined #salt
09:12 crocket kickerdog : virt module is not a state.
09:16 tmh1999 joined #salt
09:19 shiva_blre In order to install RPMs is it a best way to install from the repo through Saltstack
09:19 shiva_blre or simply place all my packages in a directory /srv/salt/rpms and tell salt to install ?
09:19 VSpike Is it possible to restart the salt minion in the middle of a set of states and have it continue where it left off?
09:20 shiva_blre Can some one put light on this ?
09:20 malinoff shiva_blre, the repository is always preferred
09:21 shiva_blre May I ask whats the flaw in using a directory and placing all the rpms inside it.
09:22 shiva_blre the later one is simple than the repo method ?
09:22 viq VSpike: AFAIK, no
09:22 malinoff shiva_blre, yum won't be able to automatically resolve dependencies
09:22 malinoff shiva_blre, you will have to manually install all dependencies before the main package
09:24 shiva_blre but now I tried for smartmontools rpm, placing smartmontool and its dependency package mailx in a directory : /srv/salt/rpms
09:24 shiva_blre salt installed smartmontools package including its RPM on the minions..
09:25 shiva_blre @malinoff
09:25 shiva_blre so am thinking of the directory method..
09:26 malinoff shiva_blre, salt will not transfer any file unless you told to
09:26 malinoff shiva_blre, so probably mailx was installed from a repository, or you wrote a state to install it before smartmontool
09:27 viq shiva_blre: also there is some bug report saying there's no way to update rpms installed via 'source' method (as in grab from this address, not "compile from source")
09:28 giannello joined #salt
09:28 shiva_blre no in the .sls file, under the -source field I have given - sources:       - smartmontools: salt://rpms/smartmontools-5.43-1.el6.x86_64.rpm
09:28 viq Generally I would say repository gives more control, and feels cleaner. Repository stuff was designed for distribution of files, salt, well, it's not it's main job
09:28 shiva_blre viq: okay
09:29 viq shiva_blre: according to some bug reports I've seen you may have a hard time upgrading those packages via salt
09:29 malinoff shiva_blre, run yum list installed | grep mailx - you will see from what repo it was installed
09:30 shiva_blre viq: hard time ?
09:30 viq shiva_blre: as in you probably won't be able to
09:30 shiva_blre yeah thanks I got it..
09:33 shiva_blre yum list installed | grep mailx - its there..
09:34 edsupered joined #salt
09:37 malinoff shiva_blre, third tab is interesting
09:38 malinoff jdk.x86_64 2000:1.7.0_51-fcs @/jdk-7u51-linux-x64 - @/path means that the package was installed from a local rpm
09:38 malinoff glassfish.noarch 4.0-9 @my-repo - @path means that the package was installed from the repo
09:40 shiva_blre ok
09:42 joehh honza: which os and release are you after?
09:42 Sypher joined #salt
09:43 honza joehh: i was hoping that 2014.1.13 or newer would soon be available on the ubuntu/precise ppa
09:43 honza joehh: i have found a workaround for now, so not urgent
09:44 superted666 joined #salt
09:44 jhauser joined #salt
09:44 joehh finalising debian now, doing ubuntu (to the testing ppa) shortly
09:49 AviMarcus joined #salt
09:53 CycloHex I get this error:  # salt '*' state.highstate test=true
09:53 CycloHex Failed to authenticate!  This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error ocurred (check disk/inode usage).
09:53 Outlander joined #salt
09:54 CycloHex whoami shows that I'm root, the user which I always use to run salt-commands. All of a suden it stopped..
09:55 faust joined #salt
09:55 joehh CycloHex: this is ringing some bells - just a thought - could you be out of inodes?
09:55 joehh df -i
09:56 CycloHex nope
09:56 CycloHex not out of inodes :/
09:56 CycloHex joehh: never more than 5% used
09:56 CycloHex also tried restarting the salt-master service
09:57 joehh could it be https://github.com/saltstack/salt/issues/12248
09:59 moapa joined #salt
10:00 sm1ly joined #salt
10:00 sm1ly hello all. ppl, what module I must use for check content of file. I mean I need to check does some line exist in /etc/services , if no - add it
10:01 malinoff sm1ly, it is better to manage a whole file with configuration management system
10:02 malinoff sm1ly, but you can use file.blockreplace
10:02 sm1ly malinoff, я в этом нне уверен) services огромный. во, blockreplace, я так и думал, но был не уверен, спасибо
10:04 malinoff sm1ly, please, use english on the channel - private messages are ok to talk in other language
10:04 sm1ly ok. sorry
10:04 viq sm1ly: or file.append
10:05 sm1ly thx viq
10:09 viq sm1ly: mind you, with file.append if you change what needs to be appended, you'll end up with the old and new lines
10:10 bhosmer joined #salt
10:13 ramishra joined #salt
10:19 peters-tx joined #salt
10:27 ndrei joined #salt
10:27 ndrei joined #salt
10:28 felskrone joined #salt
10:28 felskrone joined #salt
10:29 ndrei joined #salt
10:29 gmcwhistler joined #salt
10:31 TJ_ joined #salt
10:39 martoss joined #salt
10:44 martoss joined #salt
10:45 CycloHex joehh: I tried following the fixes in that issue, no success until I rebooted my master (the machine, not the service)
10:46 CycloHex I can now control my minions again! Whoo! thanks for the link
10:48 joehh yeah - it is not very satisfying - there doesn't seem to be a clear fix
10:48 ggoZ joined #salt
10:53 CeBe1 joined #salt
10:54 ramishra joined #salt
11:02 bhosmer joined #salt
11:03 elfixit joined #salt
11:03 scottpgallagher joined #salt
11:03 Sypher joined #salt
11:04 Damon_ Anyone knows if gitfs will be used for Pillar files aswell in the future instead of an ext_pillar ?
11:04 badon_ joined #salt
11:10 aquinas joined #salt
11:10 cjbarnes18 joined #salt
11:13 cjbarnes18 Hello, am having troubles with salt-ssh and gitfs state remote_backend.  state.sls works fine for regular minions, but for salt-ssh I get no matching sls found.
11:14 giantlock joined #salt
11:15 tjyang Hello, I am evaluating saltstack for deployment at work with firewall between agents and server. I have question about communication direction of salt agent and master. May I post my question here ?
11:15 CycloHex NO! YOU MAY NOT!
11:16 tjyang CycloHex, wrong place for beginner question ?
11:16 xmj "It depends."
11:16 CycloHex You're not really supposed to ask whether oyu can ask your question or not, just ask it.. If people answer it, great, if not, less great but still ok
11:16 xmj tjyang: no, CycloHex and the rest here just don't like Meta-Questions. that's all.
11:16 xmj tjyang: post your questions.
11:17 tjyang I read through http://docs.saltstack.com/en/latest/topics/tutorials/firewall.html
11:19 tjyang looks like the agent will initiate connection to master.  for a firewall setting, i prefer salt agent running as daemon in DMZ and wait for salt master to contact salt agent given the two ports are opened for master to pass through.
11:19 tjyang is it possible to configure salt agent to waiting for master to have first contact ?
11:20 bdf tjyang: that's not how it's set up by default, you can alternatively use salt-ssh if you want the master to contact minions (agents)
11:20 CycloHex How can I tell my reactor to fire an event after a highstate has been completed, do I jinja it and filter on tag salt/job/*/ret/'id' where fun = state.highstate?
11:20 bdf tjyang: but by default, the minion has a persistent connection to the master.
11:20 bdf tjyang: in theory, it's supposed to be a good thing for scale, as minions will come and go
11:21 crocket Hello
11:21 TheThing joined #salt
11:21 tjyang bdf: thanks for the reply, my security team don't like inbound connection (from DMZ into internal network)
11:22 viq tjyang: 1) salt-master in DMZ? 2) if not, sounds like ansible (or stuff like salt-ssh) are your only options
11:22 bdf your security team might be silly. they'd rather have open services on many systems rather than fewer?
11:22 tjyang bdf: agree, inbound connection allow salt master to scale.
11:22 bhi joined #salt
11:23 bdf why not also put the master in the DMZ?
11:24 CycloHex How would you guys add your minion to a monitoring service (in my case check_mk) .. currently I've created a bash script that just executes some salt commands to my monitoring server, but I thought it'd be possible using reactors for this.. Although my reqctors never render.. Does someone have an example of reactor sls files? Or is it better to write them in python?
11:25 tjyang viq: I will explore salt-ssh option, putting slat-master in each DMZ zone, won't that increase my zone master admin effort ?
11:25 Jellyfrog there was some project to use salt-minions as the monitoring agent
11:25 bdf https://github.com/lincolnloop/salmon
11:25 Jellyfrog indeed that one
11:26 bdf novel idea, it seems as though salt has all of the parts
11:26 Jellyfrog its a good idea imo
11:26 bdf I ended up using sensu, but perhaps when RAET and the reactor mature a bit I can re-evaluate that decision
11:26 tjyang bdf: security team is always right ;) incoming connection is not good, outbound connection is less risky.
11:28 viq tjyang: maybe - I have all my states and pillars in git, two masters, one can reach git directly, the other has git repos pushed to it and uses them that way
11:28 viq tjyang: or another DMZ, and allow connections to that specific port from other DMZs
11:29 bdf you know, on my production salt master I eventually got sick of waiting for gitfs and just mirrored the repos on the local filesystem, some push some pull
11:29 bdf but it seems like almost *everything* is faster that way
11:29 viq Or, a syndic per DMZ, and from each of them a connection to a master-of-masters, might be easier to let through one connection from each DMZ than for all machines
11:30 crocket Does emacs have a major mode for sls?
11:32 tjyang viq: "another DMZ" is a good idea, the salt traffic is all among DMZs. but question to salt admin, would I put my master into less secure DMZ zone ? the saltmaster will need to be highly security harden.
11:32 Jellyfrog i would have a vlan for that kind of traffic
11:33 Jellyfrog a seperate dmz i guess you could call it
11:34 tjyang Thanks for viq,bdf and others' friendly response to my beginner question. I will study more on salt-ssh since ssh port is opened on firewall already.
11:37 jxqz joined #salt
11:37 kbyrne joined #salt
11:37 MK_FG joined #salt
11:37 etw joined #salt
11:37 agj joined #salt
11:37 badon joined #salt
11:37 shalkie joined #salt
11:38 jacksontj joined #salt
11:38 Nazca joined #salt
11:38 manfred joined #salt
11:38 davet joined #salt
11:38 jeddi joined #salt
11:39 bahadir joined #salt
11:39 agend joined #salt
11:40 joehh honza: You'll find 2014.1.13 in the ppa:saltstack/testing ppa
11:40 joehh It will move to the main ppa once the QA team have a go at them
11:41 shiva_blre joined #salt
11:42 minaguib joined #salt
11:42 nickg joined #salt
11:42 cofeineSunshine joined #salt
11:42 cofeineSunshine joined #salt
11:42 shiva_blre how do tell salt to install from my local repo  in *.sls file? I have name and fromrepo ?  which one shall I use ?
11:44 bdf fromrepo sounds like what you want.
11:44 diegows joined #salt
11:45 shiva_blre How shall I write in *.sls file ? fromrepo : - file://mylocalrepo/path/name
11:45 shiva_blre ?
11:46 bdf is this actually a true package repo that is indexed by your package manager or just a directory with packages in it?
11:46 shiva_blre joined #salt
11:47 shiva_blre I have created a local repository using createrepo command.
11:48 ttrumm joined #salt
11:48 shiva_blre Its a directory with packages in it but if I run createrepo command it will become a local repository..
11:49 bdf I think what you actually want is 'sources'
11:49 shiva_blre sources ?
11:49 shiva_blre I tried sources
11:49 shiva_blre Its working but some one said
11:50 shiva_blre that we can't update a package using sources
11:50 shiva_blre So I am trying build a local a repo and trying to install from it.
11:52 crocket Hey guys
11:52 crocket How do I describe libvirt virtual machines in salt states?
11:54 bdf shiva_blre: so ok, it sounds like what you need to do is use createrepo, and define that repo in your local yum configuration, and then in your state, use fromrepo
11:54 shiva_blre ok
11:54 shiva_blre what shall I give for the fromrepo?
11:54 shiva_blre as I stated previously ?
11:55 shiva_blre I have used create repo
11:56 crocket Does anyone do it?
11:57 bdf if you've used createrepo, then you need to make the repo known to yum
11:57 bdf that doesn't happen automatically
11:57 bdf you can do so with either with the pkgrepo state
11:58 bdf or in /etc/yum.repos.d/
11:58 bdf but fromrepo refers to what you've named the repo
11:58 bdf as in this example at step 3 at http://yum.baseurl.org/wiki/RepoCreate
11:58 bhosmer_ joined #salt
11:58 bdf would be 'myrepo'
11:59 ekristen what is the best way to upgrade saltstack when you installed from git tag?
11:59 ekristen just re-run the bootstrap script?
12:04 crocket Master
12:07 TheThing joined #salt
12:11 TheThing_ joined #salt
12:11 nitti joined #salt
12:12 zions_ joined #salt
12:13 oyvjel joined #salt
12:15 damaex joined #salt
12:18 CycloHex ekristen: I did it that way.. Although I used curl to get the script again.. And on my firewall, git-port is denied.. So I changed the git:// to https:// in the script.. you can branch on rc5 now, btw :D
12:19 ekristen CycloHex: kk, looks like my installation of salt-cloud is getting in the way of me upgrading at the moment, so I’m trying to work through (around that) at the moment
12:19 CycloHex salt-cloud is included in salt-master.. unless you are using an older versioN?
12:21 ekristen my salt-master is really gold
12:21 ekristen old*
12:21 ekristen 2014.1.0.rc3
12:21 CycloHex I get an error on my initial highstate, nginx service failed to start.. When I run a highstate again it starts the service.. Is there any way to debug this properly, because the errormessage nginx service failed to start isn't really helpful
12:21 ekristen CycloHex: I’ll be more then willing to try and help you out once I figure out how to get my system upgraded
12:21 CycloHex so my question is, is there a way to debug highstates? other than -l debug
12:21 CycloHex ekristen: Was a question in general ^^
12:22 ekristen run your minion and master in debug for sure
12:22 xmj left #salt
12:23 CycloHex you should apt-get remove salt-master salt-cloud imo... then curl the bootstrazp script, then run it using -M -N (master, no-minion)
12:23 CycloHex better take a backup of your master config though
12:26 crocket Can a minion route a command to other minions via a master?
12:26 ekristen crocket: not that I’m aware of, but you can fire events from a minion to a master
12:26 ekristen and you can have a reactor listening for those events
12:27 crocket reactive
12:27 CycloHex ekristen: do you have experience with firing events and reactors, i'm on it right now.. But I can't seem to wrap my head around it
12:28 ekristen yeah I do it a lot
12:28 CycloHex and the docs are not as useful as I thought they'd be
12:29 CycloHex What I'm trying to achieve is that my minion triggers a reactor after their highstate.. No clue how to catch the end of an highstate
12:29 crocket It seems salt-call urges a master to send a command to the minion that invoked salt-call.
12:30 crocket Can salt-master wake up a minion PC?
12:30 crocket just curious
12:32 ekristen right salt-call is for local
12:32 ekristen if you do salt-call event.fire_master “{somedata: “jsonformat”}” “event/name/“
12:32 ekristen and have a reactor listening for “event/name”, then you can tell a specific minion to do something
12:33 ekristen CycloHex: what are you stuck on?
12:34 crocket How can I gather MAC addresses of minions?
12:34 ekristen crocket: that is in the grains of a minion
12:35 ekristen crocket: salt ‘*’ grains.items to see all minions grains, grains.get to get a more specific item
12:35 yomilk joined #salt
12:36 crocket ekristen, Can I see grains even if a minion is turned off?
12:36 CycloHex Well, I'd like to add my new minion to my monitor server.. This means my new minion should pass it's id and ip to the master who on his turn should pass it to my monitor server.. I thoguht I could just let my ne wminion fire an event when it's finished with it's highstate in which it owuld give it's ip and id, and let my master do some stuff on my monitor server
12:36 ekristen crocket: no I don’t believe so
12:36 crocket ekristen, Then, there is no way to wake up previously registered minions.
12:37 superted666 I think the master does cache some grain info as targetting using grains works when a minion is offline.
12:37 superted666 This gets you the mac address : grains.get hwaddr_interfaces
12:37 crocket superseb, It's not cached.
12:37 crocket superted666, It's not cached.
12:37 crocket I just tested it.
12:38 superted666 It might be but for a smaller amount of time, we see it all the time. When a server goes offline and we get minion timeouts. We pretty much only target based upon grain info
12:39 flyboy82 CycloHex: go with mine. I've done it to configure haproxy and add all apache servers' IPs.
12:39 CycloHex I've tried mine, but the docs are so useless
12:39 ekristen CycloHex: use the proxy example in the docs and trigger off the even they suggest there
12:39 CycloHex I cannot get an understanding of salt.mine
12:39 flyboy82 not that difficult... Where are you stuck?
12:40 CycloHex getting started :s
12:41 flyboy82 the easy way is to create a pillar and distribute it to all minions
12:42 CycloHex yes, that's something i have for now, but then in the docs the full example they get the data in their haproxy.conf.. But I wouldn't know how to access my data
12:42 flyboy82 that should include all the mine_functions you want your minions to run and return their results to the master
12:42 CycloHex I think i deleted all of the mine-related files, as I was stuck on it
12:42 crocket superted666, I don't understand at all.
12:42 shiva_bl joined #salt
12:42 flyboy82 i usually iterate through all mine data in a for loop and stop to get something when I hit some condition for the minion
12:42 shiva_bl am trying to tell salt to install packages from yum repo
12:43 shiva_bl not able to do it
12:43 CycloHex I'll have another look at the mine.. Only thing is, when mine is set up correctly, how do I trigger my monitor server to add the new minion?
12:43 flyboy82 reactor?
12:43 CycloHex ok
12:43 CycloHex yes
12:43 CycloHex with conditions
12:44 CycloHex I got a more clear image of what I'm supposed to do now, thanks flyboy82 ekristen
12:44 shiva_bl can anyone help ?
12:45 ekristen shiva_bl: what is the command you are running
12:45 ekristen or are you using states?
12:45 shiva_bl am using states
12:45 ekristen ok
12:45 ekristen so whats the problem
12:45 shiva_bl i have a file abc.sls
12:46 shiva_bl fractalpkgs:   pkg.installed:     - refresh: False     - skip_verify: True     - hold: True     - pkg_verify: False     - name: http://192.168.1.205/repos/centos/6.5/fractalpackages/OpenIPMI
12:46 superted666 crocket: So, on the salt master it should store a cache for any minions that successfully connect, when the minion connects for the first time salt master caches that info in /var/cache/salt/master/minions/
12:46 shiva_bl oops
12:47 flyboy82 in abstract view you could: 1. Hold a custom grain on your minions and when a certain event is triggered (reactor) populate it with "true"   2. Have your mine retrieve said grain and make it be updated every 5 mins.  3. Run your monitoring state again based on some reactor so that it reads the mine and adds minion to monitoring config
12:47 shiva_bl I shud have masked
12:47 crocket superted666, Why is it not consulted with?
12:49 ekristen shiva_bl: you can’t do it that way
12:49 shiva_bl oh
12:49 ekristen look at the sources key for pkg.installed
12:49 superted666 crocket: Not sure i follow, what's the issue?
12:49 shiva_bl sources ?
12:49 ekristen http://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed
12:49 shiva_bl Its working
12:49 CycloHex mine_functions:
12:49 CycloHex network.ip_addrs: [eth0]
12:49 shiva_bl sources is ok
12:49 CycloHex why is the eth0 between '[]'
12:50 vejdmn joined #salt
12:50 shiva_bl but I want to point it to a repo. How to do it ?
12:50 CycloHex if I'd like my grains.get: id, do I have to put [] around my id as well?
12:50 flyboy82 cuz the network.ip_addrs is an array that holds ethname: IP key:value pairs for all NICs
12:50 CycloHex aha! ok
12:51 ekristen shiva_bl: docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html look at the second example, shows how to add a repo and force a package to be installed from that specific repository
12:51 crocket superted666, I want to wake up a previously registered minion via wake on lan.
12:51 flyboy82 so you'll have [ { 'eth0' : '192.168.0.2' }, { 'lo' : '127.0.0.1' } ]
12:53 flyboy82 Oh, CycloHex, and if you want to get just the IP and not some weird string with quotes, you should go with {{ data['ip_addrs']['eth0'][0] }}
12:54 superted666 crocket: Im not sure if salt has that ability (could be wrong) WOL is activated through a so called magic packet. Whils the salt-master should remember the mac address of the minion in it's grains cache, it would still try communicate to the minion through the zermomq library. I can't find anything in the docs to suggest it's currentltly supported but it should in theory be
12:54 superted666 possible.
12:54 CycloHex ok, thanks!
12:54 diegows joined #salt
12:54 Arca joined #salt
12:54 eunuchsocket joined #salt
12:55 Arca hello, anyone could help me on pm ?
12:56 CycloHex I just don't get the last part.. Where it asks the mined data (in the tutorial, the haproxy config snippet) (how they the data, mine.get :s)
12:56 miqui joined #salt
12:56 ekristen Arca: whats the problem?
12:58 CycloHex so if in my mine.sls i said grains.get: id, I can access the id via {{ salt['mine.get']('id') }} ??
12:59 Arca ekristen: I'm having trouble to detect a minion's key (installed on the master machine), I saw that it has the same pub key than my other minion (i'm new to salt)
13:01 crocket superted666, How can I retrieve the mac address of a dormant minion?
13:01 ekristen Arca not sure I am following you, what do you mean by detect?
13:01 akitada joined #salt
13:02 Arca salt-key -L doesn't return the key of the minion (same machine as master), only the second minion on another machine
13:03 patrek joined #salt
13:03 crocket Arca, It's likely that "master" in /etc/salt/minion points to a non-existent domain name.
13:03 crocket By default, "master" points to "salt".
13:03 crocket You should add "salt" to /etc/hosts or change "master" in /etc/salt/minion.
13:04 superted666 crocket: Not too sure, manually it's easy enough, there could be a way i'm not familiar with though.
13:04 to_json joined #salt
13:05 racooper joined #salt
13:05 Arca I already changed the "master" in the file minion because I didn't do anything to hosts. and the value "master" is the same in both minion
13:07 bhosmer joined #salt
13:07 Arca localhost should be working if master and minion are on the same machine right?
13:08 crocket Arca : not sure.
13:08 crocket Arca, What IP addresses does the master bind on?
13:08 Arca 192.168.51.101
13:08 crocket Arca : What is it.
13:09 crocket Arca, If the master binds only on 192.168.51.101, it doesn't bind on localhost.
13:09 crocket That's it
13:09 crocket You better bind the master on *
13:09 crocket I mean 0.0.0.0
13:09 Arca i'll give it a try
13:09 bhosmer_ joined #salt
13:11 Arca actually my second minion isn't working well anymore, the key is accepted and I can ping it, but with salt-call -l debug, it says that it couldn't authenticate (key might not have been accepted). i'm quite lost
13:12 crocket Arca, Execute "salt-key -A"
13:12 crocket salt-key -L and salt-key -A
13:14 Arca I already got the second minion in Accepted, and the first minion isn't here at all
13:14 Outlander joined #salt
13:15 mpanetta joined #salt
13:15 crocket Arca, Doh
13:16 Arca I got it !
13:16 Arca There was a problem in the ip & network in my vbox, now both minions are accepted
13:17 Arca Thanks for the help, it was a problem of master not being reached :)
13:17 damaex joined #salt
13:19 cpowell joined #salt
13:20 bagackiz joined #salt
13:20 Setsuna666 joined #salt
13:21 ekristen did grain matching change at all recently?
13:21 bagackiz joined #salt
13:21 AviMarcus_ joined #salt
13:21 arno joined #salt
13:22 perfectsine joined #salt
13:22 bagackiz joined #salt
13:23 nitti joined #salt
13:24 bagackiz joined #salt
13:25 bagackiz joined #salt
13:26 crocket Can minions have its own state tree independently of master?
13:26 bagackiz joined #salt
13:26 Deevolution joined #salt
13:27 bagackiz joined #salt
13:27 micah_chatt joined #salt
13:28 bagackiz joined #salt
13:29 bagackiz joined #salt
13:30 bagackiz joined #salt
13:30 mohae joined #salt
13:31 bagackiz joined #salt
13:31 DolourousEdd joined #salt
13:32 bagackiz joined #salt
13:32 patrek joined #salt
13:33 damaex joined #salt
13:35 thayne joined #salt
13:37 jaimed joined #salt
13:43 vbabiy joined #salt
13:45 damaex joined #salt
13:45 nitti joined #salt
13:45 bra1nout joined #salt
13:47 bra1nout joined #salt
13:47 lowkeyliesmith joined #salt
13:50 bhi joined #salt
13:51 crocket Help me help my minions.
13:51 crocket My minions need help.
13:52 jsm joined #salt
13:53 ekristen crocket: whats wrong now?
13:54 crocket ekristen, Can minions have their own state trees independently of master?
13:54 ekristen well in a masterless setup for sure, to be honest I’m not sure in a master setup if they can,
13:55 ekristen why do you want separate state tree’s per minion?
13:55 crocket ekristen, If I configure a virtual machine image via salt-masterless, it gets to have its own state tree.
13:55 crocket If I assign a master to it, I don't know what the master will do to the minion.
13:56 crocket The master might be ruthless.
13:56 crocket ekristen, Packer uses salt-masterless to configure a virtual machine image.
13:56 viq crocket: I guess with --local you could still use local states
13:56 ekristen ok, not sure I understand why you want a separate tree?
13:56 crocket The salt terminology really adds humor to our conversation.
13:57 crocket ekristen, It's beneficial to have that topology.
13:57 mgw joined #salt
13:57 crocket If a master orders a minion, does a minion install a top file into its own state tree?
13:58 ekristen if you say so, others have tried to explain why they only use masterless, makes no sense to me, but to each their own
13:58 crocket ekristen, I as a master want minions to have independent states as well.
13:59 ekristen may I ask why? (just curious) — as for if it is doable, might be with the option viq suggested
13:59 crocket --local depends on local states completely.
13:59 crocket hmm...
13:59 yes456 joined #salt
13:59 crocket ekristen, I think I can come up with more convenient workflows if I do that.
13:59 viq oh?
14:00 ekristen sounds like a management nightmare to me
14:00 crocket It makes provisioning easier.
14:00 crocket ekristen, Well, I have to explore.
14:00 ekristen crocket: check out salt environments
14:00 crocket viq, Can a master alter a minion's local state tree?
14:00 ekristen I have about 10 branches in my git repo all tied to a salt environment
14:00 ekristen and each environment has their own states
14:01 crocket Can a master alter a minion's local state tree?
14:02 viq crocket: master can tell minion to alter any file on disk. But that's not what you're asking. By default AFAIK what minion gets from master goes to /var/cache/salt/minion/ so it won't touch your /srv/salt
14:02 yes456 whiteinge:  can please reopen issue https://github.com/saltstack/salt/issues/16085
14:02 crocket viq, Thanks for clarifying.
14:03 crocket So, minions cap keep their local state tree secretly.
14:03 crocket cap -> can
14:03 crocket That's an inspiration.
14:03 active8 joined #salt
14:04 crocket Can I assign multiple environments to a minion?
14:05 viq I guess I could see this for provisioning... But otherwise I'm not sure I see much use for it. Personally I've set it up so stuff has first end up in git for salt to be able to see it, to have history and central place where everything is
14:06 crocket How do I describe a state in which a libvirt machine with certain configurations is installed on a host?
14:07 crocket Such a VM should have the right image provisioned by packer, the right host name, etc.
14:07 crocket For now, libvirt state only manages keys
14:09 viq wouldn't that be salt-cloud stuff?
14:09 Damon_ anyone knows what the average memory usage is on a salt-master per minion or where i can find such information ?
14:10 prosper_ joined #salt
14:10 viq maybe wrap something around http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.virt.html
14:10 crocket viq, salt-cloud is for public clouds.
14:10 crocket libvirt is not salt-cloud's subject.
14:11 superted666 Damon: heard 7Mb per minion on the master is required.
14:11 pdayton joined #salt
14:11 viq crocket: I think I would disagree. It can eg drive openstack, which can just as well be private. Looking now whether it can control virt-manager stuff
14:11 crocket viq, libvirt
14:12 crocket "The virt-manager application is a desktop user interface for managing virtual machines through libvirt"
14:12 housl joined #salt
14:12 viq yeah, sorry
14:13 viq crocket: what's the distro hosting your VMs?
14:13 crocket viq, ubuntu 14.04
14:13 crocket viq, https://github.com/saltstack/salt/issues/12908
14:14 viq Is switching a possibility? Proxmox is debian based, AFAIK can actually be installed on debian, and apparently you can control it with salt-cloud
14:14 Damon_ hmm ok superted666 , do you know about any documentation on that ?
14:14 crocket viq, really?
14:15 viq I http://docs.saltstack.com/en/latest/topics/cloud/proxmox.html
14:15 superted666 Damon: Sorry no, it was quoted on here yesterday. Just had a scan but can't find anything. We currently run 650 minions off 4GB of memory.
14:15 ramishra joined #salt
14:15 viq https://pve.proxmox.com/wiki/Install_Proxmox_VE_on_Debian_Wheezy
14:15 viq crocket: ^ so apparently. Haven't tried myself yet.
14:16 crocket If I can install proxmox on ubuntu 14.04, why not?
14:16 viq crocket: there's also driver for LXC http://docs.saltstack.com/en/latest/topics/cloud/lxc.html
14:16 viq crocket: I don't think you can
14:16 crocket LXC
14:16 crocket There is no such thing for docker yet.
14:16 CycloHex Is it possible to give do a cmd.state.sls: arg: slsfile in a reactor-sls?
14:16 viq ...docker?
14:17 viq docker doesn't use KVM. Docker uses containers, used to use LXC to control them
14:17 Toogood joined #salt
14:18 crocket well
14:18 crocket very complicated
14:19 TheThing joined #salt
14:20 capricorn_1 joined #salt
14:21 PI-Lloyd_ joined #salt
14:22 prosper_ joined #salt
14:23 ramishra joined #salt
14:24 crocket When will I see the next release of salt?
14:25 crocket AT the end of this year?
14:25 crocket Or next year/
14:25 crocket I'm dying to try it.
14:25 anotherZero joined #salt
14:27 Ozack1 joined #salt
14:32 djstorm joined #salt
14:34 CycloHex What is the workaround to execute 2 cmd.run in a state-file?
14:34 crocket hello?
14:35 CycloHex so try it?
14:35 CycloHex crocket: http://docs.saltstack.com/en/latest/topics/releases/releasecandidate.html
14:35 CycloHex there evne is a RC5, so change the branch in the command from rc3 to rc5.
14:36 viq CycloHex: put them under two state IDs
14:36 CycloHex It's not recommended to try this in production, also you'll have to uninstall the current salt-master, but back-up your master config first
14:36 viq CycloHex: I've also seen some trick with - names: or something like that
14:37 CycloHex viq: https://gist.github.com/Cyclohex/15acf1f6514815149edb
14:37 viq But two IDs is easiest
14:37 CycloHex i use 2 different id's
14:37 viq that's not proper syntax
14:38 viq http://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html#salt.states.cmd.run
14:38 viq At the very least s/-/- name:/g
14:39 CycloHex Yee, just noticed it :D
14:39 viq :P
14:39 CycloHex it works now! thanks, v
14:39 CycloHex viq:
14:39 CycloHex *
14:42 mpanetta joined #salt
14:42 ajolo_ joined #salt
14:43 rattmuff joined #salt
14:43 rattmuff yay, finally. Firefox has been crashing all day when trying to use kiwiirc :P
14:44 CycloHex wb, rattmuff :D
14:44 * rattmuff missed salt talk
14:44 rattmuff :D
14:44 CycloHex :D
14:44 ndrei joined #salt
14:50 to_json joined #salt
14:51 diegows hi
14:51 diegows I want to apply a section of a sls file
14:51 diegows if other sls if applied to that host
14:52 diegows trying with
14:52 diegows {%- if "apache" in salt["state.show_top"]["base"] %}
14:52 diegows with no luck
14:52 diegows if there a way to do a "print" to dump values in jinja templates ?
14:53 ninkotech__ joined #salt
14:53 prosper_ joined #salt
14:56 VSpike Is there any ordering to pillar data?
14:57 viq VSpike: I don'
14:57 viq VSpike: I don't think so
14:57 nitti_ joined #salt
14:59 rattmuff diegows: sounds like you are approaching it backwards, wouldn't it be easier to apply a section of the sls file if a certain pillar value was set for example?
14:59 VSpike The case I have is wanting to have a match for machines with a web role, and a match for the environment name. It would be nice if in the environment match I could set a host name decorator like "beta" or "dev" and then in the web role do bindings to beta-www.example.com or dev-www.example.com
14:59 rattmuff diegows: or grain
14:59 CycloHex diegows: printing jinja variable: {{ varname  }}
14:59 mgw joined #salt
15:00 CycloHex Since I upgraded to the latest RC my service nginx fails to start on the machines initial highstate.. It's very frustrating as the error-msg is Service nginx failed to start. that's it...
15:00 fragamus joined #salt
15:01 CycloHex Anyone else had this error and resolved it?
15:02 viq CycloHex: check nginx logs
15:02 flyboy82 it tells you this on the master or the minions?
15:03 CycloHex good question, I do a salt-run jobs.lookup_jid jid on my master to get an overview of the initial highstate.. everything passes, except for my nginx service and the 2 services that are dependant on it
15:03 CycloHex checkign nginx logs as we speak
15:03 yes456 joined #salt
15:03 nebuchadnezzar joined #salt
15:03 flyboy82 you can also test-parse the configuration by running /path/to/binary/nginx -t
15:03 flyboy82 it will tell you exactly where's the error in the conf (if there is one)
15:04 CycloHex -t, ok
15:04 CycloHex i'll try that after I checked the logs
15:04 PI-Lloyd_ CycloHex: does it start after another highstate run?
15:04 CycloHex PI-Lloyd_: yes
15:04 CycloHex i got it
15:04 PI-Lloyd_ then you are missing a require somewhere :)
15:04 CycloHex my ssl keys aren't there yet
15:04 PI-Lloyd_ there ya go :)
15:05 CycloHex I need to let them require the service
15:05 CycloHex right?
15:05 CycloHex thanks guys! I friggin love this community..
15:05 flyboy82 you ened to include the ssl-keys state in nginx and require them on the pkg.installed
15:05 viq no, either have service require them, or in them have require_in service
15:05 PI-Lloyd_ either add a require_in to the ssl state, or a require to the nginx state
15:06 CycloHex :D haha thanks for the triple answer, you guys!
15:06 PI-Lloyd_ lol no worries :)
15:08 CycloHex ok, i'm up and running.. nice.. only problem now is that salt/cloud/*/created or /destroyed won't render my sls files, if I put the same sls under salt/minion/*/start, it works without any problem :s
15:09 thedodd joined #salt
15:11 bhosmer joined #salt
15:12 tk75 joined #salt
15:14 ramishra joined #salt
15:14 eagen joined #salt
15:15 thayne joined #salt
15:15 dude051 joined #salt
15:15 steve1 joined #salt
15:16 Glen_ joined #salt
15:16 jngd joined #salt
15:22 bhosmer__ joined #salt
15:26 jalbretsen joined #salt
15:27 conan_the_destro joined #salt
15:30 whyzgeek left #salt
15:33 lowkeyliesmith joined #salt
15:33 duncanmv joined #salt
15:34 StDiluted joined #salt
15:34 hasues joined #salt
15:34 avienu joined #salt
15:37 SheetiS joined #salt
15:38 rypeck joined #salt
15:39 wendall911 joined #salt
15:41 oz_akan joined #salt
15:42 oz_akan hi all
15:43 rypeck hiya oz_akan
15:43 oz_akan how are you rypeck
15:43 rypeck Just peachy. Ugly grey rain weather where I am.
15:43 rypeck you?
15:43 oz_akan oh sorry to hear that. I am doing good thanks. it is great weather out there.. not cold. not hot
15:46 mpanetta Hiya oz_akan :)
15:46 oz_akan he mpanetta ;)
15:46 jngd joined #salt
15:46 oz_akan hi
15:46 oz_akan how are you today?
15:47 mpanetta Not too bad
15:47 mpanetta How about yourself?
15:47 oz_akan good thanks
15:47 oz_akan I will be looking at events, that you were talking about, hopefully soon
15:47 mpanetta Oh cool!
15:47 ndrei joined #salt
15:48 oz_akan i am thinking if there could be generic tool we could put under github/saltstackme
15:48 mpanetta To do what?  Just expose the events interface?
15:48 oz_akan something that will utilize events that could be used by other salt people
15:48 mpanetta Ah cool
15:48 mpanetta yes that would be nice
15:49 oz_akan good question, to do what...
15:49 oz_akan maybe implementing auto scaling using events... I don't know yet.. just need to find something to make use of event, that could be used by others
15:50 mpanetta Well you can definitely get tones of info from events
15:50 oz_akan I found there are other use cases for salt in enterprises
15:50 oz_akan :)
15:50 mpanetta Oh?
15:50 oz_akan apart of configuring applications...
15:50 oz_akan oh it is trade secret :)
15:51 mpanetta Oh boo :P
15:53 Toogood joined #salt
15:53 Toogood joined #salt
15:56 jngd joined #salt
15:56 martoss1 joined #salt
15:57 jngd joined #salt
15:58 sumpos joined #salt
15:58 jngd joined #salt
15:59 primechuck joined #salt
16:00 sumpos hi, I'm trying to follow the tutorial - up to 3.3.3.1. CALL MULTIPLE STATES. I've modified webserver.sls, but I get the error: The named service apache is not available. I'm guessing this is because the minion is ArchLinux, and while the package is called apache, the systemd service is called httpd. I'm hoping there's an easy way to solve this, as haphazard handling of multiple distros is the main reason I've
16:00 sumpos started the move from ansibleto salt
16:01 jngd joined #salt
16:07 troyready joined #salt
16:12 patarr joined #salt
16:12 patarr joined #salt
16:17 aparsons joined #salt
16:17 iggy sumpos: those differences are usually handled by a map
16:17 iggy see just about everything under saltstack-formulas for examples
16:18 tligda joined #salt
16:20 felskrone joined #salt
16:20 linjan joined #salt
16:20 micah_chatt joined #salt
16:21 KyleG joined #salt
16:21 KyleG joined #salt
16:22 j-saturne joined #salt
16:23 krak3n` joined #salt
16:26 ekristen where be UtahDave today?
16:27 VSpike The salt module to install windows features fails on Windows 2k8 R2 with Powershell 2.0
16:27 VSpike You'll be excited to hear
16:28 sumpos iggy: ahh, cool. maps are what I was hoping for. They're exacly what was missing in ansible (ok, not missing, you can define dictionaries, but there are severe limitations that can't be worked around)
16:29 Mso150 joined #salt
16:30 bezeee joined #salt
16:30 jhulten joined #salt
16:32 jngd joined #salt
16:33 thedodd joined #salt
16:38 lowkeyliesmith joined #salt
16:44 spookah joined #salt
16:45 jngd joined #salt
16:46 smcquay joined #salt
16:52 linjan joined #salt
16:58 Setsuna666 joined #salt
17:01 QiQe joined #salt
17:01 QiQe guys Im trying to use gitfs as file server on salt master
17:02 QiQe it is not working
17:02 QiQe http://pastebin.com/GLMw7bfW
17:02 QiQe that is my config file
17:02 QiQe this is the error on minions: No Top file or external nodes data matches found
17:03 QiQe could someone help me?
17:03 Voziv joined #salt
17:04 ozzzo QiQe: Does your local DNS point example.com to something useful?
17:04 QiQe yes I have changed on purpose, it isnt the real name
17:05 kickerdog2 joined #salt
17:06 Voziv When using a minion locally how can I tell it to look for data in /srv/pillar? The minion config has the same pillar_roots declaration as this: http://salt.readthedocs.org/en/latest/topics/pillar/
17:06 davet joined #salt
17:06 Ryan_Lane joined #salt
17:07 pravka joined #salt
17:07 schimmy joined #salt
17:09 arthabaska joined #salt
17:09 ozzzo QiQe: Are you running the same version of salt on minion/master?
17:09 n8n joined #salt
17:09 schimmy1 joined #salt
17:09 ozzzo and can you test.ping the minion ok?
17:10 QiQe ozzzo: same version "salt-2014.1.10-4.el6.noarch"
17:12 davet joined #salt
17:12 jalaziz_ joined #salt
17:13 holler_ joined #salt
17:14 holler_ hello, my vagrant + salt provisioner keeps crashing with this error and I have no idea why! UnicodeEncodeError: 'ascii' codec can't encode characters in position 168018-168020: ordinal not in range(128)
17:14 holler_ not really any clue in the traceback
17:14 tjyang any pointer to Salt architecture diagram for deployment planning ? I am interested to reuse before I create my own.
17:15 tjyang ie, looking for Visio or Dia example diagrams for Salt
17:16 ggoZ joined #salt
17:16 QiQe ozzzo: test.ping working as well btw
17:17 iggy QiQe: try 'salt-run fileserver.update'
17:17 iggy if you don't see anything from that, try again with -l debug
17:19 ozzzo QiQe: and you can ssh to the git server from your minion?
17:20 QiQe iggy: after fileserver.update I can see this error
17:20 QiQe git remote prune --dry-run origin' returned exit status 128: ssh_exchange_identification: Connection closed by remote host
17:21 QiQe seems like a auth issue on git from salt
17:21 QiQe I have added the proper ssh key, I can even pull locally
17:21 iggy define added the proper ssh key?
17:22 QiQe I mean, I have added the root ssh public key on the git server
17:22 ggrieves joined #salt
17:23 kickerdog joined #salt
17:23 iggy *shrug* double check everything
17:24 Voziv Is pillar_roots the only thing I need to do to get a masterless minion to look for pillar data in /srv/pillar?
17:24 iggy salt doesn't use some sort of magic git+ssh support, it's just standard git/ssh stuff
17:26 ozzzo QiQe: from minion can you "ssh (git server)" and it lets you in?
17:27 ozzzo or does it ask for password or passphrase, or throw an error?
17:28 QiQe if I understand well is only the master who should be able to login on git server
17:28 QiQe minion will take the files from salt
17:28 QiQe I mean from salt-master
17:28 ozzzo i didn't realize it worked that way, but I'm not a huge salt expert
17:29 ozzzo I thought the master told the minion to pull the files
17:29 ozzzo i could be wrong
17:29 iggy the master pulls the files and then "shares" them via the salt:// namespace
17:30 aw110f joined #salt
17:31 arthabaska joined #salt
17:31 Setsuna666 joined #salt
17:32 ggrieves are there different syntax rules for windows minions?  I'm trying everything CLI before defining states but I'm having problems.  e.g. I can't do a cp.cache_file or a file.get_diff, although other file-module commands work   is it because of the mixed path notation for the minion vs master?
17:33 QiQe thanks iggy, seems to be an issue with authentication, Im going to debug deeper
17:34 kermit joined #salt
17:34 sschwartz_ee joined #salt
17:35 thedodd joined #salt
17:38 sschwartz_ee So: a question in the ongoing saga of salt-api. I'm now trying rest_wsgi, and submitting: curl -sS -i -H 'Content-Type: application/json' -d '[{"eauth":"pam","username":"uname","password":pwd","client":"local","tgt":"saltmaster","fun":"state.sls","args":"netapi.ping""}]' localhost:8999
17:39 sschwartz_ee Trying to run the ping.sls out of netapi. I keep getting back "TypeError encountered executing state.sls: sls() takes at least 1 non-keyword argument (0 given)." -- I know I'm missing something obvious, but I don't know what.
17:39 druonysus joined #salt
17:41 Ahlee possible to call saltutil from a state?
17:42 Ahlee sschwartz_ee: fun='state.sls' arg=['state_name']
17:42 Ahlee arg is a list of passed arguments
17:42 dstokes Ahlee: module.run http://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html
17:43 sschwartz_ee Ah-hah. New error, but that's progress. (It's telling me the sls is not available, when I know it is.)
17:44 Ahlee sschwartz_ee: in the same environment?
17:45 sschwartz_ee Indeed. I am testing a local, and when I invoke state.sls netapi.ping from the command line, there's no problem.
17:46 bastion1704 joined #salt
17:46 Ahlee I don't see a netapi under states, did you create a _state/ netapi that implements ping?  If so, did you saltutil.sync_states to the targeted minion?
17:47 vejdmn joined #salt
17:47 sschwartz_ee the sls is in the /srv/salt/netapi directory: /srv/salt/netapi/ping.sls, so I'm invoking it as if it were a standard sls.
17:48 sschwartz_ee (Long story, but the nomenclature of the sls title no longer matches what it's actually doing, as I've been wriesting with this for a while.)
17:48 Ahlee no problem
17:48 Ahlee by your description yes, that should have resolved correctly
17:48 Ahlee assuming namespacing didn't interfere
17:49 Voziv Alright, is there a way I can find out why my minion isn't grabbing pillar data from the tree that matches it's minion_id?
17:50 Ahlee Voziv: standard pillar with no environments in play?  Master logging in debug?
17:50 Voziv Ahlee: Masterless minion
17:50 Ahlee no help here
17:51 BrendanGilmore joined #salt
17:51 Ahlee sschwartz_ee: can you run fun='state.sls' arg=['cp.list_master']?
17:51 Gareth morning morning
17:51 superted666 joined #salt
17:52 iggy Voziv: what version of salt?
17:52 sschwartz_ee ahlee: Not available.  I think the problem may be because I'm trying to call something on the salt master from its minion POV, if that makes sense? (i.e. client local target = minion on salt-master.) )
17:53 Ahlee sschwartz_ee: well, i'm assuming you have a minion named 'saltmaster' your saltmaster is talking to
17:53 sschwartz_ee ahlee: Indeed.
17:53 Ahlee 'local' there is just the 'lcoal' client, which is what the API creates
17:54 desertigloo joined #salt
17:54 Ahlee so you're asking hte master to target that master.  My concern currently is the netapi module is getting in the way causing netapi/ping.sls to not be found
17:54 sschwartz_ee ahlee: OK. Perhaps I need to give it a path other than /srv/salt?
17:54 jsm joined #salt
17:54 Ahlee so in your master, you have your file_root set to /srv/salt ?
17:55 sschwartz_ee ahlee: I tried moving the script to my /srv/salt/test directory and renaming it, to get around that. test.apitest gets the same result. (Yes.)
17:55 Ahlee everything is relative off the file_root
17:55 Voziv iggy: 2014.1.11 (Hydrogen)
17:55 ipmb joined #salt
17:55 Ahlee and from the cli, you can run salt saltmaster state.sls netapi.ping and it runs what you're expecting?
17:55 sschwartz_ee "fun":"state.sls arg ['test.apitest']" is what I have.
17:55 sschwartz_ee ahlee: Exactly.
17:56 Ahlee That's really, really strange.
17:56 Ahlee You have no environments defined, correct?
17:56 iggy Voziv: known bug in 2014.1.11
17:56 iggy upgrade or downgrade
17:56 sschwartz_ee Not to my knowledge.
17:57 Voziv iggy: Is there something to upgrade to? I thought that was the latest release
17:57 iggy 2014.1.13 is floating around some places
17:57 Ahlee 2014.1.10 is latest
17:57 Ahlee based on topic
17:57 diegows rattmuff, some delay here :)
17:57 Ahlee so, looks like a downgrade will suit you btter
17:58 diegows rattmuff, I was thinking about a pillar or grain
17:58 iggy 2014.1.13 is definitely tagged
17:58 diegows rattmuff, but I like the idea to check is a state module is applied or not to a host
17:58 teepark left #salt
17:58 iggy don't know about progress on tarballs
17:58 sschwartz_ee ahlee: Not to my knowledge. Nor am I seeing anything I can trace in the master or minion logs.
17:58 diegows rattmuff, think abou this: php module, you need to install the apache stuff only if the apache sls is applied
17:58 claytonk joined #salt
17:59 diegows there are other options of course, like create a module called php.apache
17:59 teepark joined #salt
17:59 diegows but I want to try that :)
18:00 Ahlee sschwartz_ee: hrm.
18:00 Ahlee I'm trying to think through where to go from here.
18:00 mohae joined #salt
18:01 SheetiS diegows: I use grains to handle my roles and I'll something like this {% if 'apace2' in salt['grains.get']('roles', []) %}\n - require_in:\n    - pkg: apache2\n {% endif %}
18:01 SheetiS wrap some jinja to conditionally require it in something
18:01 SheetiS if that thing is to be installed
18:01 lowkeyliesmith joined #salt
18:02 prosper_ joined #salt
18:03 desertigloo joined #salt
18:03 sjaredj joined #salt
18:03 nitti joined #salt
18:03 sschwartz_ee ahlee: I tried passing this: ""state.sls arg ['test.apitest']", "args":"saltenv:/srv/salt"
18:04 diegows SheetiS, I use roles too
18:04 Ahlee I'm on a salt version prior to the saltenv cut over, but on my version I don't pass saltenv
18:04 druonysuse joined #salt
18:04 diegows I just want add a condition based on the sls to be applied :)
18:05 jeffspeff joined #salt
18:05 SheetiS Does what I did with the if conditional stuff above sound like what you are looking for, or did you mean something else?
18:05 cberndt joined #salt
18:06 jeffspeff how can i output a specific grain value for my minions? "salt '*' grains.hwaddr_interfaces" doesn't work
18:06 SheetiS salt <target> grains.item <item>
18:07 Ahlee sschwartz_ee: https://gist.github.com/jalons/ae7ab1876781e03bd8df
18:07 vejdmn joined #salt
18:07 jsm joined #salt
18:07 Ahlee There's a generic state.sls example using libpepper (https://github.com/saltstack/pepper)
18:08 jeffspeff SheetiS, that returns all grain values
18:08 SheetiS use item singular not plural
18:08 jeffspeff oh. :P
18:08 Ahlee in that example, netapi/ping.sls lives at /opt/salt/Staging, which is the Staging environment in /etc/salt/master's file_roots
18:09 SheetiS if you need to traverse a dict, you can also use grains.get like this:
18:09 SheetiS salt \* grains.get 'hwaddr_interfaces:eth0'
18:10 arno joined #salt
18:11 sschwartz_ee ahlee: Gotcha. I'll have to give it a look (I don't have pepper installed.)
18:12 Ahlee yeah, I suck at curl so i fall back to pepper.  If i do'nt have pepper, i fall back to requests
18:12 kballou joined #salt
18:13 Ahlee i've become too embedded in python :(
18:13 * SheetiS <3 python
18:13 lcavassa joined #salt
18:13 Ahlee i do too, but I question python's livlihood.  "It's not perl" sounded a lot better in 1999 than today.
18:14 ericof joined #salt
18:14 SheetiS Ahlee: seems to be a lot of stuff that uses python these days.
18:15 SheetiS What do you think will be its downfall (if anything)?
18:16 viq joined #salt
18:16 bdf transition from python 2 to 3
18:16 kickerdog joined #salt
18:16 jdmf joined #salt
18:17 cberndt joined #salt
18:17 SheetiS There's that I suppose.
18:17 ericof joined #salt
18:17 sschwartz_ee ahlee: Definitely something about the syntax; I just tried variations on ""fun":"cmd.run  arg w"" and they come back with not available.
18:18 murrdoc joined #salt
18:18 holler_ hello, these 2 commands are causing salt.highstate to crash with UnicodeError... any ideas? http://dpaste.com/1FWF9PC
18:19 schristensen joined #salt
18:20 ggrieves does anyone have problems with cp.cache_file or cp.get_diff with windows minions?
18:21 Ahlee sschwartz_ee: here's curl for me
18:21 Ahlee sschwartz_ee: https://gist.github.com/jalons/58531271029dd0ba4a1f
18:21 anyburl joined #salt
18:21 Ahlee You'll likely need to tweak the output based on your API version
18:22 claytonk joined #salt
18:22 sschwartz_ee ahlee: THanks! I can work with that, and see what breaks next. ;)
18:23 Ahlee good luck!
18:24 prosper_ joined #salt
18:25 cberndt joined #salt
18:25 j-saturne joined #salt
18:26 CeBe1 joined #salt
18:26 anyburl Q: getting Jinja syntax error: no test named 'mapping' when running certain salt-formulas; I'm thinking this is because I have Jinja2  version < 2.6 on Master ? But get it even on minion having jinja2-26-2.6-3 via salt-call (NOT using salt-call --local)
18:27 anyburl my prob is master is RHEL5, and can't seem to find jinja2 ver. 2.6 for RHEL5 ... maybe time to move my master to RHEL6 !!
18:27 murrdoc dist-upgrade!
18:27 murrdoc is that what it is in rhel ?
18:28 murrdoc or just yum upgrade
18:28 * murrdoc forgets
18:29 anyburl thx murdoc, not as straightforward as that on RHEL :(  .. but I could, probably have to, simply move my salt-master setup to a RH6 VM
18:29 murrdoc well you could pip install the correct version of jinja
18:29 murrdoc might be easier
18:31 anyburl but, I'm getting this 'not test 'mapping'' error from the latest nginx-formula... could i possibly have more success trying it on a minion via something like: 'salt-call --local -d /srv/salt/nginx-formula state.sls  nginx.ng'
18:31 anyburl my minion is python 2.7 with jinja 2.6 on RHEL6 ...
18:32 anyburl thx... I'll look into trying to upgrade jinja via PIP
18:34 murrdoc uh i d have to see more of your state to know whats happening, but if possible paste your yaml into http://yaml-online-parser.appspot.com/
18:34 murrdoc to make sure it looks ok
18:35 kickerdog joined #salt
18:35 holler_ hello, I am installing uwsgi via salt and Im not sure why there isn't a /etc/uwsgi directory being created on the guest VM?
18:35 holler_ the service is running I can check with ps aux | grep uwsgi
18:35 Ahlee yeah, there's no supported way of crossing the 5->6 divide
18:35 Ahlee it gets messy.
18:36 Ahlee holler_: how are you installing it?  Does the package manager of your OS not create /etc/uwsgi?
18:36 kickerdog joined #salt
18:36 holler_ Ahlee: http://dpaste.com/0538TRM
18:37 holler_ Im using vagrant + salt
18:37 arno___ joined #salt
18:38 Ahlee holler_: you're not specifying anywhere in that to create /etc/uwsgi
18:38 cpowell joined #salt
18:38 kickerdog left #salt
18:38 Ahlee does pip install uwsgi normally create that directory?
18:39 holler_ Ahlee: I didnt think I was supposed to create it?
18:39 holler_ I dont know
18:39 holler_ thought it would be automatic
18:39 Ahlee I have no idea what that directory is, but it lives in /etc/ which is normally a protected directory
18:39 iggy "magic"
18:40 Ahlee holler_: add an /etc/uwsgi:\n  file.directory:\n
18:40 Ahlee that'll create your directory at least. Yo'ull need to straighten out where what files live in that directory source from, though
18:45 bhosmer joined #salt
18:46 ndrei joined #salt
18:48 jsm joined #salt
18:48 superseb joined #salt
18:49 littleidea joined #salt
18:50 wnkz joined #salt
18:52 sschwartz_ee ahlee: What I got after adjusting some variables in your script: http://pastebin.com/Y7SASe88
18:57 thedodd joined #salt
18:57 Ahlee pesky lone pine mall
18:57 Ahlee I guess hte question becomes: is that the expected output?
18:58 sschwartz_ee ahlee: Not from my test, no.... ;)
18:58 sschwartz_ee Ahlee: I was hoping it was some known error message from a coder with a sense of humor.
18:59 jdmf joined #salt
18:59 sschwartz_ee Ahlee: It's an issue somewhere earlier, because I changed the sls to a bad path, and got the same issue.
18:59 fragamus joined #salt
19:00 bezeee joined #salt
19:01 felskrone sschwartz_ee: if i remember correctly, that salt-api/netapis output if you dont POST data to it :-)
19:01 sschwartz_ee felskrone: OK, thank you.
19:03 prosper__ joined #salt
19:03 felskrone sschwartz_ee:  https://github.com/saltstack/salt/blob/develop/salt/netapi/rest_wsgi.py#L238
19:04 hardwire joined #salt
19:05 sschwartz_ee felskrone: Heh.  OK.
19:06 Mso150_w joined #salt
19:06 diegows that what I want {%- if "apache" in salt["state.show_top"]()["base"] %}
19:06 diegows forgot the ()
19:06 diegows :)
19:12 cjbarnes18 joined #salt
19:12 Ahlee ah, heh.
19:13 arno___ joined #salt
19:14 sschwartz_ee felskrone: To avoid spamming here, a question, if I may? http://pastebin.com/U9m80eUA
19:15 1JTAAQ5CI joined #salt
19:17 felskrone sschwartz_ee: the saltapi is tricky, let me take a look
19:19 ckao joined #salt
19:20 felskrone sschwartz_ee:  what exactly are you trying to execute? that a minion runs a highstate?
19:20 Ahlee he wants to run the state test.apitest
19:20 sschwartz_ee felskrone: That a minion runs a specified SLS. Long-term goal is integration with Jenkins, so that it runs a salt command, but I am quite content to make that salt command wrapped within an sls.
19:21 Ahlee the way the fun: is formated looks wrong
19:22 felskrone the end of the string is wrong
19:22 Ahlee since arg is a seperate argument
19:22 felskrone its invalif json
19:22 arno___ joined #salt
19:22 Ahlee 'fun':'state.sls', 'arg':'test.apitest'
19:22 felskrone it must look something like this: "fun":"abuse.check_joomla","arg":['10583641']
19:22 sschwartz_ee ahlee: I can try again; I went through many different versions, with small tweaks here and there. How would you try it, felskrone?
19:22 felskrone or rather what Ahlee just said :-)
19:23 Ahlee if not that, 'arg':'['test.apitest']'
19:23 Ahlee or 'arg':'[test.apitest]'
19:23 felskrone its important the the string within the '[]' is valid json, otherwie the request will never work
19:23 Ahlee one of those should work, heh
19:24 mnguyen joined #salt
19:24 Setsuna666 joined #salt
19:24 felskrone Ahlee: said it all, i have to run, sorry
19:24 Ahlee and this is why i try not to use curl and just fall back to pepper/requests/libcurl
19:24 gothix joined #salt
19:25 Ahlee thanks felskrone, you're observation on the invalid json helped
19:26 gothix joined #salt
19:26 felskrone joined #salt
19:26 sjaredj very new to saltstack (one week).  wondering if there is a good reference guide/tutorial that speaks to how best to organize the /srv/salt directory as well as best practices for top.sls file.  With hundreds of servers to manage things could get pretty ugly pretty quick
19:27 gothix joined #salt
19:28 Mso150 joined #salt
19:28 Ahlee sjaredj: http://docs.saltstack.com/en/latest/topics/best_practices.html
19:29 gothix joined #salt
19:29 gothix joined #salt
19:29 Ahlee sjaredj: my top.sls is bascially just match: on external pillars
19:30 aparsons joined #salt
19:30 thedodd joined #salt
19:30 sjaredj I have read that best practices page.  I was left with more questions than when I started.  :)
19:31 sjaredj still have not wrapped my head around pillars yet...maybe with I do things will be more clear
19:31 Ahlee sjaredj: pillars are things you tell servers
19:31 Ahlee ext_pillars are things you tell servers taht you have to first run python to determine
19:32 Ahlee honestly?  just go for it.  You're not going to get the directory structure right first shot.  You're going to hvae to learn why it doesn't work for you, as salt's so malleable
19:32 Ahlee Start to run, salt will trip you. Get up, curse, untie the shoe laces, and start to run again
19:33 Ahlee repeat until what works for you and your team emerges :)
19:33 mnguyen Does anyone here have any experience with the custom renderer gpg?  I'm trying to get it to integrate with salt version 2014.1.11, and it just keeps throwing out "[ERROR   ] The renderer "gpg" is not available"
19:34 mnguyen I can see that it's synced to /var/cache/salt/minion/extmods/renderers
19:34 sjaredj so far I have just been working with the top.sls file and one minion with a couple state files...when thinking of how to scale what I have learned out to hundreds of servers it starts to get overwhelming
19:34 mnguyen Any help would be greatly appreciated :)
19:34 aparsons joined #salt
19:35 Pork__ joined #salt
19:35 Ahlee sjaredj: write your most generic states, and toss them under base: to apply to all hosts
19:35 StDiluted joined #salt
19:36 Ahlee then as you customize, paint as broad of stroke as you can
19:37 SheetiS mnguyen: So that I don't have my gpg keys around on all the minions, I typically just use the gpg renderer on pillar data and follow http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.gpg.html
19:37 SheetiS Then pass the data from the pillar to my state or to a file with a context inside the state
19:38 Pork__ Hmmm, still having issues running salt-virt on Ubuntu host. Anyone ever get this to work?
19:39 mnguyen SheetiS: I'm testing it on a vm currently and have the gpg keys set up.  I've verified that they can encrypt/decrypt properly on the command line, but the problem seems to be that Salt cannot read the gpg renderer
19:39 SheetiS do you have the python module python-gnupg installed?
19:40 mnguyen Yup
19:40 mnguyen Tested that too through pyshell, and it's working
19:40 sjaredj ahlee: thanks...I will run with that for now...and prepare to get my knees scraped as I go along
19:40 superted666 joined #salt
19:41 SheetiS ok the other thing the gpg renderer is not available in 2014.1 I believe, so you'll have to steal the renderers/gpg.py from the 2014.7 and put it in place in your install
19:41 Pork__ Does anyone know of a good how-to for salt-virt and Ubuntu hosts/guests?
19:42 mnguyen Yup.  I've got a copy of the gpg renderer and placed it in _renderers under /srv/salt
19:42 mnguyen And I can see that it's synced to the /var/cache/salt/minion/extmods/renderers once I run highstate
19:42 Pork__ I'm sure I can figure this out if I had a little direction RE: KVM, etc. Never used KVM
19:42 SheetiS hmm
19:44 SheetiS the error you got is not what it would look like if the gpg renderer barfed on you
19:44 arthabaska joined #salt
19:45 mnguyen Yeah, I'm completely baffled by this
19:45 mnguyen I've put some logging info into the gpg.py renderer and put the master into debug mode in the foreground.  I can see that the constant "HAS_GPG" is set to True
19:46 mnguyen But it never seems to be hit the render() function as none of my logging from that function gets dumped onto the master debug process
19:48 jdmf joined #salt
19:49 Setsuna666 joined #salt
19:49 ndrei joined #salt
19:49 SheetiS I'm looking at how the pillar handles render right now.
19:51 linjan joined #salt
19:52 jsm joined #salt
19:54 murrdoc joined #salt
19:55 honza left #salt
19:55 mgw joined #salt
19:58 SheetiS mnguyen: I don't know.  I'll be testing exactly what you are talking about shortly, so maybe I'll have some more info once this is in my test environment that same way.
19:58 mnguyen Thanks!
20:01 murrdoc joined #salt
20:02 aparsons_ joined #salt
20:02 arno joined #salt
20:03 aparsons joined #salt
20:03 Pork__ Created a Server Fault question if anyone wants credit for answering: https://serverfault.com/questions/638682/deploying-virtual-machines-using-salt-and-salt-virt-on-ubuntu-server
20:03 Pork__ I know I am missing something stupid
20:04 Ryan_Lane hipchat returner is awesome
20:04 Ryan_Lane configuration via pillars would be nice
20:04 Ryan_Lane rather than requiring the config to be in the minion file
20:05 SheetiS mnguyen: The only thing I can think of is that _renderers is not available to the pillar since it has a different file roots than the rest.  Does it work if you sneak it in to the site-packages/salt/renderers/ under your python libdir?  It might be an hour or 2 until what I am working on is ready enough to push this test along with it.
20:05 jhauser joined #salt
20:05 SheetiS I know that isn't how you'd want to do it long-term, but might give a place to start looking
20:05 murrdoc joined #salt
20:06 mnguyen I'll test it out shortly.  I'll very much appreciate your help.  Thanks!
20:07 iggy Ryan_Lane: I thought most things pulled config that way (or do they require specific support for that?)
20:07 Ryan_Lane depends on what function you use
20:07 Ned_ so I tried using the augeas module, but it says "State augeas.change found in sls ssh is unavailable"
20:08 Ned_ I tried importing Augest on the machine directly, and that works fine
20:08 Ned_ anyone have any ideas ?
20:08 teepark joined #salt
20:08 Ryan_Lane __salt__['config.option'] <-- that'll read minion config and pillars
20:08 * iggy takes note
20:08 Ryan_Lane and grains and master config
20:09 iggy I'm writing a custom module right now that will eventually need config probably
20:09 jasonrm joined #salt
20:10 Ryan_Lane I guess salt.returners.get_returner_options is what returners generally use
20:10 Ryan_Lane but that only reads from the minion config, from what I can tell
20:10 teepark joined #salt
20:11 gyre007_ joined #salt
20:12 Ryan_Lane oh. maybe it actually reads from pillars
20:13 Ryan_Lane that function uses __salt__['config.option'], if it's available, and unless omit_pillar=True, it looks in pillars
20:13 Ryan_Lane sweet! :)
20:13 druonysus joined #salt
20:13 druonysus joined #salt
20:17 salt_newb joined #salt
20:17 iggy yeah, targeted config on something like that is a plus
20:18 iggy don't need my dev machines spamming everybody in hipchat
20:18 Ned_ oh, is that topic _really_ out of date ?
20:18 Ned_ 2014.1.10 isn't the latest ?
20:18 salt_newb Hey Everyone, I have a salt state that managed a directory and sets recursive user/group ownership. When I have log files of 4GB+ in those directories my disk I/O hits 100% when trying to set recursive permissions on the log files. Any ideas?
20:19 iggy Ned_: 2014.1.11 was packaged but had some issues, 2014.1.12 wasn't even packaged when they found issues with it, 2014.1.13 is tagged and waiting to be packaged
20:19 Ned_ iggy: right, I have 2014.1.11
20:19 Ned_ on Ubuntu 14.04
20:19 Ned_ and the ppa is _really_ old
20:19 Ned_ ?
20:19 Ned_ I just tried adding the ppa
20:19 Ned_ and it's 0.17.5 ?
20:20 giantlock joined #salt
20:21 iggy which ppa? I see 2014.1.11 in the salt stable ppa
20:22 iggy (ie. ppa:saltstack/salt)
20:22 Ned_ weird
20:22 Ned_ I just sudo add-apt-repository ppa:saltstack/salt
20:22 Ned_ I just did that ...
20:23 iggy and update'd after?
20:23 Ned_ oh, duh
20:23 Ned_ don't mind me ...
20:23 Ned_ I'm being stupid
20:23 Ned_ yes, 2014.1.11
20:23 iggy one of the reasons I like salt-bootstrap
20:23 mpanetta joined #salt
20:23 Ned_ iggy: wassat?
20:24 dalibro joined #salt
20:24 mpanetta joined #salt
20:24 iggy curl -L https://bootstrap.saltstack.com -o install_salt.sh ; sudo sh install_salt.sh
20:24 mnguyen SheetiS:  Looks like that solved it
20:24 Ned_ ahh, cool
20:25 mnguyen Is this just an issue with version 2014.1.11
20:25 Ned_ iggy: ahh, nice, you can set the master in there too :D
20:25 Ned_ (well, from the docs at the top anyway)
20:25 iggy yeah
20:25 Ned_ I shall hang on to that :D
20:25 Ned_ iggy: any idea on how far away 2014.7 is ?
20:25 iggy 2 weeks
20:26 Ned_ I was just trying to use the augeas module, and it seems like it'd be a bunch more sane after that :-)
20:26 iggy is what I've been hearing for the last 6 weeks
20:26 Ned_ iggy: cool, cheers ...
20:26 Ned_ oh ..
20:26 Ned_ :-(
20:26 CeBe joined #salt
20:27 Ned_ well, thanks for your help anyway ... that bootstrap thing looks like it'll remove a bunch of pain :D
20:27 jalbretsen hmmmm.  Is there not a way in the rvm state to just install rvm?  Seems like the doc imply I need to install something.  I just want to have RVM installed, hand a box over to the devs, and let them deal with what they want to install.
20:27 smcquay joined #salt
20:28 dalibro hey guys, how do you solve empty lines replaced by jinja, when using {% brackets %} ? :)
20:28 SheetiS mnguyen: It'd exist like that for all of 2014.1.11.  I don't know if the pillar would support custom renderers at all.  You might be able to do it with the extension_modules: configuration option.  then do something like extension_modules: /srv/modules and configure /srv/modules/renderers
20:28 SheetiS and put it there
20:28 iggy dalibro: {%-
20:28 SheetiS all of 2014.1.xx
20:29 Ned_ http://docs.saltstack.com/en/latest/salt-modindex.html is there a version of that for 2014.1.xx ?
20:29 Ned_ oh, DUH
20:29 Ned_ nevermind, I'll try reading :-(
20:29 jalbretsen dalibro: depending on what you are you doing, it could involve pulling your hair out
20:29 dalibro iggy: thanks ! :) much faster than finding the right google query :D
20:30 SheetiS mnguyen: see this for what I mean http://docs.saltstack.com/en/latest/ref/configuration/master.html#extension-modules
20:34 bhosmer joined #salt
20:34 dalibro jalbretsen: haha, nothing in yaml :P
20:37 dude051 joined #salt
20:38 druonysuse joined #salt
20:38 druonysuse joined #salt
20:39 mafro joined #salt
20:39 mafro lo anyone got a word on when the wheezy package for 2014.1.12 / 13 might arrive?
20:39 mafro 2014.1.11 is broken
20:40 toastedpenguin joined #salt
20:40 iggy nope
20:40 Ned_ Hmmm, the augeas module in 2014.1 is pretty ... munted :-(
20:41 dude051 joined #salt
20:41 murrdoc joined #salt
20:41 snave joined #salt
20:41 mafro left #salt
20:42 mafro joined #salt
20:42 mafro really need to disable auto-upgrading of the salt package.. it always has issues
20:42 mafro it’s been that way for two years though, so I’m shouldn’t be surprised :p
20:43 iggy they are working on it... unfortunately that's why 2014.7 still isn't out and it's almost 2014.11
20:44 dalibro another one ! :)
20:44 dalibro salt['mine.get']('roles:role1')
20:44 dalibro how can i ask for two roles ?
20:44 iggy and
20:45 murrdoc be nice to director
20:45 dalibro salt['mine.get']('roles:role1') and salt['mine.get']('roles:role2') ?
20:45 iggy yeah
20:46 mechanicalduck joined #salt
20:46 dalibro I have a feeling I'll hit a syntax error :D
20:46 iggy dalibro: what exactly are you trying to do?
20:46 mnguyen SheetiS:  Much thanks!
20:47 salt_newb joined #salt
20:47 dalibro i'm trying to get servername and address from minion
20:47 SheetiS mnguyen: everything working with it out of site-packages and in the extensions-modules/renderers?
20:47 dalibro which has two roles
20:48 dalibro for server, addrs in salt['mine.get']('roles:role1 and role2')
20:48 dalibro for example
20:48 iggy you can't
20:48 schimmy joined #salt
20:48 mnguyen It's working out of dist-packages (I'm using Ubuntu), but I think we'll leave it running out of dist-packages since we're planning to upgrade Salt at some point
20:50 Ryan_Lane iggy: well, apparently, the release number is based on the branch point ;)
20:50 Pork__ Still nothing
20:50 Pork__ This is driving me insane
20:50 Pork__ At least soneone upvoted my Server Fault question
20:50 Pork__ ...
20:50 schimmy joined #salt
20:52 iggy just setup openstack and use salt-cloud
20:52 Ryan_Lane heh. from the fire to the pan
20:53 schimmy1 joined #salt
20:54 martoss joined #salt
20:55 badon_ joined #salt
20:57 forrest lol
20:57 Ryan_Lane Pork__: I'd answer your question if I could, but I've never used salt-virt
20:58 Ryan_Lane I have, however used openstack extensively :)
20:58 Ryan_Lane (and that's actually not a bad recommendation)
20:58 Pork__ Ryan_Lane: I hadn't though of that
20:59 Ryan_Lane openstack will almost definitely be more feature rich and more usable than salt-virt (no offense to salt)
20:59 Pork__ Ryan_Lane: I'll bet someone a lot smarter had built a Salt config for Openstack
21:00 Pork__ I wonder how hard it would be to get running
21:00 Setsuna666 joined #salt
21:00 Ryan_Lane Pork__: https://github.com/stackforge/nova-salt-formula
21:00 Ryan_Lane Pork__: https://github.com/stackforge?query=salt-formula
21:01 DaveQB joined #salt
21:01 Ryan_Lane haven't tried any of those formulas, but they look reasonable
21:01 hasues Hm, I thought stackforge was primarily puppet.
21:01 Ryan_Lane stackforge is all non-core openstack repos
21:02 Ryan_Lane which includes incubated projects, I believe
21:02 hasues I use Fuel which is based on Stackforge, so maybe that is the difference.  Most of what happens behind the scenes there is Puppet tied with docker.
21:03 Pork__ Ryan_Lane: Thanks, bro
21:03 Ryan_Lane yw
21:03 Pork__ Ryan_Lane: By the way, you're not the Lyft Rylan Lane, are you?
21:03 Ryan_Lane I am
21:04 Pork__ Ryan_Lane: Ryan ***
21:05 Pork__ Ryan_Lane: Legit, dude. A couple of your bros were in my office here in Cleveland for the launch a few months ago. Cool system
21:05 Ryan_Lane ah, nice
21:05 Pork__ Anywhos, I'm gonna go mess with openstack
21:05 Pork__ Later
21:05 * Ryan_Lane waves
21:05 Pork__ Thanks for the help
21:06 Ryan_Lane yw
21:06 cjbarnes18 joined #salt
21:10 SheetiS mnguyen: in case you need ever, the custom renderers do work in the pillar if you set the execution_modules variable like above and put it in /srv/modules/renderers.  I was testing for my own personal use concurrently while you askes the question earlier so I figured I'd give feedback.
21:13 mnguyen Sounds great.  I may go that route then since it's much cleaner than playing with the dist-packages directory
21:19 nitti_ joined #salt
21:22 ajolo_ joined #salt
21:22 holler_ hello, how can I run command "grunt dist", where I have a Gruntfile in my project root dir? http://dpaste.com/25TDRSK
21:22 druonysuse joined #salt
21:24 sjaredj recently installed salt and am getting familiar with it.  I noticed my Centos and Redhat minions are version 2014.1.10 (Hydrogen) and my solaris 10 minions are 0.14.0.  Is that to be expected if I followed the install guide?
21:24 jalaziz joined #salt
21:25 forrest sjaredj: uhh you know I'm not sure how 'new' the solaris releases are, or even who is packaging those up at this point...
21:27 berto- i have a project that uses salt states to copy files into their proper locations.  i’d like to clone the project repo and run those states … using salt.  Problem is I get the error “The function "state.sls" is running as PID 8634 and was started […]”  Any way to tell salt to run it anyway?
21:27 forrest berto-: No, salt can't run two instances like that at a time.
21:27 berto- I’m trying to run the states with a cmd.run that calls `salt-call —local —file-root=/path/to/repo […]`
21:27 sjaredj The directions I used had me install from http://mirror.opencsw.org/opencsw/unstable
21:28 n8n joined #salt
21:28 iggy saltception
21:28 berto- iggy: salt all the way down ...
21:28 karunamon joined #salt
21:29 superted666 joined #salt
21:30 n8n joined #salt
21:32 sjaredj forrest: should they even be compatible?  I just noticed about 15 solaris minions not responding to test.ping or any other command.  I checked the solaris minion and according to netstat has a connection established back to the master.  I restarted the minion and the master can see it again
21:32 sjaredj just curious if this is a version problem
21:34 Ahlee sjaredj: what version of zeromq?
21:34 Ahlee there are known issues with zmq ,3
21:34 Ahlee <3, even
21:35 iggy I suspect the level of interoperability between versions amounts to "does it run well enough to allow the master to upgrade and then upgrade the minions"
21:36 sjaredj ahlee: PyZMQ: 2.2.0.1
21:37 murrdoc left #salt
21:37 bhosmer joined #salt
21:39 Ahlee sjaredj: and the underlying zeromq library?  salt --versions
21:40 Ahlee should report a ZMQ version
21:41 sjaredj Salt: 0.14.0          Python: 2.7.8 (default, Sep 23 2014, 12:13:35)          Jinja2: 2.7.2        M2Crypto: 0.21.1  msgpack-python: 0.4.2    msgpack-pure: not installed        pycrypto: 2.6.1          PyYAML: 3.11           PyZMQ: 2.2.0.1
21:41 Ahlee huh.
21:42 Ahlee well.  0.14.0 isn't helping.  I don't see ZMQ version installed, so I'm guessing it's also old
21:42 sjaredj ahlee: that is the output from salt --version
21:42 sjaredj salt --versions
21:42 jhulten joined #salt
21:42 Ahlee pkginfo present?
21:43 Ahlee huh
21:43 Ahlee i got nothing
21:44 mosen joined #salt
21:46 sjaredj I installed using the directions from http://docs.saltstack.com/en/latest/topics/installation/solaris.html
21:46 felskrone joined #salt
21:47 sjaredj everything seemed to work.  It registered itself with the master after the installation so I assumed it was working fine.  I do have about 10 of my 25 solaris servers still accessible from the master
21:49 yomilk joined #salt
21:50 TheThing joined #salt
21:54 forrest sjaredj: Sorry I was away, usually no it's not backwards compatible, especially that far
21:55 sjaredj is there an easy way to upgrade the solaris minion?
21:56 bhosmer joined #salt
21:57 steveoliver left #salt
21:58 sjaredj I found this https://github.com/saltstack/salt/issues/12701
21:58 sjaredj going to give that a try
21:58 aparsons joined #salt
22:03 ekristen is there a way to tell the salt minion upon service restart to ignore the startup states in the minion config just that one time?
22:03 kermit joined #salt
22:08 mg__ joined #salt
22:08 StDiluted joined #salt
22:10 tk75 does pkg: installed always pull the latest rom with yum? it just upgraded something for me
22:10 jsm joined #salt
22:10 tk75 err, rpm
22:12 yomilk joined #salt
22:14 jalaziz joined #salt
22:18 cads joined #salt
22:19 dstokes is there a way to use the file state to cp a directory?
22:19 forrest tk75: no, pkg.installed will only install it if it is NOT installed, pkg.latest updates to the most recent package.
22:20 forrest dstokes: file.recurse
22:20 dstokes forrest: thx! haven't used that one yet
22:20 dstokes was looking for directory.* ;)
22:21 forrest dstokes: ahh yeah, nope.
22:21 tk75 forrest, that's what I thought ... I wonder how this happened then. Would it by chance update if it were a rolling release, as in Debian unstable, fedora, amazon linux, etc ?
22:22 dstokes forrest: so that'll copy salt master files to the minion, but what if i want to copy a directory on the minion to another dir?
22:22 dstokes i can just use cmd.run ;)
22:22 forrest tk75: It shouldn't, the way pkg.installed works is it first looks at the package database, if it finds it, it doesn't take any action.
22:23 forrest dstokes: yeah other than that, http://docs.saltstack.com/en/latest/ref/cli/salt-cp.html is the only thing I can think of.
22:24 spookah joined #salt
22:25 mnguyen SheetiS: I finally got around to testing that extension_module variable and am having some trouble.  Is it simply setting the extension_module = /srv/modules/ in the /etc/salt/master file?
22:25 mosen having some problems with the state iptables.append always appending the same rule at each run. What's its method for detecting the rule corresponding to the state?
22:25 SheetiS It's yaml like this: extension_modules: /srv/modules
22:26 SheetiS then I put the gpg.py in /srv/modules/renderers
22:26 SheetiS after that I was able to use gpg in any pillar by using the shebang #!jinja|yaml|gpg
22:27 SheetiS (after a master restart of course)
22:28 murrdoc joined #salt
22:28 utahcon There is no feedback from event.fire_master, right? It is a fire and forget method...
22:28 murrdoc there is a file state for managing file perms yes ?
22:28 SheetiS murrdoc: use file.managed and set the permissions but not a source
22:28 SheetiS if you want to only do permissions
22:28 murrdoc like just owners and perms
22:29 murrdoc ah got it
22:29 SheetiS utahcon: I believe that is correct since it just throws the message out there and it is up to the master to decide if it does anything about it.
22:30 sjaredj joined #salt
22:33 utahcon The only thing I can't account for is if the event never fires at all... otherwise I figure I can have the reactor state "respond" by kicking off a new state on the minion when things complete on the master
22:34 SheetiS utahcon: what are you trying to do with the reactor?  If it's just 'run this on the master' and then 'run this on the minion(s)', perhaps an orchestration is better suited to accomplish the task.
22:35 utahcon SheetiS: 1) what is an orchestration? part of Salt? or something like frabric...
22:35 utahcon 2) trying to keep it all in one palce
22:36 SheetiS http://docs.saltstack.com/en/latest/topics/tutorials/states_pt5.html#the-orchestrate-runner
22:36 utahcon I am setting up gluster, need the trusted machine (master) to peer the new client
22:36 SheetiS orchestration sounds much better for that
22:36 rawzone joined #salt
22:36 utahcon after the client is peered, then the client needs to load volumes etc... so it needs to know when the master is successful in peering
22:36 utahcon well that seems much more sane
22:37 jhulten joined #salt
22:40 iggy the bad thing about orchestration in that scenario is I don't think you can wait for something else to be done to do the next step
22:40 iggy that and there are like nearly 0 docs for orchestration
22:40 iggy so even if that is possible, it'd be impossible to tell
22:40 utahcon iggy: not 0, but not a bunch more
22:42 iggy yeah, I've done a few orchestrate runners, but they didn't get very complex due to not really having good examples to work off of
22:43 n8n joined #salt
22:43 utahcon hmm... I think I am confused... where does that kickoff from ? The master or minion?
22:43 mnguyen SheetiS: The line "extension_modules: /srv/modules" goes into the /etc/salt/master file though right?
22:43 davi_____ joined #salt
22:43 SheetiS I put it in /etc/salt/master.d/extension_modules.conf, but directly in the /etc/salt/master would work as well
22:44 ggillies joined #salt
22:44 SheetiS utahcon: they are run from the master as a salt-run state.orchestrate <orchestration_name>
22:45 utahcon hmm... ok
22:45 ajolo_ joined #salt
22:45 iggy utahcon: it's a runner... on the master
22:45 utahcon hmmm
22:45 utahcon ok
22:46 kballou joined #salt
22:46 utahcon so then in order for the minion to trigger that it would have to still call an event.fire_master and get no response... right?
22:46 iggy which is why I think reactors are better for some things like this
22:46 utahcon yeah, my reactor > runner > ack-state seems like a good plan again :D
22:47 bezeee joined #salt
22:51 elfixit joined #salt
23:03 kballou joined #salt
23:06 wnkz joined #salt
23:13 superseb joined #salt
23:14 skyler joined #salt
23:18 superted666 joined #salt
23:20 Singularo joined #salt
23:21 Outlander joined #salt
23:27 kaictl joined #salt
23:29 wnkz joined #salt
23:31 jhulten joined #salt
23:32 mgw Would it make sense to have an "event" returner, for use with minion schedules?
23:34 Gareth mgw: sounds interesting.
23:34 Gareth mgw: what would the event returner do?
23:34 mgw fire master side events
23:35 mgw so that the reactor could react
23:36 __number5__ mgw: why not just fire event at minion side then trigger reactor at master?
23:39 mgw __number5__: maybe i wasn't clear about the idea
23:39 bhosmer joined #salt
23:39 mechanicalduck joined #salt
23:39 mgw my idea is to run module functions on minions (using schedule)
23:39 mgw and feed the results back to the master for processing by th reactor
23:41 __number5__ mgw: that what salt mine for http://docs.saltstack.com/en/latest/topics/mine/
23:43 mgw __number5__: yeah, i'd forgotten about mine
23:50 mgw can individual mine functions specify their own interval?
23:51 mechanicalduck joined #salt
23:53 __number5__ mgw: I don't think so, but I guess you can have you own scheduler within the mine function as a workaround

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