Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-06-28

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

All times shown according to UTC.

Time Nick Message
00:16 woodtablet left #salt
00:19 subsignal joined #salt
00:19 beardedeagle joined #salt
00:41 MeltingFiction joined #salt
00:57 Lee- joined #salt
00:58 iceyao joined #salt
01:02 abednarik joined #salt
01:08 scoates joined #salt
01:18 Nahual joined #salt
01:27 debian112 joined #salt
01:31 mapu joined #salt
01:40 catpigger joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.5.10, 2015.8.10, 2016.3.1 | Support: https://www.saltstack.com/support/ | Logs: http://irclog.perlgeek.de/salt/ | Paste: https://gist.github.com/ (please don't multiline paste into channel) | See also: #salt-devel, #salt-offtopic | Ask with patience as we are volunteers and may not have immediate answers
01:54 justanotheruser joined #salt
02:08 beardedeagle joined #salt
02:08 beardedeagle joined #salt
02:14 MeltingFiction joined #salt
02:21 mpanetta joined #salt
02:24 notnotpeter joined #salt
02:35 notnotpeter joined #salt
02:37 druonysus joined #salt
02:42 scooby2 does test=True work with cmd.run?
02:45 drags1 joined #salt
02:47 fannet_ joined #salt
02:50 hasues joined #salt
02:50 hasues left #salt
02:51 Sammichmaker joined #salt
02:54 keepguessing joined #salt
02:55 keepguessing I see this issue effecting me on my production. https://github.com/saltstack/salt/issues/34129
02:55 saltstackbot [#34129][MERGED] fqdn_ip4 and fqdn_ip6 are empty on 2016.3+ | Description of Issue/Question...
02:55 keepguessing I do not have control over the version of salt right now. I am trying to understand my options.
02:55 keepguessing Is this part of the release?
02:56 keepguessing It says the fix has been "merged". I am suspecting its not yet made the respective release and just in master right now.
02:56 keepguessing Am I right?
03:01 DEger joined #salt
03:08 iggy keepguessing: yeah, 2016.3.3 is older than 3 days
03:09 onlyanegg joined #salt
03:21 badon joined #salt
03:38 charli joined #salt
03:54 rem5 joined #salt
03:57 k_sze[work] joined #salt
03:58 keldwud_ joined #salt
03:59 charli joined #salt
04:01 M-liberdiko joined #salt
04:15 MeltingFiction joined #salt
04:25 M-MadsRC joined #salt
04:27 onlyanegg joined #salt
04:28 bfig__ joined #salt
04:33 bfig joined #salt
04:38 MeltingFiction joined #salt
04:56 nidr0x joined #salt
04:57 tmmt joined #salt
04:59 ronrib joined #salt
05:02 mariusv joined #salt
05:02 mariusv joined #salt
05:04 felskrone joined #salt
05:05 DarkKnightCZ joined #salt
05:11 mariusv joined #salt
05:11 mariusv joined #salt
05:17 sauvin joined #salt
05:20 ageorgop1 joined #salt
05:25 freelock joined #salt
05:26 onlyanegg joined #salt
05:46 charli joined #salt
05:50 whaity joined #salt
05:52 Lee- joined #salt
05:53 linjan__ joined #salt
05:54 kshlm joined #salt
05:56 slav0nic joined #salt
06:01 CeBe joined #salt
06:03 impi joined #salt
06:23 mpanetta joined #salt
06:24 rdas joined #salt
06:29 ravenx joined #salt
06:29 ravenx is it possible to install salt
06:29 ravenx or salt-minion in a venv?
06:29 ravenx i can't see to find the pip package.
06:29 ravenx and in the github repo, it is just "salt" it doesn't separate into minion/master
06:35 duncanmv joined #salt
06:38 AndreasLutro ravenx: the minion/master separation is just on the packaging level
06:38 Rumbles joined #salt
06:39 kshlm joined #salt
06:41 KermitTheFragger joined #salt
06:41 dmaiocchi joined #salt
06:46 AirOnSkin joined #salt
06:46 ravenx so once i pip install salt
06:46 ravenx i get 'em all?
06:49 fannet_ joined #salt
06:49 dmaiocchi joined #salt
06:55 Lee- joined #salt
06:56 AndreasLutro yes
07:02 fracklen joined #salt
07:17 dean joined #salt
07:20 patrek_ joined #salt
07:20 toanju joined #salt
07:21 Lee- joined #salt
07:21 Electron^- joined #salt
07:24 keimlink joined #salt
07:25 kawa2014 joined #salt
07:27 pkruithof joined #salt
07:33 Lee- joined #salt
07:38 _mel_ joined #salt
07:41 linjan__ joined #salt
07:43 krymzon joined #salt
07:47 oyvindmo joined #salt
07:49 impi joined #salt
07:54 oyvindmo joined #salt
07:55 manji joined #salt
07:57 ronnix joined #salt
08:00 lero joined #salt
08:00 oyvindmo joined #salt
08:05 fracklen joined #salt
08:05 Ayo joined #salt
08:07 tuxick https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.file_tree.html how am i supposed to use this?
08:08 pkruithof joined #salt
08:09 infrmnt joined #salt
08:09 infrmnt hi, how can I check whether a file has a defined permission?
08:10 infrmnt file.managed will do this, but in my case, the file exists and I don't want to copy it, just check the permissions
08:16 Rumbles joined #salt
08:19 ravenx for my company, we have custom init scripts for starting/stopping our apps, located in another dir (project root)
08:19 ravenx how can use this:  https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html
08:19 ravenx or will i have to stick with cmd.run?
08:19 ravenx is the salt.states.service only for the /etc/init.d?
08:23 kshlm joined #salt
08:24 GreatSnoopy joined #salt
08:24 tuxick meh
08:25 AndreasLutro ravenx: service states just use the service/systemctl commands available on the system
08:27 ravenx right, but my service files aren't linked to service and systemd.
08:27 ravenx they just get started via:  cd projectroot && bin/service start
08:29 AndreasLutro if you've put files in /etc/init.d then they are linked to the service command
08:30 AndreasLutro if you just do `bin/service start` then you should probably start writing custom service definitions
08:30 AndreasLutro if you have systemd it's quite easy
08:30 ravenx ah okay
08:30 ravenx true, systemd makes it easy.
08:30 ravenx or maybe i can even use supervisor
08:30 ravenx when you say link, do you mean to use update-rc.d?
08:32 AndreasLutro update-rc.d is for starting services when the machine boots afaik
08:32 AndreasLutro I've never used it
08:32 jrklein joined #salt
08:32 AndreasLutro afaik, `service foo start` will just look for /etc/init.d/foo and run that
08:33 AndreasLutro or foo.service in systemd's directories
08:33 Lee- joined #salt
08:42 jrklein joined #salt
08:50 fannet_ joined #salt
08:50 dmaiocchi joined #salt
08:55 krymzon joined #salt
08:57 tuxick still not a single clue about how to use pillar.file_tree
08:57 tuxick guess the basic idea behind saltstack fails to sink in
08:58 tuxick i definitely don't understand why it's so incredibly hard to simply push some senstive files
09:00 DEger joined #salt
09:00 keimlink joined #salt
09:01 tuxick like this: https://serverfault.com/questions/732608/how-can-i-loop-over-all-minions-in-a-pillar-top-file
09:01 tuxick and then??
09:03 Garo_ joined #salt
09:07 madu_ joined #salt
09:09 impi joined #salt
09:09 madu_ how do we read an java properties file in state ?
09:15 Elsmorian joined #salt
09:15 fredvd joined #salt
09:21 mackripeum joined #salt
09:21 ravenx cat <file>
09:22 madu_ and then parse it ?
09:23 madu_ i need to parse external file and then take decisions based on variables defined in it
09:38 toanju joined #salt
09:48 netcho joined #salt
09:55 prasanna joined #salt
09:56 prasanna hi Team
09:56 prasanna i am working on salt cloud and i am trying to create VM on devstack of openstack
09:57 prasanna but i am not able to create and getting errors \
09:58 prasanna as per document i write the script
09:59 ravenx joined #salt
09:59 prasanna can i get the help here
10:00 ravenx i think you gotta show people the errors
10:12 tuxick trying to use pillar_ext file_tree getting "No root_dir specified for file_tree pillar"
10:12 tuxick i definitely set it up in /etc/salt/master as documented
10:13 tuxick what am i missing now?
10:15 ravenx i think you gotta show people the errors
10:16 ravenx like what your top.sls and stuff looks like.
10:16 tuxick [salt.loaded.int.pillar.file_tree           ][ERROR   ][11071] No root_dir specified for file_tree pillar
10:16 tuxick and master as in https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.file_tree.html#module-salt.pillar.file_tree
10:16 tuxick that's just 4 lines, can hardly miss
10:17 tuxick 5 :)
10:17 ronnix_ joined #salt
10:18 tuxick no idea what i'd put in top.sls, that's not documented there?
10:19 jhauser joined #salt
10:20 tuxick there's some logic i still seem to be missing
10:22 tuxick might well be something in top.sls indeed :)
10:29 ravenx mhm
10:32 tuxick looks like this thing was documented by someone who knows all ins and outs
10:32 tuxick assuming everybody does
10:37 toastedpenguin1 joined #salt
10:42 dmaiocchi joined #salt
10:51 fannet_ joined #salt
10:51 dendazen joined #salt
10:53 netcho joined #salt
10:56 pkruithof joined #salt
10:56 tuxick reading source was no help either :)
11:03 rem5 joined #salt
11:06 tuxick i'm assuming the error message is sending me wrong way
11:07 tuxick but can't guess what to put in top.ssl
11:10 AndreasLutro external pillars don't use top.sls
11:12 tuxick ok
11:12 tuxick file.managed:\n - contents_pillar: files:test
11:13 tuxick triggers the error message, so i assume this is the correct way to call it
11:13 Rumbles joined #salt
11:18 AndreasLutro your ext_pillar config is probably the problem
11:19 tuxick there's so little to configure about that
11:19 amcorreia joined #salt
11:19 tuxick root_dir: /path/to/root/directory
11:20 AndreasLutro the error message says you haven't configured it, one of you must be lying!
11:20 tuxick thought maybe i had to configure it in the pillar_roots
11:21 av_ joined #salt
11:21 tuxick but that gives a lot more serious error message
11:21 tuxick Rendering Primary Top file failed, render error:
11:21 tuxick 'dict' object has no attribute 'endswith'
11:21 tuxick which of course is completely useless
11:21 tuxick other than indicating i did something wrong
11:21 AndreasLutro well you can't try-catch every single line of code
11:21 manji do you have a snippet ?
11:22 tuxick https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.file_tree.html#module-salt.pillar.file_tree
11:22 tuxick that seems very clear about what to put in master
11:23 toanju joined #salt
11:24 tuxick http://pastebin.com/tpm3HSLp
11:24 AndreasLutro you screwed it up
11:24 tuxick am i so blind then?
11:24 AndreasLutro yep
11:25 tuxick not unlikely, didn't get much sleep
11:25 AndreasLutro did you assume the indentation in the docs was wrong or is your text editor that bad at copy-paste?
11:25 tuxick 2 spaces per tab no?
11:26 tuxick oooh really??
11:30 tuxick hmm now state.highstate is simply taking forever
11:30 tuxick but why on earth double indentation??
11:30 impi joined #salt
11:33 tuxick anyway, cheers wasn't expecting that
11:33 tuxick now still getting "contents_pillar test results in empty contents"
11:33 tuxick but no longer error in log
11:35 tuxick [salt.loaded.int.states.file][WARNING ][1434] Neither 'source' nor 'contents' nor 'contents_pillar' nor 'contents_grains' was defined
11:35 tuxick on minoin :/
11:35 tuxick calling it as so: http://pastebin.com/LttkmU3s
11:40 tuxick giving me a headache :)
11:43 tuxick "results in empty contents" *why*?
11:44 athaller joined #salt
11:45 athaller hi would it be possible to execute a mysql command before running the module for mysql_user and and mysql_grants? we have some problem with replication of mysql user and normally disable replication for sessions where we add new users (SET sql_log_bin = 0;). i wanted to implement our mysql user management in salt but am unsure how to implement that with the requirement of this session command
11:56 manji athaller, in your state you can do something like
11:56 manji "STOP SLAVE " - order: 1
11:56 kshlm joined #salt
11:56 manji <snip your stuff>
11:57 manji "START SLAVE" - order: last
11:57 manji that is the quick and dirty way I can think of
11:58 manji using the "order" option, will ensure the execution order
12:00 tuxick is this ext_pillar thing really supposed to work?
12:00 Lee- joined #salt
12:01 tuxick been wasting 2 days trying to achieve the simple task: roll out certificate files
12:10 netcho joined #salt
12:11 kevinquinnyo joined #salt
12:13 tracphil joined #salt
12:15 tracphil_ joined #salt
12:16 SpX joined #salt
12:17 abednarik joined #salt
12:20 numkem joined #salt
12:22 athaller @manji: but that would stop all replication
12:22 manji you said " and normally disable replication for sessions where we add new users"
12:22 athaller yeah
12:22 athaller for the session
12:22 athaller not the whole server ^^
12:22 manji well, you can't stop replication for one session
12:23 manji you either have replication, or don't
12:23 athaller http://dev.mysql.com/doc/refman/5.7/en/set-sql-log-bin.html
12:23 manji aaah that is what you mean
12:23 athaller yeah sry ^^
12:24 _JZ_ joined #salt
12:25 manji sorry mate, I skipped the  "SET sql_log_bin = 0;" when I was reading :p
12:25 athaller haha :D
12:27 ravenx is there a way to make git.latest (state, not module)
12:27 ravenx do a pull
12:27 manji this is rather interesting indeed
12:27 ravenx it only seems to switch branches
12:28 athaller yeah it would be nice if you just could specify an session command or something that is run before anything in the state is executed
12:29 manji the doc mentions a "  **connection_args"
12:29 manji I am reading the module code, there might be a way to slip your SET sql_log_bin  into it
12:30 athaller ah
12:30 athaller yeah
12:30 athaller didnt see that
12:30 manji I have no idea what they mean by   "  **connection_args"
12:30 athaller yeah ^^
12:30 athaller no docu
12:31 athaller probably this stuff https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
12:34 blarghmatey joined #salt
12:36 Rumbles joined #salt
12:38 tpaul joined #salt
12:39 DammitJim joined #salt
12:39 toanju joined #salt
12:40 manji athaller, if you use that
12:40 manji https://dev.mysql.com/doc/connector-python/en/connector-python-option-files.html
12:40 tuxick i'm *assuming* i had to put that root_dir thing in /etc/salt/master
12:41 manji athaller, so for the kword arg do a option_files=mysql_option_files
12:41 tuxick because documentation mentions 'configuration'
12:42 manji athaller, and there  insert the  sql_log_bin = 0
12:42 manji worth a shot :p
12:43 athaller haha will try that :D
12:43 athaller thx
12:44 manji it is a longshot of course:p
12:46 rhodgin joined #salt
12:48 toastedpenguin joined #salt
12:48 subsignal joined #salt
12:50 athaller yeah will see
12:50 athaller if anything will open some issue in github :D
12:52 manji maybe you won't have to, I'd start off my writing a simple mysql query using the MySQLdb
12:52 manji and see how to pass that variable there
12:52 jellyfrog left #salt
12:53 manji it should be trival to tell salt to do the same after that, considering it is using that python module
12:53 zwalla joined #salt
12:53 manji tells us how it went :)
12:54 athaller yeah ^^
12:54 athaller it should be easy to do
12:55 athaller will do that thanks again :D
12:55 manji :)
12:58 ronnix joined #salt
12:58 subsigna_ joined #salt
13:01 DEger joined #salt
13:03 teryx510 joined #salt
13:04 dendazen joined #salt
13:09 tuxick gave up on ext_pillar/file_tree for now
13:09 tuxick got actual work to do
13:11 jcristau joined #salt
13:11 netcho joined #salt
13:16 protoz joined #salt
13:26 ajv joined #salt
13:33 protoz joined #salt
13:34 mpanetta joined #salt
13:36 mpanetta joined #salt
13:39 TooLmaN joined #salt
13:41 hasues joined #salt
13:42 morissette joined #salt
13:42 hasues left #salt
13:46 onlyanegg joined #salt
13:52 netcho joined #salt
13:55 protoz joined #salt
13:56 iceyao joined #salt
13:58 tik joined #salt
13:58 tik hello all! anyone alive?
14:01 numkem joined #salt
14:03 * LtLefse checks pulse
14:09 toastedpenguin joined #salt
14:11 tharkun joined #salt
14:12 mapu joined #salt
14:17 adelcast joined #salt
14:19 tharkun joined #salt
14:21 Brew1 joined #salt
14:21 DarkKnightCZ joined #salt
14:22 knine joined #salt
14:27 gngsk joined #salt
14:28 bowhunter joined #salt
14:28 me joined #salt
14:28 tik anyone have pkg.install working on windows workstations (non server os)?
14:29 Brew1 joined #salt
14:29 Sylvain31 joined #salt
14:30 whatevsz joined #salt
14:31 toastedpenguin joined #salt
14:32 toastedpenguin joined #salt
14:32 Sylvain31 hi, can I add a condition to perform a file.recurse, only once?
14:34 ajv joined #salt
14:35 dmaiocchi joined #salt
14:38 schemanic joined #salt
14:38 schemanic Hello all
14:38 schemanic I'm having a hard time with salt minion on Mac OS
14:38 Sylvain31 maybe by testing a file hash?
14:39 schemanic Can anyone tell me about salt minion on Mac OS?
14:40 Sylvain31 schemanic: I don't know Mac OS. Did you try salt-bootstrap?
14:40 schemanic salt-bootstrap'
14:41 Sylvain31 https://github.com/saltstack/salt-bootstrap
14:42 schemanic salt-bootstrap's github page doesn't say it supports mac os. Saltstack docs have 1 page on installing on Mac OS and mention installing via homebrew. I've done that but there just doesn't appear to be the standard salt directories on the Mac OS host I'm working with
14:42 schemanic I'm trying to create masterless minions
14:42 DEger joined #salt
14:43 rhodgin joined #salt
14:43 manji schemanic, I think you can use pip for that
14:43 manji no?
14:44 schemanic manji, thats just installing salt. The issue is that once salt is installed it's not in the same place it would be on a *nix host
14:45 manji yes, you fix that in the config file
14:45 manji define your paths etc
14:45 toastedpenguin joined #salt
14:45 schemanic The point is that I *did* set these values in the minion file.
14:45 Sylvain31 schemanic: you could also install it in a VM, unless you expect to drive the Mac OS itself…
14:46 schemanic Sylvain31, no that wont work. I'm using this to manage corporate workstations
14:46 schemanic These are laptops that are handed out to employees.
14:46 manji schemanic, do you have something like a logfile to show us?
14:46 manji or reducted parts of one :
14:46 manji :p
14:47 schemanic I don't at this point. I don't actually have a macos laptop to develop and test on so I'm really reporting what happened when I went to an employee's workstation and tried to run my installer scripts.
14:48 manji sorry mate, some more info would be more useful
14:49 manji the problem could even be that your config file has wrong permissions/owner
14:49 schemanic hmm
14:49 schemanic can you tell me what artifacts I need in order to get a better diagnosis?
14:50 manji logs
14:50 manji so we can see where it read what
14:51 schemanic Where do I collect these logs from?
14:52 manji you should specify it in your configuration
14:52 manji just read on :)
14:52 fannet_ joined #salt
14:55 berserk joined #salt
14:58 netcho joined #salt
14:58 netcho hi all
14:59 charli joined #salt
14:59 netcho can someone pls tell me what i'm doing wrong here?
14:59 netcho http://pastebin.com/baadh6YU
14:59 netcho if statements do not work..
15:00 netcho mydom.prod record is always created
15:03 dfinn joined #salt
15:04 Sylvain31 answer to myself: (file.recurse only-once) {% if not salt['file.file_exists']( web.DocumentRoot ~ '/index.php') %}
15:04 Sylvain31 no so cool, but…
15:06 Sylvain31 netcho: do you have the error message
15:06 Sylvain31 ?
15:06 netcho no
15:06 kulty joined #salt
15:06 netcho it creates dns record in mydom.prod zone
15:07 netcho even instance_env grain value is qa
15:07 netcho so no error
15:07 manji netcho, you have set those grains before this run ?
15:07 netcho yep
15:07 manji I mean, this is not part of a series of events
15:08 manji where one of them is setting that grain
15:08 onlyanegg joined #salt
15:08 Sylvain31 does it output something? salt-call grains.get instance_env
15:09 netcho i deleted the recotd, running it again
15:11 kawa2014 joined #salt
15:11 netcho http://pastebin.com/zBAywn6R
15:12 manji netcho, instance_env looks like a list
15:12 manji so you might go with
15:13 manji elif 'qa' in   grains['instance_env']
15:13 netcho it is custom grain that i appended
15:13 manji your grain is
15:13 manji instance_env:
15:13 manji - qa
15:13 manji yes?
15:13 netcho yes
15:14 manji that is a list
15:14 manji :)
15:14 netcho i created it wtih grains.append
15:14 gngsk netcho, trying using grains['key']|string == "value"
15:14 gngsk er
15:14 gngsk grains["key"]|string() == "value"
15:14 netcho ok let me try
15:15 netcho double quotes?
15:16 gngsk Double -vs- single shouldn't really matter. It's about converting the grain value to a string.
15:17 netcho {% if grains["instance_env"]|string() == "staging" %}
15:17 netcho running it
15:18 Sylvain31 grains["instance_env"][0] ? no?
15:18 manji all answers will work :p
15:18 netcho yeay its only 1 value there
15:18 netcho firs one deosn't
15:19 netcho it created it in prod again\
15:19 gngsk oh, it's a list? then use in
15:19 gngsk Sorry.
15:19 manji netcho, Sylvain31 is the shortest
15:19 gngsk That makes sense though, since you can have multiple values match?
15:19 Sylvain31 netcho: the in will also works if grains["instance_env"] has multiple values…
15:21 AnalogLifestyle joined #salt
15:21 netcho ok trying with 'in'
15:22 berserk joined #salt
15:22 netcho {% if 'staging' in  grains["instance_env"] %}
15:22 netcho yep i worked :)
15:22 manji netcho, did you try grains["instance_env"][0] as well?
15:22 netcho nope
15:23 manji it is better looking
15:23 netcho :)
15:23 manji it is a matter of taste of course
15:23 netcho yeah
15:24 netcho trying to make jenkins salt plugin to wrok with salt-api but just cannot
15:24 netcho doing ssh for now
15:24 netcho :S
15:24 manji netcho, it works
15:24 manji what is your problem?
15:25 manji whatever it is, disable ssl and use ngrep to see what they are telling each other to debug it
15:26 abednarik joined #salt
15:29 netcho i have ssl but also jenkins skipping ssl cjeck so connection is not a ptoblem
15:29 netcho tryng smth now
15:30 manji netcho, I mean to disable ssl so you can snoop the http session
15:30 keys joined #salt
15:31 tik anyone successfully using the win-servermanager or win-pkg modules in the latest version? I'm riddled with powershell issues and vcredis problems
15:35 netcho manji: http://pastebin.com/yJFu9iSY
15:36 manji netcho, add the '@runner' in your salt-api permssions
15:36 netcho i did
15:36 manji are you sure?:p
15:36 manji it worked on my PC (TM)
15:37 netcho external_auth:
15:37 netcho pam:
15:37 netcho jenkins:
15:37 netcho - test.*
15:37 netcho - pkg.*
15:37 netcho - cmd.*
15:37 netcho - state.*
15:37 netcho - '@runner'
15:37 netcho sorry for multiline
15:37 manji when you did a
15:37 manji have you tried a .*  ?
15:37 netcho ?
15:38 netcho allow all modules?
15:38 manji for debuging only obviously
15:38 manji yes
15:38 manji it is a hazzard, but you have to sure if it is a config problem or a salt bug
15:39 berserk joined #salt
15:39 netcho .* or *.*
15:40 manji - .*
15:40 manji maybe *.* works as well, dunno
15:42 netcho it should work like this also
15:42 netcho cuz when i create a new job with just test.ping to * it returns
15:43 netcho but when i use parameterized varibales from another job for targeting it fails
15:43 manji I am not sure I follow
15:44 netcho ok
15:44 netcho maybe this will help u
15:45 tharkun left #salt
15:46 netcho i have parameterized jenkins job for creating ec2 instances... that jobs "formards 3 variables to create_dns_job"
15:46 netcho http://image.prntscr.com/image/778962d7124d43ef88b74adc7ea34787.png
15:46 manji aaaah ok that is another story
15:47 netcho Problem: test.ping  to https://salt-master.mydomain.com:8080 for vod-cms-qa-007
15:47 netcho so
15:47 manji still, I believe you should dump the whole http  session
15:47 manji and the salt event bus
15:47 netcho {{application}} = vod-cms {{environment}} = qa
15:47 netcho etc
15:47 netcho it renders minion name well
15:47 sagerdearia joined #salt
15:48 netcho Response on test.ping  for vod-cms-qa-007 :
15:48 netcho [{}]
15:48 netcho this is another job targeting via minion name manualy
15:49 netcho returns nothing
15:49 netcho probably jenkins plugin error
15:49 DarkKnightCZ joined #salt
15:49 manji I will use that functionality soon though
15:49 manji I will come and find you so we can cry toghether if it won't work for me either :p
15:49 Brew joined #salt
15:49 ageorgop joined #salt
15:50 netcho nothing on master log though
15:50 netcho so looks like that plugin works for me only when targetin * minions
15:53 manji dump everything, you have to know what jenkins told salt
15:53 manji or it if said somthing to it at all in that failing step
15:54 manji since your logs have no info like you said
16:10 ponyofdeath joined #salt
16:10 onlyanegg joined #salt
16:12 netcho yeah nothing in log on both sides
16:14 permalac_ hello guys, I'm having trouble executing a command just once per node, I set up a grains.present when  first runned, and then I try to check it with {% if salt['grains.get']('RegionPollster') != 'True' %}  , but it keeps running.
16:15 Edgan joined #salt
16:16 bltmiller joined #salt
16:19 Brew joined #salt
16:23 bfrog joined #salt
16:23 bfrog is there some easy way to keep salt up to date using salt without nightmares?
16:24 GreatSnoopy joined #salt
16:30 keys does it need to always be up to date?
16:31 bfig_ joined #salt
16:31 bfig___ joined #salt
16:33 wattwood joined #salt
16:35 wattwood Is there a limit to the number of grains I can set?  When I do a salt 'host' grains.setval vhosts '{'val1','val2','val3'}' I get back a list.   vhosts:  val1: none  val2: none  val3: none.     However, when I set a large number of them, I get back what looks like a string   vhosts:{'val1','val2','val3',....}.   Is this just a display difference?
16:36 linjan__ joined #salt
16:38 keys joined #salt
16:39 netcho joined #salt
16:40 DanyC joined #salt
16:41 DanyC hi all, anyone knows how can i pass the value "bar" from an env variable ? salt '*' state.apply test pillar='{"foo": "bar"}'
16:42 DanyC asking as i need to wrap the salt cli into a bash script and i just discovered i can't pass in the value from a variable
16:42 tuxick tried passing $bar ?
16:43 permalac joined #salt
16:44 DanyC tuxick: i did of course, the value passwed in is the string $bar rather than the value
16:44 DanyC *passed
16:45 tuxick hm that's the quotes i reckon
16:45 izaki joined #salt
16:47 DanyC tuxick: could be ...and unfortunately i don't see how i can get away with it ...hmm
16:48 tuxick uhm
16:48 tuxick pillar='{"foo": "'$bar'"}' perhaps?
16:48 tuxick can't think of any crazier
16:49 tuxick it's the single quotes causing this
16:49 blueelvis joined #salt
16:49 DanyC tuxick: and you were damn right, thanks a lot !
16:49 blueelvis hello everyone :)
16:49 berserk joined #salt
16:50 tuxick :)
16:50 DanyC blueelvis: hello
16:51 blueelvis So, I am entirely new to this Saltstack and looking forward to get around with it :)
16:51 blueelvis Hi DanyC
16:52 DanyC blueelvis: welcome :) so what are you interested to find out then ?
16:52 Sylvain31 DanyC: https://docs.saltstack.com/en/latest/topics/tutorials/states_pt3.html#using-environment-variables-in-sls-modules
16:52 jesusaur joined #salt
16:52 DanyC Sylvain31: i missed that one, thanks
16:53 Sylvain31 me too;-
16:53 Sylvain31 me too;-)
16:53 blueelvis I am looking forward to get started from the ground up and then get around with contributing to Saltstack :)
16:54 tberch8 joined #salt
16:55 DanyC blueelvis: then this is what i'd say to start with https://docs.saltstack.com/en/getstarted/ and then keep reading
16:55 mohae joined #salt
16:56 DanyC blueelvis: don't be put off by the doc, is been improved a lot over the last 6 m and then you can go on github to learn the project structure etc
16:58 netcho joined #salt
17:01 beardedeagle joined #salt
17:03 blueelvis Sorry Dany, was on a call :)
17:04 blueelvis How much experience do you have DanyC with SaltStack?
17:05 DanyC blueelvis: i have a bit but i can't call my self an expert, others here are more advanced then me
17:05 blueelvis looking forward to this :) . I am a student btw ;)
17:06 DanyC anyway should you have q fire them here as people are very friendly and always up to help out. cool
17:06 pasm joined #salt
17:06 bowhunter joined #salt
17:07 blueelvis That's the only motivation one needs. I have been to some other channels as well but this seems out like really good!
17:08 woodtablet joined #salt
17:08 pasm hi guys...
17:08 pasm is this the right place to announce a new formula?
17:09 blueelvis Hi pasm :)
17:10 pasm hi blueelvis :-D
17:10 blueelvis ^_^
17:10 pasm can you help me?
17:11 pasm I wrote a formula to install and configure Apache Flink
17:11 pasm how I can ask to be included under saltstack-formulas repository?
17:12 pasm should the formula be validated by someone?
17:13 blueelvis Sorry pasm , I just joined like 5 minutes before so that I could get started with SaltStack. But, I am sure someone around would help you out soon enough :)
17:13 blueelvis People are nice here!
17:14 pasm blueelvis: ok... no probs... ;-)
17:15 blueelvis I just googled your query. Have you gone through this doc? https://docs.saltstack.com/en/2015.8/topics/development/conventions/formulas.html
17:16 blueelvis The best way to create new Formula repositories for now is to create a repository in your own account on GitHub and notify a SaltStack employee when it is ready. We will add you to the contributors team on the saltstack-formulas organization and help you transfer the repository over. Ping a SaltStack employee on IRC (#salt on Freenode) or send an email to the salt-users mailing list.
17:17 bltmiller joined #salt
17:17 pasm blueelvis: I'm following the IRC approach...
17:17 pasm blueelvis: :-D
17:18 blueelvis Oh ok :P
17:18 blueelvis All the best!
17:18 pasm blueelvis: thanks! Now I've to go...
17:19 blueelvis :)
17:19 pasm blueelvis: thanks for your feedback
17:19 blueelvis lol np :P
17:19 abednarik joined #salt
17:19 pasm left #salt
17:26 ameobapox Is there a way to restrict minion access to external pillar data? I believe external pillars don't obey top.sls right?
17:29 myraft joined #salt
17:29 mohae_ joined #salt
17:29 myraft quick question - where can we use prereq ?
17:33 perfectsine joined #salt
17:34 netcho joined #salt
17:36 impi joined #salt
17:50 abednarik joined #salt
17:50 cableninja joined #salt
17:52 abednarik joined #salt
17:53 cableninja afternoon all. I'm having problems applying mysql states. I keep getting this: "The minion function caused an exception; KeyError: 'mysql_database.present'" I'm usign the 2015.5.3 minion/master versions.
17:55 whaity joined #salt
17:56 blarghmatey joined #salt
17:57 fracklen joined #salt
17:58 renaissancedev Has anyone had success in combining the git_pillar with another option, such as pillarstack?
17:59 renaissancedev What would be ideal is if I could use something like pillarstack or reclass but have all of the files located in their own Git repo.
17:59 _beardedeagle joined #salt
18:02 impi joined #salt
18:04 bltmiller joined #salt
18:05 manji joined #salt
18:07 woodtablet joined #salt
18:08 GreatSnoopy joined #salt
18:10 khaije1 joined #salt
18:11 khaije1 Hi all. I'm trying to write a top.sls file that'll configure virtual guests based on the type of hypervisor they reside on.
18:11 DarkKnightCZ joined #salt
18:11 teryx510 joined #salt
18:12 khaije1 My first pass of using something like: {% if salt['grains.get']('virtual') == "VMware" %} only seems to work on some OS's
18:12 netcho joined #salt
18:12 khaije1 Are there any other options for how to express this capability?
18:23 druonysus joined #salt
18:23 druonysus joined #salt
18:27 gngsk You're using that in your top file? Why not simply match based on grain?
18:29 DEger joined #salt
18:29 PsionTheory joined #salt
18:31 gngsk 'virtual:VMware':
18:31 gngsk - match: grain
18:31 gngsk - state
18:36 DarkKnightCZ joined #salt
18:36 bfrog joined #salt
18:36 seblu joined #salt
18:36 tongpu joined #salt
18:37 gcmacmalloc joined #salt
18:38 bltmiller joined #salt
18:46 khaije1 gngsk: I am, what I wrote was from memory but what it actually settled on is what you described.
18:47 keimlink joined #salt
18:47 ronnix joined #salt
18:49 vexati0n joined #salt
18:50 khaije1 well close anyway: I used "virtual:{{ salt['grains.get']('virtual') }}: \n - match: grain \n - hypervisor-integration-{{ salt['grains.get']('virtual') | lower() }}
18:50 khaije1 to abstract it a little bit
18:52 tberch8 joined #salt
18:52 Ayo joined #salt
18:54 fannet_ joined #salt
18:59 ferbla joined #salt
19:00 ferbla Hello everyone, today I started updating my salt minions and master and now on my master I get a file_ignore error
19:01 manji joined #salt
19:01 ferbla Here is a gist of it https://gist.github.com/Ferbla/95aab79157c96d633f70e6ab2ad28e04
19:02 ferbla Has anyone else seen this going from 2015.8.8 to 2016.3.1?
19:11 morissette Is there a way to have a file managed and then executed? https://bpaste.net/show/5782e0fd1525
19:12 writtenoff joined #salt
19:13 netcho joined #salt
19:17 morissette nvm just had to do cmd: - run
19:17 abednarik joined #salt
19:18 Trauma joined #salt
19:20 bltmiller joined #salt
19:27 teryx510 joined #salt
19:27 rem5 joined #salt
19:31 subsigna_ joined #salt
19:32 ajw0100 joined #salt
19:33 lero joined #salt
19:34 lero joined #salt
19:36 protoz joined #salt
19:37 lero joined #salt
19:44 keys joined #salt
19:46 amcorreia joined #salt
19:50 nidr0x joined #salt
19:52 nidr0x joined #salt
19:54 hoonetorg joined #salt
19:57 morissette Can you not use process.absent with require?
20:02 bltmiller joined #salt
20:02 hamsham joined #salt
20:03 s_kunk joined #salt
20:06 _beardedeagle has anyone successfully ran reactors while using gitfs?
20:07 bowhunter joined #salt
20:10 coval3nce joined #salt
20:10 coval3nce If i have a “reactor” folder in a gitfs_remote, do i point to that sls file using “salt://reactor/foo/bar.sls” in my reactor.conf?
20:11 coval3nce Its not immediately obvious to me why reactor states are not getting run
20:12 abednarik joined #salt
20:12 nZac joined #salt
20:14 subsignal joined #salt
20:20 tberch8 joined #salt
20:22 woodtablet i got distracted and forgot to write down better notes, but can someone help me use pillar roles correctly ?
20:22 woodtablet here is the gist of the roles.pillar (not referenced it in the top pillar, because i am not sure how to do this) and a simple salt state to try and install telnet as a test:
20:22 woodtablet salt state
20:22 woodtablet https://gist.github.com/gwaters/991085d152f08132fe914073dc34753b
20:22 woodtablet pillar
20:22 woodtablet https://gist.github.com/gwaters/9d2b851c1b326ca4405317d14bd9ae43
20:23 woodtablet that was supposed to be one line, sorry about that
20:27 k3y joined #salt
20:28 k3y i currently use salt on my linux servers and am wondering if there has been a stable deployment for 16.04 yet
20:29 k3y planning on upgrading to 16.04 from 14.04 as soon as i can confirm
20:36 bowhunter joined #salt
20:36 slimmons joined #salt
20:39 writtenoff joined #salt
20:40 woodtablet i must be doing something seriously wrong, pillar.items is blank, even after a saltutil.refresh_pillar
20:40 Ayo joined #salt
20:40 slimmons if I want to update a local repo on the salt-master before I run state.highstate, what's the preferred method for that?
20:41 slimmons did you create the /srv/pillar/top.sls?
20:41 slimmons sorry, I just got in the room, if you've already been troubleshooting, ignore that question
20:46 corichar joined #salt
20:47 KingJ_ joined #salt
20:51 woodtablet khaijei - dont forget about compound matching : https://docs.saltstack.com/en/latest/topics/targeting/compound.html
20:53 woodtablet figured out why my pillars were blank.. a bad nodegroup grain match. lets see if i can figure out the rest.. here.. until someone gets back
20:55 tracphil joined #salt
20:56 tracphil_ joined #salt
21:00 coval3nce Hmm…calling execution modules on minions via a reactor….the jobs running on those minions shouhld have access to pillar data correct?
21:02 tawm04_ joined #salt
21:07 bltmiller joined #salt
21:09 KingJ joined #salt
21:13 tberch8 joined #salt
21:14 tapoxi joined #salt
21:16 whaity joined #salt
21:17 bltmiller joined #salt
21:17 woodtablet anyone know how to do a nest salt pillar lookup ? something like this ? ( {%- if salt['pillar.get']("roles:testrole:{{ salt['pillar.get']('id') }}" %} )
21:18 gngsk use set?
21:19 ekristen joined #salt
21:20 woodtablet gngsk: ?  how so ?
21:21 izaki left #salt
21:22 woodtablet like this ? {% set minion_id = salt['pillar.get']('id') %} - ok i ll try that
21:23 KingJ joined #salt
21:26 gngsk yes, exactly; then use minion_id to get roles:testrole:{{ minion_id }}
21:27 ageorgop joined #salt
21:27 woodtablet gngsk: thanks, that got me past that error, thanks!
21:28 gngsk cheers
21:38 mrueg joined #salt
21:49 woodtablet can someone explain these blasted compound matchers ? i am trying in a sub state (not the top one, and just never works), and if i put in the top.sls state it doesnt error out, but it doesnt match anything. for example i made this dumb match, and it doesnt do anything :   'G:os:CentOS':
21:50 woodtablet both my minions are OS: centos. argh.. so confused
21:50 manji joined #salt
21:53 Rumbles joined #salt
21:55 woodtablet ... i will update the docs if someone tells me the correct way of using them =D
21:55 woodtablet https://docs.saltstack.com/en/latest/topics/targeting/compound.html
21:57 subsignal joined #salt
22:01 tracphil joined #salt
22:01 tracphil_ joined #salt
22:11 marie1972 joined #salt
22:13 JPT joined #salt
22:14 marie1972 left #salt
22:16 iggy woodtablet: it's G@os:CentOS (or whatever
22:23 bltmiller joined #salt
22:24 fannet joined #salt
22:34 cabal51 joined #salt
22:34 zenlot joined #salt
22:35 Ayo_ joined #salt
22:49 ahammond woodtablet beware of mixing compound matchers and nodegroups. that hasn't worked out well for me in the past.
22:50 netcho joined #salt
22:51 ahammond k3y we are using salt latest on Ubuntu 16.04. If you install from repo per instructions there, it seems to Just Work. I haven't tried salt-bootstrap lately, but last time I did it was slightly broken.
22:52 ahammond Any news on 2016.3.2? I'd love to pick up some of the bugfixes in there. :)
22:56 fannet_ joined #salt
22:58 ashmckenzie joined #salt
23:02 mapu joined #salt
23:06 netcho joined #salt
23:08 sagerdearia joined #salt
23:09 tracphil_ joined #salt
23:09 tracphil joined #salt
23:12 Derailed Hey everyone, I'd like to put the following logic into a salt state if possible: "If A exists, Symlink A -> C, otherwise symlink B -> C"
23:12 Derailed it'd be a simple shell script. just wondering if there's an obvious way of doing that in Salt
23:12 bltmiller hm, seems like maybe you could have something watch a file.exists test to trigger a change?
23:14 bltmiller or if A is pillar or grain data, then that'd be super easy to set with some jinja logic
23:14 __alex joined #salt
23:23 tmmt joined #salt
23:26 sagerdearia joined #salt
23:27 sauvin joined #salt
23:36 Derailed cheers. we'll see what looks simplest
23:41 tracphil joined #salt
23:41 rem5 joined #salt
23:43 Patch joined #salt
23:45 woodtablet iggy: thanks.. just got clumsy there.. frustrated because my L@ and I@ matches arent working, so I went down to the basics. why doesnt this search match my minions hostnames (saltminion1, saltminion2) 'L@*minion*'
23:47 jenastar joined #salt
23:50 woodtablet doesntwork = 'L@*minion*', works = 'L@*minion*,minion1'  <-- this will pull up minion1.. but.. heck even 'L@*' doesnt work.. and that should match all minions.. i think
23:51 iggy woodtablet: I don't think L@ supports globbing (it's literally just a list of minion_id's)
23:51 tberch8 joined #salt
23:52 woodtablet iggy: but the exmaple has bl*.domain.com =(
23:52 iggy L@minion1 or *minion*
23:52 iggy no
23:52 iggy it has 'or bl*'
23:52 woodtablet how is that different ?
23:52 iggy meaning you aren't in the list anymore, you're back to a regular glob
23:52 woodtablet ohhhhhhhhhh
23:53 woodtablet i seeeeeee
23:53 rem5 joined #salt
23:54 woodtablet you are saying that the L match type doesnt support glob.. i was misreading the example. that was a combination example with an L match type and a glob, not a glob itself. thanks iggy
23:54 iggy correct

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