Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-02-11

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

All times shown according to UTC.

Time Nick Message
00:01 whatapain joined #salt
00:02 whatapain does anyone know what would cause a custom service init script to cause a salt service.start to hang forever?
00:02 whatapain the init script work properly on the host itself, process goes into the background normally and the script exits with a 0
00:02 writteno1 joined #salt
00:02 whatapain but when executed through salt the command is executed but salt never returns, ret_val = None
00:08 hal58th joined #salt
00:12 rem5 joined #salt
00:14 shoemonkey joined #salt
00:15 amcorreia joined #salt
00:16 joe_n joined #salt
00:18 whatapain the issue was related to using start-stop-daemon with --no-close
00:18 brianfeister joined #salt
00:19 onlyanegg joined #salt
00:22 penguinpowernz HAHA that guys host is called phlapa
00:23 rem5 joined #salt
00:23 penguinpowernz i wonder if that is supposed to be a quip like flapper (network flapper) or phillidelphia or somehting
00:24 totzky joined #salt
00:25 shaggy_surfer joined #salt
00:27 kusams joined #salt
00:27 whytewolf penguinpowernz: it is verizon fios so i doubt it is sense of humor based
00:29 shoemonkey joined #salt
00:29 pseudomonas joined #salt
00:31 penguinpowernz ah right lol
00:31 subsignal joined #salt
00:31 whytewolf so many ISPs take the fun out of networks now days
00:32 Muchoz joined #salt
00:33 pseudomonas Hi! Is there a way to have two states where one blocks the other from being installed even if they're both applied to the same minion? For example, it would be easiest to apply a ntp-client state to '*' and ntp-server to 'somefqdn'. Both states can't co-exist on the same minion, so I'd like to make ntp-server preferred over ntp-client and have the two block each other. I am trying to stick to a model for the top file where I didn't alway
00:34 Eugene pseudomonas - make a single "ntp" state, with a flag set somewhere to identify some minions as being "ntp server"
00:35 Eugene Then jinja magic
00:35 pseudomonas okay, that would generally work I think. I can basically just use if to choose which template file to lay down
00:36 pseudomonas are you thinking like a grain on the minion that sets the flag?
00:36 Eugene I would make the template aware of the server flag(simple true/false), and do it in there
00:37 Eugene I prefer to keep data about minion's responsibilities stored in Pillar
00:37 whytewolf pseudomonas: here is a template file i use for chrony [ntp service] that basicly configs ntp-server and ntp-clients differently. https://gist.github.com/whytewolf/c4e042be3099a94243a1
00:37 bhosmer joined #salt
00:37 Eugene Capabilities go in grains
00:37 whytewolf [I use pillar based roles]
00:39 pseudomonas alright, sounds like I need to get a stronger understanding of pillars and read up on roles
00:39 pseudomonas at least now I know which noun to google
00:40 Eugene In my /etc/ntp.conf I actually leave it wide-open to the LAN and deal with filtering NTP at the router. No reason machines can't sync off each other, and it lets nagios check 'em easily.
00:41 pseudomonas I'm moving towards openntpd though because I like the part where they don't sit on a connection all the time
00:42 pseudomonas I actually have to alter the defaults to enable the server to listen
00:43 whytewolf pseudomonas: yeah for my chrony config i posted that would be lines 30-32
00:43 shoemonkey joined #salt
00:43 pseudomonas ntp is also just the current state I decided to work on since it's fairly low risk if I mess it up, I assume I'll end up needing similar logic of "if A then not B" at some point downt the road
00:44 devopsprosiva archive.extracted is trying to create the directory in the name field. Is there an option to not create the directory but just extract the archive to the directory?
00:53 cliluw joined #salt
00:53 mark_____ joined #salt
00:54 mark_____ hey guys, has anyone had any luck with salthiera and merging yaml maps?
00:55 mark_____ for example, two different yaml files, with the same map name but different contents
00:55 mark_____ currently it just overwrites the first one with the second
00:55 N-Mi joined #salt
00:55 N-Mi joined #salt
00:56 mark_____ for example http://pastebin.com/Edec77Xj
00:57 mark_____ loading both those files in salthiera.yaml in order would mean that moo only contains the values from the last file loaded instead of a combination of the two
00:57 N-Mi joined #salt
00:58 mark_____ I tried things like adding a combine.yaml file that loads last and does moo: << [ moo1, moo2 ]
00:58 mark_____ but that doesn't work
01:00 mark_____ the workaround is to just name them differently but that really stinks :/
01:22 Muchoz This mentions that the mysql authentication in the minion config can be overriden: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.mysql_user.html I don't see any mysql authentication in the minion config.
01:23 baweaver joined #salt
01:23 grumm_servire joined #salt
01:29 whytewolf Muchoz: yes. well did you setup mysql as per the configure: step that says "See salt.modules.mysql for setup instructions."
01:31 whytewolf Muchoz: it is also possable you setup the configuration through pillar [which i typically do]
01:31 Muchoz whytewolf, thank you
01:31 Muchoz Yes
01:32 Muchoz Currently I've got this for setting up the mysql root: if a specific env variable is not set, change the root password and then set the env variable.
01:32 jgm3 joined #salt
01:32 Muchoz Is there perhaps a better way?
01:32 akhter joined #salt
01:32 whytewolf Muchoz: what distro? I have only setup mysql on ubuntu
01:33 Muchoz Ubuntu 14.04
01:33 cliluw joined #salt
01:33 whytewolf ahhh okay. one sec let me see if i have my ubuntu stuff still.
01:33 Muchoz Currently I've got a Fabric script that uses the debconf stuff but that is a pain
01:34 Muchoz (Switching this project to Salt)
01:34 whytewolf I use debconf stuff in salt.
01:34 whytewolf but that is for first time setup
01:35 Muchoz Before your pkg.installed then?
01:35 Muchoz Cause that might be easier
01:36 whytewolf Muchoz: https://gist.github.com/whytewolf/6526bfc300ba8f583be6
01:37 jasondotstar joined #salt
01:37 JPaul joined #salt
01:37 Zachary_DuBois joined #salt
01:37 Muchoz Shouldn't you clear it too?
01:37 kusams joined #salt
01:37 whytewolf and i have this in pillar for the minion mysql.default_file: '/etc/mysql/debian.cnf'
01:37 Muchoz "echo PURGE | debconf-communicate mysql-server"
01:38 whytewolf eh, if you want. I was always setting up on a fresh install
01:38 Muchoz You can never be secure enough
01:39 whytewolf besides the salt makes sure the debconf database is set to the setting.
01:39 Muchoz Thank you though
01:39 whytewolf if it isn't the right setting it changes it to the correct setting
01:42 whytewolf honestly, if they can read debconf. they can get into the debian maint conf file anyway
01:43 Muchoz Yaa......
01:43 whytewolf as well as run salt-call pillar.get
01:44 Muchoz You're right
01:46 Muchoz whytewolf, can I use jinja in the minion config?
01:46 whytewolf no
01:46 whytewolf thats why i tend to use pillars for minion config
01:46 Muchoz How do I encrypt the password in there then?
01:47 Muchoz Any documentation to show what you mean?
01:47 ruxu joined #salt
01:47 aqua^mac joined #salt
01:47 whytewolf [99% of the minion config items can be accessed if they have pillars that are the same name]
01:48 Muchoz Example? I'm not really getting it
01:48 antpa joined #salt
01:48 whytewolf mysql.default_file: '/etc/mysql/debian.cnf'
01:48 whytewolf i have that as a pillar in my setup,
01:48 Muchoz and then a pillar called mysql?
01:48 Muchoz With default_file : '...'
01:48 whytewolf no that line is the pillar
01:49 Muchoz In any pillar?
01:49 whytewolf yeah. the pillar data gets all combined together
01:49 Muchoz Alright, thank you. Let's give it a shot.
01:51 whytewolf Muchoz: https://gist.github.com/whytewolf/bbb0b2be6ff9d1b77db3
01:51 whytewolf kinda like that
01:52 whytewolf i had a seperate script that i don't show here that builds those databases;
01:52 Muchoz The default file is the location of the config?
01:52 tracphil joined #salt
01:52 whytewolf Muchoz: mysql under debian has a conf file there that has a maint account
01:52 whytewolf ubuntu has it also
01:53 Muchoz Yup, I see it
01:53 whytewolf salt knows how to use those config files to login
01:53 Muchoz But to have a custom password
01:54 whytewolf oh i setup users elsewhere
01:54 Muchoz It's just for root
01:54 Muchoz Or I can just create a new user with all privileges
01:54 whytewolf you can create accounts with all privs
01:55 whytewolf I typically create a few
01:55 whytewolf one for each database that is limited to the data base. then an account that isn't root but that i have access for
01:55 Muchoz Why is there a mysql password var in your pillar  if you point to that file?
01:56 whytewolf thats for the debconf
01:56 Muchoz when*
01:56 dendazen joined #salt
01:56 Muchoz Is the password in debian.conf the hashed version of 'password'?
01:56 whytewolf other wise the mysql install sits asking for a password for root
01:57 whytewolf no, i don't think the user is root
01:57 Muchoz Oh ya I see
01:57 Muchoz Oh now I get it
01:58 Muchoz Thank you very much!
01:59 whytewolf no problem
01:59 Muchoz You learn something new every day
02:02 whytewolf if you really wanted to get fancy you could create a random password with jinja to fill in the debconf. [since salt is not really using that account] and then create a super user with mysql_user
02:03 Muchoz Meeh
02:06 RandyT_ joined #salt
02:06 notnotpe_ joined #salt
02:06 hal58th_ joined #salt
02:07 Eureka70_ joined #salt
02:10 EvaSDK_ joined #salt
02:11 BogdanR_ joined #salt
02:12 justanot1eruser joined #salt
02:14 joe__n joined #salt
02:15 garphyx joined #salt
02:15 Vaelatern joined #salt
02:15 armyriad joined #salt
02:18 antpa joined #salt
02:22 hoonetorg joined #salt
02:24 debian112 joined #salt
02:25 bhosmer_ joined #salt
02:27 joshin joined #salt
02:27 joshin joined #salt
02:30 jimklo_ joined #salt
02:31 michelangelo joined #salt
02:31 shaggy_surfer joined #salt
02:39 hasues joined #salt
02:39 hasues left #salt
02:46 hightekvagabond joined #salt
02:46 Muchoz I still have to look into encrypting my pillars with gpg (no time atm, will do before push). But files can also be encrypted like pillars, righht?
02:48 Bryson joined #salt
02:52 snc joined #salt
02:58 coderMe joined #salt
03:01 evle joined #salt
03:03 Muchoz_ joined #salt
03:05 penguinpowernz q
03:11 cyborg-one joined #salt
03:11 antpa joined #salt
03:11 joe__n joined #salt
03:13 pcdummy joined #salt
03:13 pcdummy joined #salt
03:19 bhosmer joined #salt
03:20 mgresser joined #salt
03:20 joe__n joined #salt
03:21 BogdanR joined #salt
03:33 antpa joined #salt
03:38 mavhq joined #salt
03:45 coderMe joined #salt
03:46 totzky joined #salt
03:47 ramteid joined #salt
03:48 genediazjr joined #salt
03:52 cberndt joined #salt
03:52 malinoff joined #salt
03:54 erjohnso joined #salt
03:57 quasiben joined #salt
03:58 quasiben joined #salt
04:01 kusams joined #salt
04:04 aqua^c joined #salt
04:08 ffredrikk joined #salt
04:08 treaki_ joined #salt
04:14 bhosmer joined #salt
04:21 akhter joined #salt
04:26 petercommand joined #salt
04:26 anmol joined #salt
04:35 danderson left #salt
04:39 antpa joined #salt
04:40 antpa joined #salt
04:43 grumm_servire joined #salt
04:56 kshlm joined #salt
04:56 doorsnsardines joined #salt
04:58 doorsnsardines Hi everyone, I'm having a bit of trouble with a debian host. It's saying that pillars are not available. pillar.ls gives me "'pillar.ls' is not available." This is my only debian host on hand, so I'm not sure if it's the distro or not, but it's also my only minion with this issue. Any suggestions on what I can check here?
05:03 ruxu joined #salt
05:05 alexlatchford joined #salt
05:06 Guest7219 joined #salt
05:07 alexlatchford Hi all, just turned on the debug logging on my salt-master and looking at the logs looks like it's trying to pull remote gitfs every minute. Is that normal behaviour? http://pastebin.com/z7PTik4M
05:08 bhosmer joined #salt
05:08 alexlatchford Or is it just setting the locks and not pulling, I'm getting intermittent failures that github is timing out every once in a while so I was wondering what exactly is happening in that 1 minute cron job. Is there any docs out there I can read up on
05:09 ffredrikk joined #salt
05:22 malinoff joined #salt
05:23 totzky joined #salt
05:24 nethershaw joined #salt
05:28 iggy doorsnsardines: what version?
05:30 doorsnsardines iggy: salt-minion 2014.1.13 (Hydrogen)
05:30 doorsnsardines and salt 2015.8.5 (Beryllium) on the master
05:30 iggy that's at least new enough to have pillars, but still pretty old
05:31 iggy yeah, you generally want to keep everything the same version if possible
05:31 doorsnsardines I could build it from source I suppose, but that's not ideal compared to apt
05:31 iggy there's a repo provided by saltstack
05:31 doorsnsardines especially because the salt minion state is probably going to interfere when the pkg.latest runs
05:33 doorsnsardines oh, I should go find that repo
05:33 iggy repo.saltstack.com iirc
05:33 doorsnsardines is Beryllium reasonably new?
05:34 iggy it's the latest
05:34 doorsnsardines it's a heavier element so it's got to be good
05:34 totzky joined #salt
05:37 doorsnsardines alright, sounds like I need to do a grains check to see if something is debian and lay down an extra apt source
05:37 doorsnsardines is that a likely cause of the pillar problem though?
05:38 doorsnsardines I'd like to try and get that debugged too, it blocks highstate from running on that minion since jinja hits a pillar get and freaks out
05:39 iggy I'm not sure... I know there are issues running that many versions apart, but that's not one I would expect
05:39 doorsnsardines well, I can hand jam the new repo in and try again
05:41 joe__n joined #salt
05:42 doorsnsardines iggy: spotted a small problem with using the salt repo
05:42 doorsnsardines there's no arm build
05:44 ffredrikk joined #salt
05:46 cyborglone joined #salt
05:46 doorsnsardines my debian is not x86
05:47 doorsnsardines plus I have some sparc64 that I might be expanding salt into
05:49 rdas joined #salt
05:54 iggy good luck with all that
05:54 iggy downgrade your master?
05:56 tehsu i'm using smtp returner, and one of my servers is showing, The renderer "" is not available
05:57 fxhp joined #salt
05:58 kshlm joined #salt
05:59 jjamez joined #salt
05:59 jjamez hi
06:02 bhosmer_ joined #salt
06:03 totzky joined #salt
06:04 doorsnsardines iggy: yeah, not the best mix, but not something I can easily change
06:05 doorsnsardines I suppose I could run a build from source, so far that seems to be the best option
06:05 doorsnsardines it's python, so the build time will be nil
06:06 doorsnsardines just no fancy apt integration
06:10 voidspacexyz joined #salt
06:11 joe__n joined #salt
06:12 zer0def joined #salt
06:12 antpa joined #salt
06:18 voidspacexyz joined #salt
06:19 pwalsh joined #salt
06:25 voidspacexyz joined #salt
06:26 gdot joined #salt
06:30 rdas joined #salt
06:36 kshlm joined #salt
06:36 anmol joined #salt
06:39 keimlink joined #salt
06:42 malinoff joined #salt
06:46 jxm_ joined #salt
06:47 jimklo joined #salt
06:48 rotbeard joined #salt
06:56 bhosmer_ joined #salt
06:58 ruxu joined #salt
07:00 JDiPierro joined #salt
07:00 akhter joined #salt
07:03 pseudomonas left #salt
07:08 grumm_servire joined #salt
07:14 giantlock joined #salt
07:23 mavhq joined #salt
07:26 pwalsh joined #salt
07:26 nebuchadnezzar joined #salt
07:35 k_sze[work] joined #salt
07:37 k_sze[work] How do I target multiple globs?
07:38 k_sze[work] e.g. `salt -L 'foo*,bar*,bla*'` doesn't work.
07:39 MTecknology -C  ... I think
07:39 MTecknology k_sze[work]: compound matching
07:40 aqua^c joined #salt
07:40 impi joined #salt
07:40 iggy ^ -C 'foo* or bar* or bla*'
07:41 iggy or pcre if you prefer
07:41 k_sze[work] Got it. Thanks.
07:44 ffredrikk joined #salt
07:47 antpa joined #salt
07:50 iggy doorsnsardines: you should open an issue and see if the devs can make other arch packages
07:51 bhosmer joined #salt
07:54 KermitTheFragger joined #salt
07:57 jhauser joined #salt
07:59 kawa2014 joined #salt
08:02 antpa joined #salt
08:06 felskrone joined #salt
08:08 fredvd joined #salt
08:15 grumm_servire joined #salt
08:23 slav0nic joined #salt
08:24 malinoff joined #salt
08:25 GreatSnoopy joined #salt
08:32 jhauser joined #salt
08:34 ruxu joined #salt
08:36 dariusjs joined #salt
08:37 grumm_servire joined #salt
08:39 Chuck_0326 joined #salt
08:42 maartenpi joined #salt
08:45 bhosmer_ joined #salt
08:46 krymzon joined #salt
08:46 alexlist` joined #salt
08:46 EvaSDK_ joined #salt
08:46 EvaSDK_ joined #salt
08:47 cangiani joined #salt
08:48 GrueMaster joined #salt
08:49 Eureka703 joined #salt
08:51 cyborgIone joined #salt
08:53 cliluw joined #salt
08:55 neilf__ joined #salt
08:57 impi joined #salt
08:57 rdas joined #salt
08:58 paolo joined #salt
08:58 krymzon_ joined #salt
08:58 pppingme joined #salt
08:58 dijit joined #salt
09:01 cyborg-one joined #salt
09:05 geomacy joined #salt
09:06 LondonAppDev joined #salt
09:10 jcastle joined #salt
09:13 cyborglone joined #salt
09:18 ronnix joined #salt
09:21 cyborgIone joined #salt
09:22 totzky joined #salt
09:31 TyrfingMjolnir joined #salt
09:33 mavhq joined #salt
09:39 bhosmer joined #salt
09:41 antpa joined #salt
09:41 cyborglone joined #salt
09:43 krymzon joined #salt
09:44 tracphil joined #salt
09:47 cyborglone joined #salt
09:47 ronnix joined #salt
09:47 jhauser joined #salt
09:48 krymzon_ joined #salt
09:48 esharpmajor joined #salt
09:51 djdexter joined #salt
09:51 djdexter Does anyone know if i can use conditions in pillar files?
09:51 djdexter like {% if salt['environ.get']('test1') == 'test2' %}
09:52 joe__n joined #salt
09:54 AndreasLutro djdexter: yes, you can, but be aware that all module calls will be ran on the salt master, not the minion, so try and avoid that
09:54 AndreasLutro djdexter: grains are the minions' though
09:54 djdexter Okay :)
09:55 djdexter Thanks a lot
09:58 antpa joined #salt
10:00 denys joined #salt
10:02 ruxu joined #salt
10:03 jhauser joined #salt
10:08 blue joined #salt
10:11 aantony joined #salt
10:11 keimlink joined #salt
10:18 jhauser joined #salt
10:18 slav0nic joined #salt
10:20 djdexter AndreasLutro: I'm trying to access grains from pillar using {% if grains['test1'] == 'test2' %} and it comes like it does not reads the value
10:20 djdexter Am i doing it correctly
10:21 djdexter I checked if grains exist on minion using salt 'MyMinion' grains.items | grep test1 -C 1
10:21 djdexter and i confirmed that grains is there
10:22 aqua^c joined #salt
10:22 AndreasLutro yes, that is correct
10:23 amcorreia joined #salt
10:23 djdexter Hmm it seems that while i'm applying the state it does not work :/
10:23 djdexter i cleaned caches also
10:23 djdexter do you have some idea?
10:26 antpa joined #salt
10:26 djdexter The condifition works for salt sls file but not for pillar ones.
10:33 bhosmer joined #salt
10:37 akhter joined #salt
10:41 giantlock joined #salt
10:45 abednarik joined #salt
10:46 cyborg-one joined #salt
10:47 mavhq joined #salt
10:54 ruxu joined #salt
10:55 fracklen joined #salt
10:56 fracklen left #salt
10:57 fracklen_ joined #salt
11:00 fracklen_ I'm using salt-cloud (cloud.create) from a runner, and would like to add script-args to the bootstrap-script. Is this possible?
11:01 maartenpi joined #salt
11:05 CrummyGummy joined #salt
11:06 CrummyGummy joined #salt
11:08 tracphil joined #salt
11:08 geomacy joined #salt
11:13 av_ joined #salt
11:14 CeBe1 joined #salt
11:18 B1nny Hello, is anyone aware of some sort of compatibility sheet for salt-minions and masters? I'm wondering if the salt-minion package in the debian jessie stable repos (2014.1.13) is compatble with the salt-master package from the saltstack repositories (2015.8.5)
11:19 quasiben joined #salt
11:20 AndreasLutro if there was such a sheet, I wouldn't trust it
11:23 CrummyGummy https://github.com/saltstack-formulas/nginx-formula
11:24 CrummyGummy Dumb question, how do I setup vhosts with that? There's basically no documentation that I can see.
11:28 bhosmer joined #salt
11:30 ronnix joined #salt
11:32 malinoff joined #salt
11:33 tracphil joined #salt
11:35 Rumbles joined #salt
11:39 catpig joined #salt
11:39 AndreasLutro CrummyGummy: check pillar.example
11:39 mavhq joined #salt
11:40 CrummyGummy AndreasLutro: Thanks
11:45 kshlm joined #salt
11:45 dendazen joined #salt
12:07 ze- question. in a show_highstate, does the order values represent the order in which salt plans to execute the states?
12:14 kanguru_au joined #salt
12:21 voidspacexyz joined #salt
12:22 bhosmer joined #salt
12:23 ze- or... how to know in which order state tries to resolve/run the states ?
12:27 ruxu joined #salt
12:27 xf10e joined #salt
12:27 xf10e hi *
12:28 AndreasLutro ze-: state.highstate test=True is the easiest way, but even that won't be 100% accurate
12:31 ze- AndreasLutro: well, I seems to have a bug. A require that does not seem to be honorred.
12:32 ze- I should have: 1. install python mysql ; 2. refresh modules (requires: 1) ; 3. mysql state (require 2), but 3 is executed before 1! :(
12:33 ze- when running the highstate, I end up having a crash (KeyError: 'mysql_database.present') instead of a proper result...
12:33 AndreasLutro can you show the states?
12:34 ze- they are generic, but i can try to extrat the revelant from a show_highstate (or show_lowstate)
12:36 ze- http://pastebin.com/x06nvUvx
12:38 AndreasLutro ze-: not sure how useful that is. but you could try removing the require pkg: percona-server-server from python-mysqldb
12:39 AndreasLutro personally, for python modules that salt depends on, I manually specify order: first
12:39 AndreasLutro that seems to work more reliably
12:40 ze- I have repository being changed long before that. I would rather avoid having order: first anywhere. :)
12:40 giantlock joined #salt
12:41 fracklen joined #salt
12:41 ze- Would salt get "best match", or crash a "cyclic dependencies" if dependencies can't be met ?
12:53 lompik joined #salt
12:54 ggoZ joined #salt
12:55 AndreasLutro I don't know what "best match" implies, but yes, salt will exit early if there are circular dependencies
12:58 akhter joined #salt
12:58 Chuck_0326 joined #salt
12:58 fracklen joined #salt
13:03 cangiani joined #salt
13:04 ze- AndreasLutro: thanks. By best match, I implied "get somewhere, breaking dependencies, for the sake of getting things ordered"... but if it refuses circular dependencies, it should be fine... somehow.
13:07 CrummyGummy What's the logic behind having the pillar data in a different git repo to the state configurations?
13:10 shiriru joined #salt
13:11 AndreasLutro CrummyGummy: no real reason... though it makes gitfs behave better
13:11 AndreasLutro actually I don't think that's true anymore
13:11 is_null joined #salt
13:12 is_null hi all, how to know if a job started by the reactor failed ?
13:12 CrummyGummy looks like it is, the config I'm looking at references > 2015.8.0 builds
13:12 is_null is there another way than diving into kilometers of logs ? :D
13:13 CrummyGummy can I just give it a dir in the current git repo where the states live? I really don't want to have to configure another one.
13:14 AndreasLutro is_null: https://docs.saltstack.com/en/latest/ref/runners/all/salt.runners.jobs.html#salt.runners.jobs.list_jobs maybe. I use a custom returner that sends a slack notification on all failed jobs
13:16 kusams joined #salt
13:16 bhosmer joined #salt
13:17 is_null AndreasLutro: nice, thanks, how do you check that a job **was** triggered ?
13:18 is_null cause i noticed that sometimes the master doesn't get the event
13:18 is_null rather, the question is: how to know if the master received the event ?
13:21 giannello joined #salt
13:24 emaninpa joined #salt
13:25 AndreasLutro I don't follow. a returner would be triggered when the master receives the event
13:29 bash1235123 joined #salt
13:30 bash1235123 Hi, can I have sleep inside yaml in order to enforce a state to wait lets say 30 seconds ?
13:32 ffredrikk Is it just me, or does the win_network module not set the DNS servers in 2015.8.5?
13:32 Rkp bash1235123: inside yaml? no, it's just a descriptive language, but you can set a require on a cmd.run state with a sleep 30s running on the server I guess?
13:32 bash1235123 ye I thought of that but I don't like it :(
13:33 impi joined #salt
13:33 ffredrikk I'm going to answer my question myself... yes. https://github.com/saltstack/salt/commit/c4c11f8d0e7bd78939911ce0af2e499878935cfe
13:35 patchedmonkey joined #salt
13:36 dendazen joined #salt
13:40 ssplatt joined #salt
13:41 tracphil joined #salt
13:41 hansi joined #salt
13:42 ericof joined #salt
13:43 shoemonkey joined #salt
13:45 zigurat joined #salt
13:46 zigurat Hi guys. Need to keep the list of locales to default and remove all extra locales installed. Thoughts? How can I make sallt do a diff from output of command and lets say I hardcode the default values in a file/
13:50 edrocks joined #salt
13:51 jmedinar joined #salt
13:54 cangiani joined #salt
13:54 rem5 joined #salt
13:55 jmedinar Question: Is there any way or module to monitor a "string" on a log file to launch a reactor or alert.
13:55 bluenemo joined #salt
13:55 fracklen joined #salt
13:56 numkem joined #salt
13:58 fracklen joined #salt
13:58 subsignal joined #salt
13:59 abednarik joined #salt
14:00 subsignal joined #salt
14:03 fracklen joined #salt
14:05 mapu joined #salt
14:05 JDiPierro joined #salt
14:08 justanotheruser joined #salt
14:10 cpowell joined #salt
14:11 cpowell joined #salt
14:17 robinsmidsrod joined #salt
14:18 xf10e jmedinar: using https://pypi.python.org/pypi/watchdog for a beacon to fire an event?
14:18 robinsmidsrod joined #salt
14:19 ronnix joined #salt
14:19 pwalsh joined #salt
14:21 jmedinar Thanks xf10e checking...
14:21 ffredrikk joined #salt
14:22 bhosmer joined #salt
14:23 bhosmer Does anyone have an example of running highstate in a reactor using the python renderer? I need to use python because I've got some logic that couldn't be done in a simple yaml file. I'm getting an error though. http://pastebin.com/gjkTBLbA
14:24 DammitJim joined #salt
14:24 robinsmidsrod joined #salt
14:27 M-MadsRC joined #salt
14:27 xf10e bhosmer: do you have a "#!py" in the first line?
14:28 inad922 joined #salt
14:31 mavhq joined #salt
14:31 bhosmer Yeah, I just realized what that error meant, I had !#py|jinja|yaml if I just use !#py the error goes away. (I've got more errors, but they look like missing pillar variables.
14:31 bhosmer The code itself shoudl run highstate though right? I've implemented it properly?
14:33 tracphil joined #salt
14:34 kshlm joined #salt
14:37 xf10e looks fine for py-rendered state file *shrug*
14:40 zsoftich4 joined #salt
14:41 nidr0x joined #salt
14:42 abednarik joined #salt
14:42 bhosmer Thanks for the sanity check!
14:44 M-liberdiko joined #salt
14:44 perfectsine joined #salt
14:44 shoemonkey joined #salt
14:47 giantlock joined #salt
14:48 winsalt joined #salt
14:51 zmalone joined #salt
14:51 JDiPierro joined #salt
14:51 cangiani joined #salt
14:54 Muchoz joined #salt
14:55 Tyrm joined #salt
14:58 joshin joined #salt
14:58 joshin joined #salt
14:59 numkem joined #salt
15:00 _mel_ joined #salt
15:01 morissette joined #salt
15:01 Tyrm joined #salt
15:03 kusams joined #salt
15:04 nwertzberger joined #salt
15:04 bhosmer_ joined #salt
15:05 cangiani joined #salt
15:05 hasues joined #salt
15:05 andrew_v joined #salt
15:05 nwertzberger my apologies here, i am not quite clear on what's the "best" way to go about grouping servers from an external inventory.  i really like the nodegroup syntax, but i don't think i can actually define that from an external inventory. Is it to use pillar data globs?
15:05 titilambert joined #salt
15:06 impi joined #salt
15:06 dijit hey, if I'm trying to fix a variable and assign it to another variable
15:06 dijit can I do {% set number = {{decimal_number}}|replace(".","") %}
15:07 dijit it can be a string, I'm just trying to remove the period, not flatten it or anything.
15:07 dijit (or round it)
15:07 CrummyGummy Hi, My pillar is being pulled from git. The files are there but if I run `salt '*' pillar.data` there seems to be no data.
15:07 _JZ_ joined #salt
15:08 CrummyGummy any idea where I can even begin to look?
15:08 hasues left #salt
15:08 xf10e dijit: no {{ }} inside of {% %}
15:09 dijit you can do salt '*' saltutil.pillar_refresh
15:09 dijit xf10e: oh?
15:09 CrummyGummy I did that, It came back as
15:09 xf10e dijit: and the jinja filters work in {% %}, too
15:09 CrummyGummy waspbox3:
15:09 CrummyGummy ------------
15:10 winsalt have you matched the pillar file to a minion in the pillar top.sls?
15:10 rm_jorge joined #salt
15:11 CrummyGummy base: *:
15:11 CrummyGummy should match anything right?
15:11 rdas joined #salt
15:11 CrummyGummy I don't need to change that to production do I?
15:12 Buzer Anyone know if it's somehow possible to define same value multiple times in pillar when using yamlex?, e.g. https://gist.github.com/eljasala/3a445c6724ac3d05a900
15:12 winsalt '*' would match all minions, and then you need to add the name of the pillar file under there
15:14 CrummyGummy Thanks, I'll put together an example tomorrow. I have done that, without a proper example I'm wasting your time.
15:16 Buzer ah, actually the error came from state where I used that as key, so let me repahrse: Is it possible to remove duplicates from array in Jinja?
15:17 amcorreia joined #salt
15:17 abednarik joined #salt
15:18 mpanetta joined #salt
15:21 perfectsine joined #salt
15:21 cpowell joined #salt
15:21 M-MadsRC joined #salt
15:23 armyriad joined #salt
15:24 antpa joined #salt
15:25 jnilsson joined #salt
15:25 ruxu joined #salt
15:26 quasiben joined #salt
15:27 dijit xf10e: yes, that was my issue, thank you very much. :)
15:27 RabidCicada joined #salt
15:28 xf10e you're welcome
15:29 cognos joined #salt
15:31 ALLmightySPIFF joined #salt
15:32 RabidCicada Hey there everyone.  bootstrap.sh is failing on all my Ubuntu15.10's.  Anyone have a clue why?  get a bunch of messages similar to "W: Failed to fetch http://repo.saltstack.com/apt/ubuntu/ubuntu15/latest/dists/wily/main/binary-amd64/Packages  404  Not Found [IP: 198.199.77.106 80]"
15:32 RabidCicada then finally "gpg: no valid OpenPGP data found.
15:32 RabidCicada * ERROR: Failed to run install_ubuntu_stable_deps()!!!
15:32 RabidCicada * DEBUG: Removing the logging pipe /tmp/bootstrap-salt.logpipe"
15:35 ronnix joined #salt
15:35 zmalone sounds like a problem with bootstrap.sh
15:35 zmalone salt doesn't package deb files for 15
15:38 M-liberdiko joined #salt
15:40 RabidCicada ahh...so I'm just trying to get salt on 15 and salt isn't making 15 packages yet?  Is there a plan to?  Or is there no planned 15 support?
15:41 zmalone I doubt there are plans to make Ubuntu 15 packages, I suspect they'll go straight to 16.04, the next LTS release
15:41 RabidCicada thankyou much....I haven't kept up with salt stuff in a while...so I didn't know these messages hinted at no 15 support
15:41 RabidCicada If I was familiar with even apt repo stuff I probably could have figured out...but alas....I'm not familiar with those details either
15:41 RabidCicada :)
15:41 RabidCicada thanks!
15:41 zmalone Salt should work from source, python packaging tools, and stuff like that
15:41 netcho_ joined #salt
15:42 zmalone but it probably won't appear on repo.saltstack.com
15:42 RabidCicada If I'm trying to use bootstrap.sh...would the git option work then?
15:42 zmalone It probably should
15:42 Brew joined #salt
15:44 PeterO joined #salt
15:44 RabidCicada giving bootstrap.sh -P git a go:)
15:44 RabidCicada I assume pulling some stuff from pip would be a good fallback also
15:46 RabidCicada beautiful...than worked
15:47 Muchoz joined #salt
15:47 aqua^c joined #salt
15:51 ALLmightySPIFF joined #salt
15:52 Rockj joined #salt
15:53 perfectsine joined #salt
15:56 nebuchadnezzar joined #salt
15:56 Charly_ joined #salt
15:59 bhosmer_ joined #salt
15:59 Charly_ hello
15:59 racooper joined #salt
15:59 mavhq joined #salt
16:00 CrummyGummy joined #salt
16:00 evle1 joined #salt
16:01 thebwt joined #salt
16:01 edulix joined #salt
16:01 djinni` joined #salt
16:01 ewenig joined #salt
16:02 nledez joined #salt
16:02 nledez joined #salt
16:02 Rkp joined #salt
16:02 JPT joined #salt
16:02 Sacro joined #salt
16:02 ws2k3 joined #salt
16:02 v12aml joined #salt
16:02 nomad_fr joined #salt
16:03 w1gz joined #salt
16:03 xMopxShell joined #salt
16:03 garphy`aw joined #salt
16:03 CustosLimen joined #salt
16:04 [afk]evinquinnyo joined #salt
16:06 spaceSub joined #salt
16:07 yawniek joined #salt
16:07 jfroche joined #salt
16:07 pwalsh joined #salt
16:07 Horgix joined #salt
16:07 WesleyTech joined #salt
16:07 fhh joined #salt
16:08 tonthon joined #salt
16:08 tmmt joined #salt
16:12 Charly_ I was wondering if a release with this merged pull request was available yet
16:12 Charly_ https://github.com/saltstack/salt/pull/29322
16:12 sybix joined #salt
16:12 saltstackbot [#29322]title: add http proxy support for tornado | the tornado backend lacks support for http proxies from environment variables....
16:12 zer0def joined #salt
16:12 zmalone Nope, looks like that went into develop
16:12 Charly_ I have looked through the release notes but have not seen this PR mentioned
16:13 zmalone I believe Saltstack wants to cut 2016.3 in March.
16:13 Muchoz Charly_, best bet is to just use the git repo url in your requirements.txt
16:13 Muchoz (If you really want that feature)
16:14 jfroche joined #salt
16:15 Charly__ joined #salt
16:16 bhosmer joined #salt
16:16 Charly__ Do they post anywhere when they will cut a new release?
16:23 abednarik joined #salt
16:23 eshbaugh joined #salt
16:25 filip__ joined #salt
16:26 skrobul joined #salt
16:27 lothiraldan joined #salt
16:28 LondonAppDev joined #salt
16:29 M-MadsRC joined #salt
16:30 rem5 joined #salt
16:31 jimklo joined #salt
16:32 mavhq joined #salt
16:33 Fiber^ joined #salt
16:39 trave joined #salt
16:40 czchen joined #salt
16:41 NachoDuck joined #salt
16:41 twodayslate joined #salt
16:41 hillna joined #salt
16:41 kutenai joined #salt
16:42 akoumjian joined #salt
16:42 munhitsu_ joined #salt
16:42 ashb joined #salt
16:42 tcolvin joined #salt
16:42 SteamWells joined #salt
16:42 logandg joined #salt
16:43 tpaul joined #salt
16:43 abednarik joined #salt
16:43 akhter joined #salt
16:44 QuickQuestion joined #salt
16:44 imanc joined #salt
16:44 bmcorser joined #salt
16:44 winsalt joined #salt
16:45 disbound joined #salt
16:46 akhter_1 joined #salt
16:46 rem5 joined #salt
16:46 M-liberdiko joined #salt
16:47 tligda joined #salt
16:47 mihait joined #salt
16:47 QuickQuestion Hello everyone, I am considering doing a fresh install of my linux laptop of a new distro. Thus I was looking into the different options of automated installation. I first was considering writing a shell script, but I stumbled upon Salt and so I'm here to ask if anyone here uses it for this purpose and not for server deployment. And if it is the case, is it the best option to learn and apply to have an incremental install/reinsta
16:48 UtahDave joined #salt
16:51 dfinn joined #salt
16:52 Muchoz Does anyone have an example of incorporating the pyenv state with the states like pip and virtualenv?
16:52 Muchoz I only manage to get it working with module.run and pyenv.do which is a pain in the ass.
16:52 dfinn joined #salt
16:53 frankS2 joined #salt
16:53 mrbobbytables joined #salt
16:54 UtahDave Muchoz: can you pastebin what you've tried so far?
16:54 Muchoz UtahDave, well pip.installed and relevant python states that depend on a python version installed with pip or whatever don't work with pyenv.
16:54 akhter joined #salt
16:55 sfz- joined #salt
16:55 SunPowered joined #salt
16:56 Muchoz UtahDave, http://pastie.org/private/d5srdudemb7lwth8c9bziq
16:58 beardedeagle joined #salt
16:59 beardedeagle hey looking for some tips here. we have a team here we onboarded to salt. they are ooming because of EXCEPTIONALLY large return data. unfortunately we cannot put a limit on the return data for them as they need it all. anything we can do to mitigate this. been searching the docs and not seeing anything other then the limiting thing.
17:00 UtahDave Muchoz: what's the error you get with the first pip.installed that's not working?
17:01 Muchoz UtahDave, An importable pip module is required but could not be found on your system. This usually means that the system's pip package is not installed properly.
17:01 Muchoz Because it tries to use the python that is installed by default
17:01 sinonick joined #salt
17:01 UtahDave Muchoz: have you tried this option?   - bin_env: /foo/.virtualenvs/bar/bin/pip
17:02 Muchoz Ya, might just do that and remove the PATH stuff I have done
17:03 doompatrol joined #salt
17:03 UtahDave beardedeagle: Can you give a rough estimate of how large "EXCEPTIONALLY large" is?
17:04 UtahDave Muchoz: looking over the docs, that seems to be the way to specify where you pip environment is
17:05 Muchoz UtahDave, ya. I just wish the pyenv state worked better with the other ones.
17:07 perfectsine joined #salt
17:07 Muchoz UtahDave, setting bin_env to /usr/local/pyenv/shims/pip doesn't seem to work (it contains the pip)
17:10 doompatrol howdy, i'm trying to get an understanding of why the following pillar format isn't working as expected. https://gist.github.com/patroldoom/1a8fdbd92bf3c2b914b4
17:10 mavhq joined #salt
17:11 doompatrol i'm wanting to have a config file get placed on the server depending on it's status and assumed this method would work
17:11 * doompatrol updates gist again
17:11 Muchoz doompatrol, what do you expect to get?
17:12 whytewolf doompatrol:status:staging wouldn't have anything in it since it is the full path including the last item.
17:13 doompatrol Muchoz: i've updated the gist, see the lower section for what i'm trying to do
17:13 doompatrol whytewolf: oic, i've also tried in the state file to do, if state == 'staging', etc - however that didn't work either
17:13 Muchoz You need salt['pillar.get']('doompatrol:status') == 'staging'
17:14 doompatrol fml ill give that another try and see what happens. in the meantime, ty vm
17:14 jfindlay For anyone thinking about going to SaltConf this year, SaltConf16 early registration discount ends tomorrow: http://saltconf.com/register/
17:14 writtenoff joined #salt
17:15 whytewolf Gah. I'm not going to know if i am going to be able to go till at earliest next week :/
17:15 Muchoz jfindlay, no European conferences?
17:16 jfindlay Muchoz: not currently, but if you're interested in organizing a user group, let me know if you need any help
17:16 deniszh joined #salt
17:17 whytewolf Muchoz: they show up to some of the Established euro confs IIRC.
17:17 QuickQuestion left #salt
17:17 Muchoz jfindlay, well I'm kind of a beginner. I don't think I would be of much value
17:19 kermit joined #salt
17:19 Muchoz Anyone got any idea why this isn't working then? http://pastie.org/private/ygzg5lhdwweoczcxjlela
17:19 UtahDave Muchoz: I was at configmgmtcamp last week in Gent, Belgium
17:19 Muchoz Still the same error: "An importable pip module is required but could not be found on your system. This usually means that the system's pip package is not installed properly." but that pip does work
17:20 Muchoz UtahDave, no shit. I live in Ghent
17:20 UtahDave Muchoz: really? were you at that conference?
17:20 Muchoz No, if only I knew there was one
17:20 Muchoz Nothing ever happens here regarding development
17:20 UtahDave Muchoz: dang. it was great.
17:21 Muchoz Belgium is so not-innovativ
17:21 Muchoz e
17:21 ronnix joined #salt
17:21 mavhq joined #salt
17:21 UtahDave Muchoz: http://cfgmgmtcamp.eu/
17:22 Bryson joined #salt
17:22 Muchoz Well it's of no use now :/
17:22 whytewolf there is always next year
17:23 Muchoz Well that's another year
17:23 Muchoz If I haven't moved to the US by then
17:23 Muchoz Innovation, they don't know the word here
17:23 whytewolf yeah they have trouble with that word in las vegas also
17:23 Muchoz But this should work, right? http://pastie.org/private/ygzg5lhdwweoczcxjlela Shouldn't this be reported as a bug then?
17:24 Muchoz bin_env: Absolute path to a virtual environment directory or absolute path to a pip executable.
17:24 whytewolf Muchoz: reading the documentation that should work. I don't see why it wouldn't unless that copy of pip doesn't work
17:24 Muchoz whytewolf, nope tested it
17:26 whytewolf I would say file a bug. cause that should be correct. and the min needed to install virtualenvwrapper in that python
17:26 ruxu joined #salt
17:26 whytewolf 2015.8.5 right?
17:26 Muchoz whytewolf, I'm on develop
17:26 Muchoz I'll switch to stable
17:27 malinoff joined #salt
17:28 UtahDave Muchoz: Yeah, I think that should work.
17:28 spiette joined #salt
17:28 grumm_servire joined #salt
17:33 Muchoz Nope, doesn't work on stable either
17:36 aqua^c joined #salt
17:39 netcho_ joined #salt
17:41 whytewolf bug ala report
17:44 Muchoz UtahDave, https://github.com/saltstack/salt/blob/develop/salt/states/pip_state.py#L113-L117
17:45 Muchoz I think the problem is that I need pip installed on the python version Salt uses
17:45 Muchoz But that is not necessarily the one used
17:45 UtahDave Can you try installing pip on your system python and see if that works?
17:47 deus_ex joined #salt
17:47 Muchoz Yup, trying that now
17:48 Muchoz Yup it works
17:49 mark____ joined #salt
17:49 cpowell joined #salt
17:50 cpowell joined #salt
17:51 mariusv joined #salt
17:51 mrbobbytables hey guys, my apologies if this is kinda dumb, I'm still fairly new to salt. -- When using file.managed in a state. I'm trying to download a specific file from a site (https) -- there is a file with a list of hashes for all the files in that directory. Should specifying the hash file with sources_hashes allow me to download the single file I'm going for?
17:51 mrbobbytables quick example: http://pastebin.com/raw/tvbd9KEp
17:52 mrbobbytables When I try, I keep getting: "Unable to determine upstream hash of source file"
17:52 UtahDave Muchoz: is having pip installed in your system python OK?  Otherwise, maybe we should open an issue to not block usage if the system python doesn't have pip
17:52 Muchoz I got the same question because the hash can change ^ I currently just download it and put it in the config mrbobbytables
17:53 Muchoz UtahDave, it needs to be installed on the minion
17:53 Muchoz its system python
17:53 hightekvagabond joined #salt
17:53 UtahDave right
17:54 fracklen joined #salt
17:54 shaggy_surfer joined #salt
17:54 UtahDave try  `source_hash`   not  `source_hashes`
17:54 mrbobbytables Muchoz: that's the other possible solution, I'd just like to be able to have it download without having to populate new hashes in configs
17:54 UtahDave mrbobbytables:
17:54 mrbobbytables UtahDave: doh, thanks
17:54 Muchoz Oh wait you have hashes, vm
17:54 ALLmightySPIFF joined #salt
17:54 Muchoz nvm
17:55 mrbobbytables I swear I tried that -- ah well, pebcak error
17:55 mrbobbytables thanks
17:56 jfindlay the best and worst error
17:58 liskl joined #salt
17:58 mavhq joined #salt
17:59 hal58th joined #salt
18:03 impi joined #salt
18:05 implicitnewt joined #salt
18:07 krymzon joined #salt
18:08 implicitnewt Running rhel 6.7, I just upgraded to salt 2015.5.8 and the minion is logging You should upgrade pyOpenSSL to at least 0.14.1 to enable the use of X509 extensions now.  RHEL6 only has pyopenssl-0.13.1 available in the repos.  It appears to be causing some states to fail like pkg_latest_version
18:08 implicitnewt I do not know what all states are no longer working
18:08 Rumbles joined #salt
18:09 implicitnewt Other minions still running 2015.5.5-1 are not affected in any way
18:09 Muchoz Anyone used the virtualenv state with pyenv? There are some undocumented arguments like venv_bin: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.virtualenv_mod.html
18:12 Muchoz Nvm, seems to just pass it onto https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.virtualenv_mod.html
18:14 zmalone implicitnewt: They added a dependency to Salt when they added the x509 modules, but didn't package it or make it a requirement for installing the salt packages
18:14 zmalone salt runs fine without it, provided you don't use to x509 module
18:14 zmalone it just spams your log files
18:15 zmalone I didn't know that the x509 module had made it back into 2015.5 too, that's disappointing
18:17 giantlock joined #salt
18:17 implicitnewt ok.  Could it be causing the state not returning correctly?  I haven't tried tracking that any further or know what else might not be working
18:18 zmalone I wouldn't think so, but other things may also be broken
18:18 mavhq joined #salt
18:19 ecrane joined #salt
18:19 implicitnewt guess I'll live with it for the time being until I get time to dig any further.  thanks for the info
18:19 zmalone Are you sure you didn't get 2015.8 instead?
18:20 zmalone My answer looks wrong, I don't see that module in https://github.com/saltstack/salt/tree/2015.5/salt/states , but that was the module that threw that error for me on 2015.8.
18:20 shaggy_surfer joined #salt
18:20 ecrane What's a good salt method to check to see if a minion can reach another server on a given port? (Eg. can the minion reach the mysql server 'A' on tcp port '3307')
18:21 toanctruong joined #salt
18:21 whatapain ecrane: cmd.run netcat then echo $? for the result return code?
18:21 gtmanfred ecrane: i know network.ping exists
18:22 UtahDave ecrane: you could use the http.query function  or use cmd.run to use whatever tool you normally would.  netcat, etc
18:22 brianfeister joined #salt
18:22 gtmanfred ecrane: network.connect can query a port
18:22 implicitnewt salt-minion --version  give me salt-minion 2015.5.8 (Lithium)
18:22 gtmanfred def connect(host, port=None, **kwargs):
18:22 gtmanfred '''
18:22 gtmanfred Test connectivity to a host using a particular
18:22 gtmanfred port from the minion.
18:22 gtmanfred salt \* network.connect <ip> <port
18:23 UtahDave gtmanfred: yeah, I just saw network.connect in the docs.   Looks nice
18:23 gtmanfred BAM
18:23 ecrane awesome, thanks!
18:23 zmalone https://github.com/saltstack/salt/tree/2015.8.4.follow_up that's an odd branch
18:24 ecrane (idk how I missed that when I scanned the docs before coming hinere)..... network.connect is perfect. Thanks!
18:24 gtmanfred :)
18:24 gtmanfred i just found network.ping the other day, so it was a good guess that .connect existed <3
18:25 whatapain neat
18:25 notnotpeter joined #salt
18:27 gtmanfred return_boolean=True
18:27 toanctruong Hey guys, is this feature only available in the salt-cloud suite? https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.s3.html
18:27 Tyrm_ joined #salt
18:27 gtmanfred toanctruong: no, it should be available from salt cli
18:27 gtmanfred and you can use it as your file root
18:27 toanctruong hmm
18:28 toanctruong I get this error http://pastebin.com/TDWchm8p
18:28 baweaver joined #salt
18:29 toanctruong Not sure how to move beyond that, I'm thinking maybe the minion isn't able to "assume" the assigned IAM role. But AWS CLI is installed and I'm able to access S3 and do what I need to do from there
18:30 pduersteler joined #salt
18:30 rihannon joined #salt
18:31 denys joined #salt
18:31 Tyrm joined #salt
18:32 Tyrm joined #salt
18:32 mavhq joined #salt
18:33 pduersteler Struggling a bit with the basics.. what's the difference in parsing, respectively, how do I parse the former one (with dashes, which is more similiar to the states I'm writing)? https://gist.github.com/anonymous/7f73b10f23c6128b9c7c . using the classical salt['pillar.get']('foo', {}).iteritems() won't do the trick for me
18:36 mihait joined #salt
18:36 zmalone jfindlay: https://github.com/saltstack/salt/tree/2015.8.4.follow_up it looks like some of saltstack might be on the wrong branch
18:36 zmalone (saltstack the company)
18:37 zmalone or you've got something odd going on that I don't understand
18:38 tpaul joined #salt
18:41 krymzon joined #salt
18:47 fracklen joined #salt
18:49 zmalone joined #salt
18:53 xMopxShell joined #salt
18:53 mavhq joined #salt
18:57 myraft joined #salt
18:57 MindDrive joined #salt
18:57 numkem joined #salt
18:57 shoemonkey joined #salt
18:58 myraft hi, following the tutorial, have a question. when I run salt '*' state.highstate -t 60 , I get an error - No Top file or external nodes data matches found.
18:58 myraft is there something to do on the minion before running the command - like create a top.sls file
18:59 UtahDave myraft: You have to create a top file on your master in order to use the highstate function
18:59 UtahDave by default at `/srv/salt/top.sls`
18:59 myraft @utahdave - thanks
19:00 myraft @utahdave, I did create a top.sls file in /etc/salt/ directory
19:00 UtahDave move that to /srv/salt/top.sls
19:00 myraft that is where I modified the file_roots in master file
19:00 UtahDave oh
19:00 UtahDave ok.  did you restart the salt-master daemon?
19:00 myraft @utahdave: yes sir.  Did restart it
19:01 UtahDave myraft: can you pastebin your top.sls?  (sanitized)
19:02 wendall911 joined #salt
19:02 myraft @utahDave: http://pastebin.com/MmJDhqvD
19:03 hal58th joined #salt
19:03 numkem joined #salt
19:03 myraft @utahdave: it is the exact as in the tutorial. The only thing is changed the /etc/salt/master file_roots to the same
19:05 shoemonk_ joined #salt
19:06 UtahDave myraft: hey I have to run to a lunch meeting.  I'll look at that as soon as I get back.
19:07 Muchoz joined #salt
19:09 mavhq joined #salt
19:10 tkharju joined #salt
19:10 baweaver joined #salt
19:12 jfindlay zmalone: the latter, I'm afraid
19:13 xoritor joined #salt
19:13 jfindlay zmalone: it's a branch created to work out some regressions for releasing 2015.8.7
19:13 Lionel_Debroux joined #salt
19:13 krymzon joined #salt
19:13 zmalone yuck, good luck.
19:14 zmalone I guess .8.6 went off the tracks then
19:15 slav0nic_ joined #salt
19:16 gimpy2938 joined #salt
19:16 jfindlay yeah, there were a few issues
19:17 MikeyYeahYeah joined #salt
19:18 pduersteler When I have an orderedDict that has a key and a value (gathered from "- foo: bar" pillar data), how would one output key and value without having to use "for" ?
19:18 slav0nic_ joined #salt
19:19 doompatrol pduersteler: that'd be cool, i had a similar situation and had to use for loops, not sure if there is a workaround
19:20 gimpy2938 I'm using onchanges to restart a daemon when its config changes.  This works for most daemons but on one of them Salt never triggers a restart, any clue why that would be?  https://gist.github.com/jwhite530/cecb37f96de92de12247
19:20 xoritor does anyone have any docs on integrating salt with ovirt?  or a suitable replacement (not vmware)
19:20 xoritor i have found this:   https://hveem.no/saltvirt
19:21 AndreasLutro gimpy2938: use watch in this context, not onchanges
19:22 doompatrol ^
19:23 myraft @utahdave: thanks - manually created /srv/salt and moved the top.sls and webserver.sls , running the highstate giving another error.
19:25 forrest joined #salt
19:27 patrek joined #salt
19:30 cpowell_ joined #salt
19:32 pduersteler and how would I check in a macro if a given variable is a dict? previously, I was using "if foo is mapping", but inside a macro, that won't work
19:34 gh34 joined #salt
19:34 Buzer Is there any sane way to filter list down to unique values in Jinja? I can think of two ways: Use something else (e.g. mako) to pre-render or create custom salt module (in which case could do salt['custom.unique'](list))
19:34 AndreasLutro pduersteler: "- foo: bar" is not an orderreddict, it's a list of dict(s)
19:34 rem5 joined #salt
19:35 AndreasLutro pduersteler: and jinja statements don't magically change behaviour inside a macro, your mistake is likely elsewhere
19:36 pduersteler AndreasLutro, arr, right' I guess I need a break, now where I tried to put it into a gist i saw what I did wrong
19:38 tkharju joined #salt
19:38 garphy joined #salt
19:43 perfectsine joined #salt
19:44 pduersteler is it possible to put macros into plain python files instead of having to build them inside a jinja template? I feel quite ugly building a method there..
19:47 AndreasLutro not really. you can write a custom module
19:48 Rumbles joined #salt
19:48 pduersteler okay. then. But I can't call a macro in another macro (both in the same file) to simplify things?
19:49 pduersteler at least I'm getting an error
19:49 AndreasLutro pretty sure you can. try switching the order they're defined in
19:50 MindDrive joined #salt
19:51 pduersteler aaah yes. definitely taking a break now.. sorry ;)
19:53 Muchoz joined #salt
19:55 cpowell joined #salt
19:59 aqua^c joined #salt
20:02 CeBe joined #salt
20:03 viq joined #salt
20:04 Thomsen joined #salt
20:04 mavhq joined #salt
20:05 Thomsen hello
20:07 Thomsen left #salt
20:12 Erik-P joined #salt
20:12 Erik-P hii all. anyone tryed to work with 2 master on windows minions?
20:12 tkharju joined #salt
20:13 adelcast joined #salt
20:17 baweaver joined #salt
20:17 bhosmer_ joined #salt
20:18 krymzon joined #salt
20:22 cberndt joined #salt
20:22 mavhq joined #salt
20:27 perfectsine joined #salt
20:27 keimlink joined #salt
20:28 ruxu joined #salt
20:29 pduersteler AndreasLutro, mind to enlighten me? I'm completely new to python here and even after a break I'm struggling ;) https://gist.github.com/anonymous/b835f8008aa988ab2e84
20:30 dlam joined #salt
20:30 rihannon joined #salt
20:30 bhosmer__ joined #salt
20:31 mavhq joined #salt
20:31 shaggy_surfer joined #salt
20:32 AndreasLutro replace {% set output = output.extend with {% do output.extend
20:33 Muchoz There is something odd going on when using git.latest. I specify the branch it needs to get, which it does but it always has the branch from the branch 'development' which has the latest commits. When I go to the repository it says it's another branch, but the git log shows the log for the development branch.
20:35 gcorey joined #salt
20:37 akhter joined #salt
20:38 pduersteler hmm.. and why's that? interesting...
20:39 keimlink_ joined #salt
20:40 AndreasLutro list.extend() returns None, so by re-assigning you're basically removing the list after the first iteration
20:40 mapu joined #salt
20:40 Muchoz pduersteler, same on stable and development
20:41 zer0def joined #salt
20:42 baweaver joined #salt
20:43 dendazen joined #salt
20:43 cyborg-one joined #salt
20:45 keimlink joined #salt
20:45 Tyrm_ joined #salt
20:47 Tyrm__ joined #salt
20:50 Tyrm joined #salt
20:53 zer0def joined #salt
20:54 pduersteler okay. got it, that makes sense..
20:54 pduersteler but, how would I correct this? {%- do output = output.extend(["--" + key + "=" + value]) -%}. Gives me "Jinja syntax error: expected token 'end of statement block', got '='"
20:55 AndreasLutro read again - replace {% set output = output.extend with {% do output.extend
20:55 cpowell_ joined #salt
20:57 tkharju joined #salt
20:58 pduersteler ah well, yes, sorry..
20:58 winsalt i see so many issues with jinja, salt should be promoting pyobjects instead
21:00 garphy joined #salt
21:00 AndreasLutro what issues?
21:01 jhauser joined #salt
21:02 fyb3r joined #salt
21:02 Rumbles joined #salt
21:03 hightekvagabond joined #salt
21:04 Muchoz When using git.latest and then going to the directory it says there is no git repo: "fatal: Not a git repository (or any of the parent directories): .git"
21:05 Muchoz Nvm, fml
21:05 captain_magnus joined #salt
21:06 Brew joined #salt
21:06 disbound joined #salt
21:06 Muchoz git.latest is broken somehow. When I go to the directory that I cloned it to, it says my master branch is up to date with the development branch?
21:06 Muchoz Which definitely is not the case
21:06 Muchoz And it has the content of the development branch...?
21:07 AndreasLutro more likely it's an oddity with your state and/or git repository
21:08 tkharju joined #salt
21:08 akhter joined #salt
21:10 Muchoz Pretty much doubt that
21:10 ecrane How can I invoke network.connect as a state? My naive attempt gives error " ID network.connect in SLS <redacted> is not a dictionary"  http://pastebin.com/Rx4dBbiL
21:10 shoemonkey joined #salt
21:10 Muchoz GitHub reports everything as it is, so is my repo on my pc
21:13 akhter joined #salt
21:14 baweaver joined #salt
21:14 fracklen joined #salt
21:15 perfectsine joined #salt
21:16 ecrane (I am currently trying 'module.run', will report back)
21:16 yjmbo joined #salt
21:18 totzky joined #salt
21:19 rem5 joined #salt
21:19 ecrane (not having much luck)
21:19 Muchoz ecrane, ya it's basically module.run afaik
21:19 yjmbo My master config file specifies file_roots:base and pillar_roots:base are in a non-default location, which lets me have all the data about my machines' setup in a manageable place on the filesystem. Can I do the same with the reactor configs? At the moment all I can find is documentation saying that reactor: needs to be in /etc/salt/master ... can I config it to be somewhere else?
21:20 hal58th_ joined #salt
21:21 tkharju joined #salt
21:23 tkharju joined #salt
21:23 ecrane I think I figured out the proper module.run style, but I get a really weird error now. 'local variable _address references before assigned'. http://pastebin.com/Heuu2ThY
21:24 bhosmer_ joined #salt
21:24 ecrane (referenced before assigned)
21:26 Muchoz That's probably a bug in the source code, maybe it's expecting some variables to be passed? Check the modules documentation.
21:26 ecrane If I pass in the variables via kwargs, it tells me "The following arguments are missing: host"
21:27 netcho_ joined #salt
21:28 whytewolf ecrane: what version are you using?
21:28 ecrane 2015.8.4 (Beryllium)
21:28 ecrane I'll see what I can dig up in the source...
21:28 whytewolf odd. I just tried on 2015.8.5 and it worked fine for me
21:29 bhosmer_ joined #salt
21:29 devopsprosiva joined #salt
21:29 tkharju joined #salt
21:30 whytewolf ecrane: https://gist.github.com/whytewolf/3cbc8a5fe67d71cca938
21:30 dendazen_ joined #salt
21:33 whytewolf maybe update to 2015.8.5
21:36 joe_n joined #salt
21:36 ecrane whytewolf: It turns out my destination hostname was not resolvable, giving this unfriendly error. Thank you very much for your example, it lead me to the solution.
21:38 SunPowered joined #salt
21:39 whytewolf coolbeans
21:40 ecrane It's weird that the exception wasn't caught and given a friendlier error message.. I am looking at the network.py file on my salt master, and it should have been caught.
21:40 pzipoy joined #salt
21:41 whytewolf yes, defintly should have had a friendly error message
21:41 whytewolf also. you should be looking at the modules/network.py on the minion.
21:42 ecrane Ok, will do, thanks!
21:43 pzipoy Quick question. Is there a salt command to run directly on a minion to check if it has a valid, connected master? (i.e. salt-call ping.the.master)
21:43 ecrane gtg, thanks for the help!
21:47 shoemonkey joined #salt
21:47 cyborg-one joined #salt
21:50 Tyrm joined #salt
21:50 disbound joined #salt
21:50 Tyrm joined #salt
21:56 cpowell joined #salt
22:00 toanctruong If I want to utilize the latest salt code that's on github
22:00 subsignal joined #salt
22:01 toanctruong Do I just clone the 'salt' folder from github into /usr/lib/python2.6/site-packages/salt ?
22:02 edrocks joined #salt
22:02 iggy salt-bootstrap has an option to install from git develop
22:05 yjmbo When does salt/minion/*/start fire? When a minion is first accepted to talk to the master, or every time the salt-minion daemon starts (i.e. reboots) ?
22:08 iggy yjmbo: service start
22:10 yjmbo iggy: so, I still require manual key accepting; sounds like I'd be better off using salt/key act=accept to fire "only once"?
22:12 cpowell joined #salt
22:16 quasiben joined #salt
22:18 bhosmer__ joined #salt
22:22 iggy there are options to handle keys... depends on your infrastructure
22:24 hal58th_ pzipoy: Not taht I know of. This is only thing I see and it's not quite right. sudo salt-call sys.doc status.master
22:24 hal58th_ iggy: You going to go to saltconf again this year?
22:25 iggy hal58th_: nein
22:25 hal58th_ ahhh bummer, why not?
22:26 iggy I didn't see any talks that excited me that much... looked like a rehash of last year
22:27 titilambert joined #salt
22:27 gimpy2938 left #salt
22:29 hal58th_ Well, I'm still a noob to a lot of things so I am going to go.
22:30 UtahDave hal58th_: cool! I'll see you there!
22:31 dendazen joined #salt
22:34 RandyT Anyone have any hints for me as to what might be happening here? https://gist.github.com/rterbush/9c8650100c30db419395
22:34 RandyT Trying to install java jre on a windows minion.
22:35 RandyT code in question appears to be here: https://github.com/saltstack/salt/blob/develop/salt/states/pkg.py#L419
22:35 RandyT I've run all of the initialization steps for tine winrepo to make sure it is fresh and available.
22:35 RandyT I can see the contents of the winrepo from the cache on the minion.
22:36 UtahDave Does `/srv/salt/win/repo-ng/jre8/jre-8u66-windows-x64.exe` exist on the master?
22:37 RandyT @UtahDave: negative
22:38 RandyT is that the difference here is that I need to populate these dist files by hand then?
22:38 RandyT I'm used to these grabbing remotely but now as I look in the sls from the winrepo, they are referencing local files...
22:39 RandyT thanks for the smack
22:39 UtahDave RandyT: It can do either
22:40 UtahDave RandyT: If you specify a file on the internet, it can download it.  Otherwise you can place it on your salt master
22:40 RandyT lookign in the winrepo state I see: "due to winrepo installer limitations you need to manually download the exe from"
22:41 RandyT probably issues around license clickthrough I suspect...
22:42 UtahDave yeah, that could be
22:42 zenlot1 joined #salt
22:42 RandyT although wget seems to work fine...
22:42 * RandyT shrug
22:43 UtahDave joined #salt
22:43 ajw0100 joined #salt
22:44 shoemonkey joined #salt
22:46 totzky joined #salt
22:47 pzipoy hal58th_: Thanks for the reply. I appreciate it.
22:47 yjmbo left #salt
22:49 sinonick joined #salt
22:53 twork i'm hitting what looks sort of like: https://github.com/saltstack/salt/issues/27494 ...but i don't quite follow the hack he used to get around it, so when i do something similar here and it fails, i don't now if that means i have a different issue, or i misapplied his hack.
22:53 saltstackbot [#27494]title: Unable to manage file: Jinja variable 'dict object' has no attribute | Hi,...
22:53 twork my own story: https://gist.github.com/mjinks/cfefc0c50a5a6dd3f5d4
22:54 baweaver joined #salt
22:55 fracklen joined #salt
22:58 akhter joined #salt
22:58 hal58th_ welcome pzipoy
23:01 GreatSnoopy joined #salt
23:01 twork (added "what i tried" to my story.) since that hasn't had any effect at all (hooray for cargo culting!), i don't know if i'm hitting a different issue, or a different instance of the same bug where that hack doen't apply.
23:09 MindDrive joined #salt
23:12 bhosmer_ joined #salt
23:13 RandyT Curious if anyone listening uses Jenkins...
23:13 forrest Sadly I am familiar
23:13 RandyT the deeper I get into this setup the more I am thinking I can do the same thing with salt orchestrate...
23:14 RandyT maybe I have the hammer/nail syndrome...
23:15 twork ...well if the hammer you have has a diesel engine behind it...
23:16 RandyT I suppose at the stage when I need the horsepower provided by distributing build process.... that would be nice.
23:19 akhter joined #salt
23:23 hightekvagabond joined #salt
23:26 Eureka703 joined #salt
23:27 Muchoz I found the culprit in why git.latest is messing up for me: https://github.com/saltstack/salt/blob/develop/salt/states/git.py#L750
23:28 Muchoz I really don't get why the git.latest is so complicated
23:29 Muchoz The whole state is undocumented and there literally is barely any documentation on why something happens at all
23:29 Muchoz Nvm, I'll just read all of the paragraphs
23:29 RandyT joined #salt
23:32 fyb3r left #salt
23:32 hal58th_ fix it when you figure something out and save someone else the frustration :)
23:33 Glasswalker joined #salt
23:34 Glasswalker Question, is it possible to create a state (sls file) which doesn't itself apply any states, but simply includes/requires other states? I'm aware of how to setup requisites on any state module, but can I create an "aggregate" of other states that itself does nothing but combine other states?
23:34 totzky joined #salt
23:35 Ch3LL Glasswalker: maybe includes?
23:35 Muchoz hal58th_, 1400 lines for a single function
23:35 Glasswalker Ok, I'm using includes in my stuff already. Does just including it automatically run any states?
23:35 Muchoz The function checks for local revisions and stuff, but why doesn't it leave that to Git itself?
23:35 Glasswalker I thought that simply made the states available to be required in requisites?
23:35 aqua^c joined #salt
23:35 Muchoz This function will never ever be as stable as Git
23:36 Muchoz This was rewritten in August, "rewritten"
23:36 Muchoz Someone also PEP8'ed the fuck out of it
23:36 Ch3LL Glasswalker: my understanding  is the oopposite. and in teh docs it states: When other SLS files are included, everything defined in the included SLS file will be added to the state run.
23:37 Muchoz Fuck this, cmd.run it is
23:38 brianfeister joined #salt
23:38 Glasswalker oh, excellent
23:38 Glasswalker ok in that case I should revise some of my other states ;) lol
23:38 Glasswalker thanks!
23:38 Ch3LL yeah :) lol
23:38 Ch3LL np
23:40 Glasswalker Ch3LL, so for example, if I have part1.sls which sets up a file.managed for an RPM, and part2.sls which has a pkg.install which installs the RPM so it has require file:somefile.rpm
23:40 Glasswalker In that case do I need to include part1.sls in part2.sls?
23:41 Glasswalker or for example user creation ins part1.sls and require: user: bobsmith in part2.sls
23:41 Glasswalker would I have to include part1 in that case? OR can salt just figure out the dependancies there?
23:43 cyborglone joined #salt
23:45 cyborglone joined #salt
23:51 abednarik joined #salt
23:52 aqua^c joined #salt
23:53 Glasswalker is it possible to invert onchanges?
23:53 Glasswalker I want to set a requisite for if there were no changes
23:54 ajw0100 joined #salt
23:54 Glasswalker (similar to onfail, but in this case the state has an onlyif on it, so it "succeeds" but does nothing when the onlyif is not met... I need a way to do B if A did not run and make changes
23:55 Glasswalker nevermind, think I figured out a way to do it with unless. Not quite what I was looking for but functionally should suffice

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