Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-11-29

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

All times shown according to UTC.

Time Nick Message
00:06 jas02_ joined #salt
00:08 keimlink joined #salt
00:11 Bryson joined #salt
00:15 hemebond argh
00:15 hemebond 2016.11 was released with a broken EC2? Boo.
00:17 ozux joined #salt
00:21 nicksloan joined #salt
00:34 saintromuald joined #salt
00:35 akhter joined #salt
00:38 ozux joined #salt
00:38 PerilousApricot joined #salt
00:50 haam3r1 joined #salt
00:51 lionel joined #salt
00:51 colttt joined #salt
00:51 \ask joined #salt
00:52 cyborg-one joined #salt
00:52 XenophonF thanks iggy
01:04 ozux joined #salt
01:07 jas02_ joined #salt
01:10 ozux__ joined #salt
01:11 PerilousApricot joined #salt
01:11 catpigger joined #salt
01:18 iggy XenophonF: why do you ask?
01:26 ozux joined #salt
01:35 ozux__ joined #salt
01:42 J0hnSteel joined #salt
01:47 akhter joined #salt
01:54 ozux joined #salt
01:56 ozux_ joined #salt
02:02 Nahual joined #salt
02:07 jas02_ joined #salt
02:08 catpiggest joined #salt
02:16 dyasny joined #salt
02:19 de88e5a8 joined #salt
02:19 de88e5a8 i'm not having luck with google on this one. I've written some pretty small salt manifests, but i'm lost on how to do something that i'm familar with coming from puppet
02:20 de88e5a8 in puppet if i wanted to write something that was independent of OS i could use facts like $::osfamily with an if condition to say that the http link was 'http://....rpm' vs 'http://.....deb' for ubuntu then do exec { "curl ${link} -o /tmp/somefile": } ... i'm not sure what that would loook like in salt
02:21 de88e5a8 searching isn't coming up with anything useful at all, i'm hitting weird keywords or something
02:22 catpigger joined #salt
02:23 akhter joined #salt
02:25 Bryson joined #salt
02:29 hemebond de88e5a8: Grains
02:30 de88e5a8 right, just not seeing any good snippets on how to do if/else on grains is all
02:30 de88e5a8 i'm not sure if i'm just doing a terrible job at googling or what but all my searches end back on the 'how to install salt' on redhat vs ubuntu
02:32 hemebond Read https://docs.saltstack.com/en/latest/topics/jinja/index.html ?
02:32 orionx joined #salt
02:35 xet7 joined #salt
02:37 de88e5a8 that helps
02:37 de88e5a8 thanks
02:37 hemebond ????
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.0 <+> 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
02:50 WKNiGHT joined #salt
02:54 stooj joined #salt
02:55 raspado joined #salt
02:55 raspado is there a way to see what ec2 instances are DHCP?
02:55 hemebond raspado: How would you normally tell that?
02:56 raspado oh wrong place to ask :D sorry hemebond
02:56 hemebond
03:01 Rubin joined #salt
03:05 aarontc joined #salt
03:05 jas02 joined #salt
03:07 Bryson joined #salt
03:10 jas02_ joined #salt
03:19 mpanetta_ joined #salt
03:24 swills joined #salt
03:27 ozux joined #salt
03:30 Bryson joined #salt
03:40 mpanetta joined #salt
03:47 jas02 joined #salt
03:47 bastiand1 joined #salt
03:50 evle joined #salt
04:17 mavhq joined #salt
04:26 amontalb1n joined #salt
04:49 jas02 joined #salt
04:49 llua joined #salt
04:58 patrek_ joined #salt
05:02 ozux joined #salt
05:03 beardedeagle joined #salt
05:04 ssplatt joined #salt
05:05 dxiri joined #salt
05:11 jas02 joined #salt
05:14 rdas joined #salt
05:26 onlyanegg joined #salt
05:29 lorengordon joined #salt
05:30 stevesmename joined #salt
05:30 debian112 joined #salt
05:33 DEger joined #salt
05:35 rem5 joined #salt
05:48 ProT-0-TypE joined #salt
05:52 bocaneri joined #salt
05:54 armyriad joined #salt
06:02 ivanjaros joined #salt
06:12 jas02 joined #salt
06:15 PerilousApricot joined #salt
06:30 Antiarc joined #salt
06:47 jas02 joined #salt
06:49 DEger joined #salt
06:54 DEger joined #salt
06:57 fgimian joined #salt
06:57 ProT-0-TypE joined #salt
07:02 mavhq joined #salt
07:10 felskrone joined #salt
07:11 ivanjaros joined #salt
07:13 jas02 joined #salt
07:21 zer0def joined #salt
07:22 angel_dark joined #salt
07:24 angel_dark joined #salt
07:25 colttt joined #salt
07:30 nidr0x joined #salt
07:31 s_kunk joined #salt
07:35 fracklen joined #salt
07:38 debian112 joined #salt
07:44 krymzon joined #salt
07:46 Rumbles joined #salt
07:47 ReV013 joined #salt
07:58 darioleidi joined #salt
08:08 fracklen joined #salt
08:08 fracklen joined #salt
08:08 dariusjs joined #salt
08:14 jas02 joined #salt
08:17 sebastian-w joined #salt
08:21 ernescz joined #salt
08:27 abednarik joined #salt
08:27 PerilousApricot joined #salt
08:29 zer0def joined #salt
08:32 samodid joined #salt
08:37 ronnix joined #salt
08:37 Mattch joined #salt
08:42 JohnnyRun joined #salt
08:47 jas02 joined #salt
08:57 geomacy joined #salt
09:15 jcristau joined #salt
09:15 jas02_ joined #salt
09:16 mikecmpbll joined #salt
09:19 Antiarc joined #salt
09:29 s_kunk joined #salt
09:38 onovy joined #salt
09:43 o1e9 joined #salt
09:43 Rumbles joined #salt
09:56 keimlink joined #salt
10:02 dkrae joined #salt
10:11 Ralf_ joined #salt
10:16 jas02_ joined #salt
10:21 CrummyGummy joined #salt
10:26 evle joined #salt
10:27 Ralf_ left #salt
10:36 amontalban joined #salt
10:36 amontalban joined #salt
10:46 pcdummy joined #salt
10:46 pcdummy joined #salt
11:06 bdrung_work joined #salt
11:08 rdas joined #salt
11:10 amcorreia joined #salt
11:11 N-Mi_ joined #salt
11:17 jas02_ joined #salt
11:20 cyborg-one joined #salt
11:20 preludedrew joined #salt
11:20 fredvd joined #salt
11:24 fracklen joined #salt
11:28 saffe joined #salt
11:39 abednarik joined #salt
11:44 rdas joined #salt
11:45 ronnix_ joined #salt
11:47 cyteen_ joined #salt
11:47 ernescz hello! Does anyone have some example of a state that involves creating a new cloud instance, bootstrapping it and running a highstate on it. Saw an example in docs but can't find it now by any keywords...
11:48 jhauser joined #salt
11:51 rbjorklin joined #salt
11:52 xet7 joined #salt
11:53 SWA joined #salt
11:54 ozux joined #salt
11:57 ozux__ joined #salt
11:57 ronnix joined #salt
12:04 ozux joined #salt
12:05 keimlink joined #salt
12:09 dariusjs joined #salt
12:18 jas02_ joined #salt
12:37 pcdummy ernescz: you mean salt-cloud?
12:38 ernescz pcdummy: I presume it should call salt-cloud, yes (or any other runners that are more suitable to the task)
12:39 pcdummy ernescz: what do you want to boostrap, vmware, kvm or containers?
12:40 ernescz cloud based resources like Amazon/Azure and the like
12:40 pcdummy ernescz: https://docs.saltstack.com/en/latest/topics/cloud/aws.html
12:41 pcdummy ernescz: salt-cloud should boostrap your EC2 instance once configured.
12:41 ernescz for now I define profile for them manually in profile/maps file and run 'salt-cloud -m /my/map.cnf' file. But I believe it can be done automatically triggered by events
12:43 pcdummy ernescz: seems you know more about this stuff than i do :/
12:43 ernescz pcdummy: thanks, the manual process is fine and without a hitch. The problem here is trying to automate it (with orchestrate for example)
12:43 ernescz pcdummy: no problem, thank you for sharing the info :)
12:43 pcdummy iggy: ping on ernescz question
12:44 pcdummy maybe also XenophonF
12:45 * pcdummy realy needs to remember how knows what here :)
12:45 ernescz yeah, the masters :)
12:45 pcdummy whytewolf has been chating about salt-cloud recently too.
12:46 pcdummy ernescz: off-topic question: what do you use to monitor your stuff?
12:46 ernescz I'd call them 'salt-masters' but that would be a pun... :)
12:47 ernescz pcdummy: Zabbix is the greatest for my taste
12:47 ozux__ joined #salt
12:47 pcdummy ernescz: you had a look on check_mk?
12:48 ernescz of course, autodeployed to minions and assigned needed templates based on grains data ;)
12:48 Neighbour Is there a way to use __utils__ in a custom execution module?
12:49 pcdummy ernescz: so you use both, zabbix and check_mk?
12:49 ernescz pcdummy: no, I did not know check_mk. That might sound a bit narrow minded but Zabbix has everything I need.
12:50 ernescz sorry, question/answer lag
12:50 ernescz only Zabbix
12:50 pcdummy ernescz: will install zabbix once i get the time and compare it with my current check_mk solution. Thanks!
12:51 pcdummy Neighbour: looks its straight forward: https://github.com/saltstack/salt/issues/32500
12:51 saltstackbot [#32500][OPEN] Salt modules depends on utils are not loaded via salt loader | Description of Issue/Question...
12:52 ernescz pcdummy: Zabbix has a bit of a steep learning curve but once you get going, you really appreciate its power
12:54 pcdummy Neighbour: need more info? Want me to have a deeper look into that?
12:55 Neighbour pcdummy: ah, you're right...I thought the error I was getting was because __utils__ was unavailable, but it was an error in the util-function i called....thanks :)
13:02 ronnix joined #salt
13:03 adeschamps joined #salt
13:03 Nerigal joined #salt
13:03 Nerigal Hi,
13:05 Nerigal how to i use jijan variable within a parttern  replacement like example -parttern: {{ conf }}
13:06 Nerigal the goal is to handle config inside file without actually overwritting it because file.manage just replace the entire file with cause issue with automated updates
13:08 pcdummy Nerigal: not sure i understand, you have files in a file?
13:08 Nerigal No... i try to handle config values inside a file insdead of managing the file itself
13:09 Nerigal to prevent file overwrite by saltstack
13:09 Lionel_Debroux_ joined #salt
13:10 Nerigal for example in whatever file name lets say test.conf
13:10 pcdummy good an example :)
13:10 Nerigal i have to change the config TCP_IN = '80' for TCP_IN = '80,443'
13:10 ernescz Nerigal: do you mean a part of file? then blockreplace will do https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.blockreplace
13:11 Nerigal no
13:11 Nerigal more likely file.replace
13:11 Nerigal but mixed with a {% for %} loop for changes
13:12 Nerigal more like this
13:12 pcdummy Personaly i manage whole files with salt, templates and variables. But i don't think thats what you want Nerigal
13:12 Nerigal sorry can't pate the exmaple... the chat doesn't like it
13:12 pcdummy paste on paste.ubuntu.com
13:12 pcdummy or something like that
13:12 Nerigal No because this will kill updates
13:13 ernescz you mean like 'my_config=80' and after a while you would like to change it to 'my_config=80,443,4444' ?
13:13 Nerigal https://paste.ubuntu.com/23553248/
13:14 saintromuald__ joined #salt
13:14 Nerigal but my problem is the jinja var in the parttern section
13:14 Nerigal no sure of the syntax
13:14 pcdummy Nerigal: the blockreplace ernescz showed you should help, just loop multiple states of blockreplace.
13:14 Nerigal any quick example of that ?
13:15 ernescz pcdummy: I actually use one instance of blockreplace and for loop runs inside of it
13:15 ernescz Nerigal: just a sec
13:15 Nerigal awsome
13:15 babilen Nerigal: Why don't you want to manage the entire file? What do you want to happen if there is no my_config=80 to begin with?
13:16 pcdummy Think that file gets updated by the deamon.
13:16 pcdummy daemon
13:17 Nerigal handleing the entire file is a bit dummy in my case because if the config file actually has update awith new feature... Saltstack will apply the state which will overwrite the file and so lose all the new feature
13:17 Nerigal by handeling only the parameter i need, i dant have to write a new template for all server role base each time there is an update
13:18 Nerigal because the parameter i need to be managed are handled individually insdead of the whole file
13:18 babilen Just asking because it becomes a nightmare in my experience to coordinate multiple changes to the same file as opposed to simply rendering the entire file to begin with
13:18 Nerigal this way, the config mamangement doesn't kill my updates
13:18 jas02_ joined #salt
13:19 babilen There's also augeas for "single" changes such as yours if replace doesn't cut it
13:19 pcdummy babilen: do you know salt-cloud and bootstraping new instances?
13:19 pcdummy ^ question above of ernescz
13:19 babilen pcdummy: A little. Do you?
13:19 ernescz Nerigal: could this help you? https://paste.ubuntu.com/23553261/
13:19 pcdummy babilen: no
13:20 Nerigal very interesting
13:20 babilen ernescz, Nerigal: Are you sure you can use a jinja template there?
13:20 Nerigal thank you a lot guys for help, will test it
13:20 Nerigal absolutly not lol
13:21 babilen Ah! It's just something I haven't seen before :)
13:21 Nerigal but seams logic time me to store values in pillars file
13:21 ernescz Nerigal: you could use multiple sections based on "marker_start" like "section 1", "section X" of a config file
13:21 babilen Is this a well known service?
13:21 ssplatt joined #salt
13:21 Nerigal @babilen ?
13:21 Nerigal ops
13:22 Neighbour Is it possible to use custom execution module functions in an orchestrated state? A regular state seems to work fine, but when running the same state with `salt-run state.orchestrate path.to.state` it complains it can't find the custom module.function
13:22 ernescz babilen: absolutely, Jinja can and is used in blockreplace :)
13:23 babilen ernescz: It's rendered beforehand I guess - Just not something I use often
13:23 babilen But thanks for the comment
13:24 ernescz babilen: '/etc/hosts' is a prime target in my case
13:30 krymzon How can I supply each minion with a different secret value, without explicitly targeting each in pillar's top.sls?
13:39 dariusjs joined #salt
13:40 babilen ernescz: https://github.com/saltstack-formulas/hostsfile-formula (or similar approaches)
13:40 babilen krymzon: Create a lookup table or use something like vault (via sdb)
13:43 krymzon babilen: thank you. Vault seems new in 2016.11 and jessie-backports has 2016.3 :) I'm not sure what you mean by lookup table, as a simple yaml dictionary would have targeting problems...
13:44 babilen krymzon: "yaml dictionary" is what I referred to, yes. How would that have targeting problems?
13:44 ernescz babilen: thanks, yeah I "stole" the idea from that one, though in my case a that info is kept and targeted in pillars and reassembled with blockreplace.
13:44 krymzon I want each minion to be able to access only its own password. From what I understand pillar is targeted just on top.sls level
13:45 krymzon so yes, a lookup table of minion_id:password is what I want, but it needs to make sure one minion can't access another's password
13:45 babilen krymzon: The minion only sees the resulting datastructure
13:46 babilen (not the SLS files themselves)
13:46 krymzon hm, I believed jinja templates were run on the minions themselves, not on the master
13:47 babilen Pillars are rendered by the master (for obvious reasons)
13:48 krymzon ok, that makes a lot of sens, documentation doesn't seem too clear on that :)
13:52 usernkey joined #salt
13:54 krymzon babilen: I seem to still be missing a piece, where should the lookup table be stored? Should that be another pillar file, accessible only to the master? and then In another pillar I do for id,pass; if minion_id=id: secret=pass?
13:55 krymzon well, the last bit of what I wrote was quite clearly stupid, probably more like secret=passes.get(minion_id)
13:56 babilen exactly
13:56 numkem joined #salt
13:56 babilen (and minion_id is trustworthy)
13:57 krymzon thank you!
13:58 James5mith joined #salt
14:00 James5mith Good morning.  Does anyone have any good links to learning salt a bit more than what the main documentation offers?  I'm having a lot of trouble implementing my gitfs backed system.
14:01 usernkey joined #salt
14:02 manji James5mith, hate to say it, bit sometimes I read the code itself
14:02 manji if I can't make something work
14:02 remyd1 joined #salt
14:02 gtmanfred James5mith: have you not read the gitfs backend walkthrough? it is pretty simple
14:02 remyd1 Hi
14:02 gtmanfred https://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html
14:02 manji James5mith, there are a couple of books as well which are very decent
14:02 gtmanfred there is not a lot to it
14:03 gtmanfred also, basepi has a book that i have heard good things about https://www.amazon.com/dp/B01CSLI6KO/ref=dp-kindle-redirect?_encoding=UTF8&amp;btkr=1
14:03 James5mith @gtmanfred I did.  And I have it working.  I just seem to be hitting a snag.  I want my prod environment to map to the base.  And dev/qa be their own branches.  The problem I am hitting is that the base/master branch is only showing up as the "base" environment.
14:03 James5mith If I have a server's grains set to prod, it fails to apply.
14:04 remyd1 For a debian stretch, what is saltstack apt repository should I use ?
14:04 James5mith I tried the suggestion of using the "saltenv:  prod   ref:  master" but that failed as well.
14:04 gtmanfred and you set base: prod in the settings?
14:04 James5mith @gtmanfred,  that may be my problem.
14:05 gtmanfred James5mith: there was also new stuff added in 2016.11.0 which went live yesterday https://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html#per-saltenv-configuration-parameters
14:05 remyd1 the sid or jessie or another ?
14:05 James5mith @gtmanfred, that's what I was following!  Seems I'm using new documentation with old code.  I'll go update now and see what happens.
14:05 James5mith Thanks!
14:05 gtmanfred cool, no problem
14:06 gtmanfred remyd1: which one is stretch?
14:06 gtmanfred is that the next release?
14:06 remyd1 it is the current testing
14:06 gtmanfred we do not package for releases until they are stable
14:06 gtmanfred so you would need to use pip for it
14:07 remyd1 ok, I will try that. thx
14:09 aarontc joined #salt
14:11 gheistbane joined #salt
14:12 gheistbane I updated to the latest salt this morning and now one step in my global.sls is not working correctly.  All it does is add a publick key to known_hosts for a our bitbucket repo.
14:12 gheistbane bitbucket.org:
14:12 gheistbane #    ssh_known_hosts:
14:12 gheistbane #      - present
14:12 gheistbane #      - user: chaldron
14:12 gheistbane #      - fingerprint: 97:8c:1b:f2:6f:14:6b:5c:3b:ec:aa:46:46:74:7c:40
14:12 gheistbane #      - key: bitbucket.org,131.103.20.167 ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw==
14:12 gheistbane #      - require:
14:12 gheistbane #        - user: chaldron
14:12 gtmanfred gheistbane: please use a pastebin
14:12 gheistbane k k
14:13 gheistbane nshttpd://pastebin.com/2jk4bBz9
14:13 gheistbane man... I am having all sorts of problems today.
14:13 gheistbane nshttpd://pastebin.com/2jk4bBz9
14:16 James5mith @gtmanfred  I've updated and restarted the salt master, and tried the config in the saltenv settings.  Still getting an error.  Gist here:  https://gist.github.com/Jame5/9332a76374623db502158958e368bc79
14:18 gheistbane Ok this pastebin has the offending step and the error:
14:18 gheistbane nshttpd://pastebin.com/1Z5QjPuH
14:18 gtmanfred James5mith: that i don't know
14:19 James5mith No worries.  It doesn't seem to actually be stopping the salt server from starting.  It's just an error I see after making the changes.
14:19 James5mith Still checking to see if it actually affects anything.
14:19 jas02_ joined #salt
14:20 Tanta joined #salt
14:22 misconfig joined #salt
14:22 misconfig Anyone running into issues with saltstacks repo for ubuntu 14.04 (trusty)?
14:23 misconfig https://gist.github.com/ndobbs/8c25b22f70c1df0785b1fe5a9eb77c10
14:24 misconfig 404 not found when doing an 'apt-get update' this is happening on all of my minions and breaking state runs due to repos failing.
14:24 gtmanfred it should be 14.04
14:25 James5mith @gtmanfred Seems that the error is annoying, but not stopping the state.apply from running and finding the "prod" git branch.  (which now points to master).  Thanks again for the help!
14:25 gtmanfred we had a note about updating the repo paths for the release of carbon http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest/
14:25 gtmanfred ok, cool
14:25 lorengordon joined #salt
14:26 gtmanfred misconfig: https://groups.google.com/forum/#!topic/salt-announce/5HKul7Azv-M
14:26 pipps joined #salt
14:26 misconfig gtmanfred, Thank you for the information this is very helpful.
14:27 misconfig I'm sorry I didn't catch the change
14:27 _aeris_ joined #salt
14:27 gtmanfred no worries :)
14:27 gtmanfred I would highly recommend subscribing to the salt-announce list to also get announcements about new releases
14:30 misconfig Looks like that fixed me up. I'm going to write a state to ensure its updated on all minions. Thanks again!
14:31 gtmanfred no problem!
14:33 misconfig Also, subscribed to the salt-announce list :D
14:36 misconfig carbon has some nice features
14:39 dariusjs joined #salt
14:39 gtmanfred yar!
14:41 nfahldieck joined #salt
14:45 nickabbey joined #salt
14:48 nfahldieck Hello, I'm looking for a FOSS web gui, so far I tried Foreman and saltpad. Both did not meet my expectations, sadly. Next is SaltShaker, sadly most of the docu is written in chinese. Do you have any other suggestions apart from the mentioned and SaltStack Enterprise?
14:50 pipps joined #salt
14:54 bluenemo joined #salt
14:54 gheistbane I submitted an issue on github for ssh_known_hosts.present.
14:54 nicksloan joined #salt
14:54 bluenemo hi guys. I want to resize a extended partition containing one logical partition using fdisk. When trying to re-create the logical partition however, it gives me "value out of range": http://paste.debian.net/hidden/e1814cf1/
14:55 bluenemo ah sorry wrong chan
14:58 racooper joined #salt
15:00 abednarik joined #salt
15:02 Xopher joined #salt
15:03 ALLmight_ joined #salt
15:07 Nerigal challenge question, does anyone know how to execute a file.replace loop in a single file to change diffrent line  ?
15:08 Nerigal some how like https://paste.ubuntu.com/23553248/
15:09 XenophonF joined #salt
15:10 gtmanfred Nerigal: http://ix.io/1IUr
15:10 amontalban joined #salt
15:10 amontalban joined #salt
15:11 scoates joined #salt
15:12 pipps joined #salt
15:12 Nerigal @gtmanfred not sure about this line /etc/conftest/config_{{conf}}{{value}}:
15:12 Nerigal whats the goal of this ?
15:12 dxiri joined #salt
15:12 tapoxi joined #salt
15:15 gtmanfred to make unique state ids
15:17 Nerigal aaaah ok thx !
15:17 gtmanfred yup, np
15:17 gtmanfred you can make the unique ids by also generating a hash with salt['pycrypto.gen_hash'] or whatever that module is
15:17 gtmanfred but if you use the line I used, you will have consistent stateid names
15:18 Nerigal but can you tell me if the {{ config }} variable will be correctly interpreted inseide the parttern delacaration
15:18 Nerigal not sure how to test vars output
15:19 rem5 joined #salt
15:19 gtmanfred salt-call cp.get_template salt://path/to/thing /test.txt template=jinja
15:19 gtmanfred and do salt://path/to/file.sls
15:19 gtmanfred and it can test the templating on the file
15:20 Rumbles joined #salt
15:20 Nerigal awsome
15:20 Nerigal thx
15:21 dxiri joined #salt
15:26 dxiri joined #salt
15:28 abednarik joined #salt
15:28 Brew joined #salt
15:29 austin_ joined #salt
15:31 Nerigal @gtmanfred the second line doesn't work
15:33 pipps joined #salt
15:34 hasues joined #salt
15:34 hasues left #salt
15:35 pipps99 joined #salt
15:36 mikecmpbll joined #salt
15:36 gableroux joined #salt
15:37 gtmanfred what line? make sure you fix name, it should be - name: /path/to/file
15:37 gtmanfred also,that was just an example, i have no idea what is in conf and value, you will need to modify it so that the state ids are unique
15:38 gtmanfred Nerigal: it may also be worth trying this way http://ix.io/1IUK
15:42 dhoutz joined #salt
15:42 colegatron joined #salt
15:43 ReV013 left #salt
15:46 pipps joined #salt
15:47 DEger joined #salt
15:47 colegatron_origi joined #salt
15:48 sarcasticadmin joined #salt
15:48 DEger joined #salt
15:51 ALLmightySPIFF joined #salt
15:53 Xopher joined #salt
15:56 Cottser joined #salt
15:57 dxiri joined #salt
15:57 Nerigal @gtmanfred The 'names' argument in state '/etc/conftest/config' in SLS 'test.config' needs to be formed as a list
15:57 Nerigal can't figure why this happen
15:59 cscf Nerigal, are you sure you want 'names'?  Maybe you want 'name'
15:59 pipps joined #salt
16:00 gtmanfred no, it should be names
16:00 gtmanfred and the one I gave you was a list
16:00 PerilousApricot joined #salt
16:01 gtmanfred http://ix.io/1IV2
16:01 ALLmightySPIFF joined #salt
16:01 austin_ i did not see this in carbon release https://docs.saltstack.com/en/develop/ref/states/requisites.html#retrying-states
16:01 austin_ but it says it would be there...
16:01 austin_ any ideas why not added ?
16:02 ALLmightySPIFF joined #salt
16:03 gtmanfred austin_: looks like it made it into 2016.11.0, that just changes thing needs to be backported to the 2016.11.0 branch
16:04 gtmanfred hrm, one second
16:04 BattleChicken joined #salt
16:04 iggy ernescz: (don't know if you got your answer yet), but there are salt cloud states, modules, and runners... I think they need cloud providers, but not necessarily profiles... you could feed those off of whatever data you have available (pillar, sdb, etc)
16:05 BattleChicken left #salt
16:05 austin_ gtmanfred: yea so thats like hugely important for me :)
16:06 gtmanfred hrm, hold on
16:07 iggy #baddesign
16:08 lorengordon joined #salt
16:08 gtmanfred austin_: ahh, it was first implemented back before teh carbon freeze, but it was not merged into carbon, so it won't be available until Nitrogen
16:09 austin_ ugh
16:09 austin_ and nitrogen release date?
16:09 austin_ roughly
16:09 dxiri joined #salt
16:10 pipps joined #salt
16:10 cscf wat? archive.extracted failed with: "User root does not exist"
16:10 cscf How is that even possible?
16:11 gtmanfred austin_: next year, march maybe?
16:11 gtmanfred austin_: usually code freezes happen 6 months after a release
16:12 austin_ gtmfred: sigh.
16:12 mikecmpbll joined #salt
16:12 mavhq joined #salt
16:12 iggy austin_: what are you actually trying to achieve... that retry functionality sounds like a bad feature anyway
16:13 pcdummy Bug in 2016.11.0 and Debian Networking: https://github.com/saltstack/salt/issues/37942
16:13 saltstackbot [#37942][OPEN] Regression with debian network management and the loopback interface. | Description of Issue/Question...
16:13 austin_ iggy: in an awesome world with a clean slate. yes. but the reality of tech debt is very real.
16:13 viz joined #salt
16:14 viz Hi everyone :)
16:14 austin_ there are certain workflows i have that rely on this retry concept.
16:14 iggy I mean, I would think there are better ways to handle that... i.e. wait for the file to become available, then fire an event that runs the state
16:14 cscf Anyone know why archive.extracted suddenly can't find 'root' when it did earlier?  And no, I didn't delete /etc/passwd, I checked :P
16:14 austin_ yes. i totally understand
16:15 iggy I mean cool, you've got it all figured out... was just going to help you brainstorm alternatives, but Nitrogen will probably be out in 6-9 months would be my guess
16:15 austin_ right. i understand. it just would have made my life easier because conceptually the people who will be writing these workflows already understand the retry
16:16 austin_ there are ways around it
16:16 pcdummy iggy: can you help on that one: <ernescz> hello! Does anyone have some example of a state that involves creating a new cloud instance, bootstrapping it and running a highstate on it. Saw an example in docs but can't find it now by any keywords... ?
16:16 austin_ i just need to figure tha tout
16:16 iggy pcdummy: already did
16:16 DammitJim joined #salt
16:16 viz Has anyone had this "TypeError: Required field "deviceChange" not provided (not @optional)" error with salt version salt 2016.11.0 (Carbon)??
16:16 pcdummy iggy: ohh sry, ok :)
16:16 KingOfFools joined #salt
16:16 iggy see ~12 minutes ago
16:17 pcdummy i see
16:17 viz I'm trying to provision a VM on VMware...It used to work until I updated my salt version
16:18 mede joined #salt
16:18 iggy glad I'm at reinvent this week and not here to see the daily stream of 2016.11 bugs ;)
16:18 KingOfFools Why when I'm running two orchestrations simultaneously with salt-run state.orchestrate they are running just fine, but when one is running by scheduler i can't run second one and getting error that "The function "state.orchestrate" is running as PID 20436"?
16:18 viz I'm sure it's not a bug...It's a feature :)
16:19 austin_ iggy: its just a matter of rethinking certain aspects of our workflows. again, it was just easier to get people to understand retry since our workflows already use the retry concept
16:19 austin_ we using salt to replace a very "enterprise" software suite
16:20 ProT-0-TypE joined #salt
16:21 jas02_ joined #salt
16:21 DammitJim when one uses user.present: password:
16:21 DammitJim the password I have in pillar while not hashed will be written to /etc/shadow as is, right?
16:21 jas02 joined #salt
16:21 djgerm joined #salt
16:23 cscf DammitJim, I think you want hash_password: True to make it hash the plaintext before writing it.  However, why are you storing plaintext passwords?
16:23 iggy honeypot obviously
16:29 DammitJim cscf, LOL... I just read that. Not sure how I missed that
16:29 DammitJim thanks
16:29 cscf DammitJim, np.  Also, don't do that.  The default expects a hash for a reason - because it's what you should do.
16:30 DammitJim I know. I have a ticket to get that done, but I'm soooo far behind getting stuff done, it's not even funny
16:32 cscf DammitJim, it's trivial, you literally just use 'openssl passwd -1' like the docs say
16:33 cscf But yeah, I get that
16:33 DammitJim you know what? that's the least I should do
16:33 Lionel_Debroux joined #salt
16:35 ronnix_ joined #salt
16:39 toanju joined #salt
16:43 DammitJim should the hash look the same in /etc/shadow?
16:47 dxiri_ joined #salt
16:53 bltmiller joined #salt
16:57 jpun joined #salt
17:04 samodid joined #salt
17:06 zer0def joined #salt
17:06 jpun left #salt
17:06 wryfi did the url for the salt apt repo change again?
17:07 wryfi i'm getting a ton of these on my hosts
17:07 wryfi An error was encountered while checking the newest available version of package(s): W: Failed to fetch http://repo.saltstack.com/apt/ubuntu/ubuntu14/latest/dists/trusty/main/binary-amd64/Packages  404  Not Found
17:07 psy0rz why is the output of state.apply so different from state.highstate?
17:07 psy0rz it shows everything, not only the changes
17:07 ronnix joined #salt
17:08 gtmanfred wryfi: yes
17:08 wryfi gtmanfred: why do they keep changing it?
17:08 gtmanfred ¯\(°_o)/¯
17:08 wryfi this is like the third time in a year, what the holy f*ck?
17:08 gtmanfred this is the last time
17:08 wryfi famous last words ;)
17:08 gtmanfred famous last words
17:08 wryfi lol
17:08 gtmanfred wryfi: we have had the new format valid for a while
17:08 gtmanfred it was sent out to the salt-announce list
17:09 gtmanfred umm. lemme find the link again
17:09 gtmanfred https://repo.saltstack.com
17:09 gtmanfred https://groups.google.com/forum/#!topic/salt-announce/5HKul7Azv-M
17:09 wryfi thanks gtmanfred
17:09 gtmanfred no problem
17:09 * wryfi subscribes to salt-announce
17:09 gtmanfred :)
17:11 jarp joined #salt
17:12 PerilousApricot joined #salt
17:18 ronnix_ joined #salt
17:18 sjohnsen joined #salt
17:19 XenophonF does anyone have a salt execution/states module for php composer?
17:20 XenophonF never mind should have RTFM'ed first!
17:20 XenophonF https://docs.saltstack.com/en/latest/ref/states/all/salt.states.composer.html
17:20 gtmanfred XenophonF:do you run pkg.installed functinos on windows minions?
17:21 donmichelangelo joined #salt
17:22 XenophonF yes
17:22 jas02 joined #salt
17:22 XenophonF using the windows package repo functionality in Salt
17:23 XenophonF hm, but how do i tell salt to tell composer to install an additional package?
17:24 gtmanfred XenophonF: can you help me with this https://github.com/saltstack/salt/issues/37900 ? i have no idea what is going on there :/
17:24 saltstackbot [#37900][OPEN] saltstack masterless windows | I am getting following issue while installing software in window  saltstack masterless mode. Please help me any thing wrong with my configuration....
17:25 ProT-0-TypE joined #salt
17:27 XenophonF if i had to guess, the guy's probably trying to call firefox.sls like it's a Salt State file
17:27 psy0rz is there a way to remove all users that have no password from a mysqldb, via a salt state?
17:27 XenophonF when in reality they need to have a separate firefox.sls with 'firefox: pkg.installed' in it
17:27 XenophonF and the winrepo dir defined in the local minion config, etc.
17:27 psy0rz i can do mysql_query.run with "DELETE from user where password='';", but then it shows it as 'changed' on every highstate
17:28 ronnix joined #salt
17:28 XenophonF i'm not 100% certain because i don't use masterless salt minions
17:28 XenophonF brb
17:28 jas02 joined #salt
17:29 georgemarshall joined #salt
17:30 nickabbey joined #salt
17:31 jas02 joined #salt
17:35 dxiri joined #salt
17:35 Jimlad joined #salt
17:38 CampusD joined #salt
17:39 dxiri joined #salt
17:39 CampusD hello all, anybody using the pepper client? I was wondering if there were any options to format the output and make it more readable
17:40 onlyanegg joined #salt
17:43 NV joined #salt
17:47 whytewolf CampusD: the pepper client is kind of an after thought and an example for libpepper. not sure it is meant to be a full fix. just give you ideas on using the library
17:50 zer0def joined #salt
17:56 CampusD i see, make sense
17:58 nickabbey joined #salt
18:01 Nerigal @gtmanfred got it worked :) thanks a lot
18:02 impi joined #salt
18:02 jas02 joined #salt
18:03 plinnell joined #salt
18:04 jas02 joined #salt
18:06 rubenb joined #salt
18:09 dxiri joined #salt
18:10 anotherzero joined #salt
18:12 Edgan joined #salt
18:14 kreid joined #salt
18:15 ivanjaros3916 joined #salt
18:16 o1e9 joined #salt
18:17 zer0def joined #salt
18:19 gableroux joined #salt
18:19 Nerigal would it be better tu use file.line or file.replace to edit lines in files 'search and replace'
18:21 _JZ_ joined #salt
18:23 jas02 joined #salt
18:24 swa_work joined #salt
18:25 dxiri joined #salt
18:26 fracklen joined #salt
18:27 irctc353 joined #salt
18:27 swa_mobil joined #salt
18:28 irctc353 hey, does anyone know of a saltstack output parser for highstate runs? for example, i'm looking to add highstate runs to cron and would like to know when they fail
18:32 dxiri joined #salt
18:36 dxiri_ joined #salt
18:36 samodid hi there
18:36 samodid could somebody tell me
18:36 samodid who render top.sls  state file
18:37 samodid master or minion ?
18:37 pcdummy samodid: i'm pretty sure its master
18:37 mpanetta Everything is rendered on the master...
18:38 whytewolf that is incorrect. minion renders state stuff
18:38 pcdummy irctc353: add "--out json"
18:38 mpanetta Oh?  Even the jinja?
18:38 whytewolf yes even the jinja
18:38 mpanetta For some reason I thought that was on the master too...
18:38 samodid i know that master render pillar data
18:38 pcdummy whytewolf: no top.sls is renderd on master i'm pretty sure
18:38 MTecknology pcdummy: no, it's not
18:38 pcdummy ok :/
18:39 pcdummy 2 people vote against :)
18:39 pcdummy :)
18:39 mpanetta and TIL :)
18:39 samodid I have top sls which relay on grain
18:39 samodid and minion does not have that grain
18:39 samodid state.show_top show nothing
18:39 irctc353 did something change with the saltstack ubuntu repo? startinng to get 404 now for trusty
18:40 irctc353 W: Failed to fetch http://repo.saltstack.com/apt/ubuntu/ubuntu14/latest/dists/trusty/main/binary-amd64/Packages  404  Not Found
18:40 samodid so i'm curios who render top.sls for state
18:41 whytewolf irctc353: that does not look like the correct path
18:42 whytewolf irctc353: deb http://repo.saltstack.com/apt/ubuntu/14.04/amd64/latest trusty main
18:43 whytewolf irctc353: https://groups.google.com/forum/#!topic/salt-announce/5HKul7Azv-M
18:45 mikecmpbll joined #salt
18:46 nickabbey joined #salt
18:48 pcdummy and i would use the https:// url for repo.salstack.com
18:48 pcdummy repo.saltstack.com
18:49 whytewolf I just copied out of the docs :P
18:52 felskrone joined #salt
18:54 kreid left #salt
18:54 ponyofdeath hi, trying to do a for loop in my pillar file. at the top i have {% set radon_ports = '9000 9001 9002' %} but when i try to do {% for port in radon_ports %} i get a template error. any ideas?
18:55 samodid that's not shell :)
18:55 samodid radon_ports - string
18:55 whytewolf ponyofdeath: {% set ranon_ports = ['9000','9001','9002'] %}
18:56 nickabbey joined #salt
18:56 samodid whytewolf: you are faster :)
18:56 whytewolf with typo :P
18:56 ponyofdeath ty ty
18:57 Trauma joined #salt
18:58 cliluw joined #salt
19:00 ronnix joined #salt
19:06 DEger joined #salt
19:08 nicksloan joined #salt
19:12 cscf I don't know much Python, but won't "if not uid: " trigger if uid is 0, as well as null?
19:13 cscf ie, if you specify 'root', it says 'user root does not exist'
19:13 cscf https://github.com/saltstack/salt/blob/develop/salt/states/archive.py#L603
19:15 mohae_ joined #salt
19:16 nicksloan joined #salt
19:18 tercenya joined #salt
19:19 sp0097 joined #salt
19:23 jas02 joined #salt
19:24 ProT-0-TypE joined #salt
19:26 nidr0x joined #salt
19:26 jas02_ joined #salt
19:28 ronnix joined #salt
19:33 djgerm joined #salt
19:34 ozux joined #salt
19:35 dxiri_ joined #salt
19:35 lorengordon joined #salt
19:39 nicksloan joined #salt
19:40 netcho joined #salt
19:41 pcdummy cscf: "if not uid:" any empty string, 0, NULL, False and much more is there valid.
19:41 pcdummy invalid.
19:41 cscf pcdummy, yeah, I'm filing the bug now
19:42 pcdummy cscf: good catch, btw.
19:42 cscf 'user root does not exist' is a very confusing error message to get when trying to unpack an archive
19:42 whytewolf should be 'if uid not None:' gid has the same issue
19:42 cscf whytewolf, yeah, I'm almost done writing the Issue
19:43 whytewolf you could do a PR too ;)
19:43 cscf https://github.com/saltstack/salt/issues/37969
19:43 saltstackbot [#37969][OPEN] Archive.extracted fails if -user: root is specified | Description of Issue/Question...
19:44 cscf I don't seem to have permission to tag it?
19:44 whytewolf employees will go back and tag it later
19:45 pcdummy If you guys manage Debian /e/n/interfaces dont use 2016.11.0 wait for 2016.11.1
19:45 pcdummy https://github.com/saltstack/salt/issues/37942
19:45 saltstackbot [#37942][OPEN] Regression with debian network management and the loopback interface. | Description of Issue/Question...
19:45 * whytewolf doesn't currently use debian/ubuntu anyway :P
19:45 * pcdummy is a big fan of ubuntu
19:46 whytewolf I'm not. although it got better from it's old days when it wasn't anywhere near the linux standards.
19:48 whytewolf most of my issues with it were from older versions though. it has defintly gotten better
19:49 nicksloan joined #salt
19:50 whytewolf my biggest pet pev with the current ubuntu is the defaulting to auto start every new package
19:51 pcdummy whytewolf: you mean "apt-get install mariadb-server" it starts mysqld?
19:51 whytewolf it did in 14.04 not sure if they kept that with 16
19:51 whytewolf but yes
19:52 pcdummy its still the default
19:52 pcdummy but i'm sure theres an option to disable that.
19:52 ponyofdeath https://gist.github.com/evilbulgarian/9db75e5f922c59089585e3795d324efe anyone know how from this template in the nginx.ng fomrula i can get two nested if loops inside a location { } block?
19:52 whytewolf it shouldn't be something you have to turn off. it should be an option you have to turn on
19:54 pcdummy ponyofdeath: i have a custom version of nginx.ng for that.
19:54 cscf ponyofdeath, you know that bit in the docs where it says " an unmaintainable tangle of logic and data"? That looks like one
19:55 ponyofdeath yup pretty bad
19:55 cscf At least put some newlines in there
19:55 pcdummy cscf: its from the formula
19:55 pcdummy cscf: that formula is over engineered but nice.
19:56 ponyofdeath yeah i just need to be able to add tow if { } statements inside the location { }
19:56 whytewolf the ng formulas make my head hurt.
19:56 cmarzullo what are ng formulas?
19:56 ponyofdeath but from that jinja template / macro i am lost :)
19:57 pcdummy ponyofdeath: hmm i can help :)
19:57 bltmiller joined #salt
19:58 babilen whytewolf: We could just remove them (apart from the nginx one)
19:58 monokrome joined #salt
19:58 whytewolf cmarzullo: ng formulas are formulas that are "next generation" they were meeant to be less configuration from a users part. but the logic in them tends to be wildly complicated and often breaks
19:58 babilen They are often way too complicated
19:58 pcdummy babilen: please dont remove the php.ng one
19:58 babilen pcdummy: Nothing will be removed
19:59 PerilousApricot joined #salt
19:59 gableroux joined #salt
19:59 cmarzullo thanks gang.
19:59 pcdummy ponyofdeath: its that a current example?
19:59 nicksloan joined #salt
19:59 ponyofdeath pcdummy: what you mean current?
19:59 ponyofdeath pcdummy: the paste ? i got that from the latest nginx.ng
20:00 dtsar joined #salt
20:00 PerilousApricot joined #salt
20:01 babilen Holy shit .. who wrote that nginx.ng template?
20:01 whytewolf i think it was the devil
20:02 pcdummy ponyofdeath: hmm it should work with dicts in location
20:02 pcdummy babilen, whytewolf: unmaintable but customizeable ... :)
20:03 babilen Well .. I use that formula in production
20:03 pcdummy cheuschober  <-- whoever is that "devil" :)
20:03 ponyofdeath pcdummy: https://gist.github.com/evilbulgarian/aa5f7887fb9f2d6467e2ef9a2fd73431
20:03 pcdummy babilen: same
20:03 ponyofdeath thats my pillar for ngin
20:03 * whytewolf doesn't use formulas
20:06 Salander27 joined #salt
20:09 jas02 joined #salt
20:09 pcdummy ponyofdeath: thats what you want as result: http://paste.ubuntu.com/23554837/ right?
20:09 ponyofdeath yuppers
20:10 nickabbey joined #salt
20:10 tercenya joined #salt
20:12 pcdummy ponyofdeath: you tested something like this: http://paste.ubuntu.com/23554846/ ?
20:12 s_kunk joined #salt
20:12 pcdummy i have .json pillar (in mongodb) so not sure its right.
20:13 nickabbey joined #salt
20:15 dtsar hi all - i'm having a hell of a time debugging why the postgres_user.present state isn't available on a salted VM
20:16 dtsar new vagrant box brought up and provisioned with salt (version 2016.11.0 (Carbon))
20:16 dtsar running masterless
20:16 dtsar OS is ubuntu 14.04 LTS
20:17 dtsar results of `sys.doc postgres.user_exists` comes up empty
20:17 dtsar installed postgres just fine
20:18 pcdummy dtsar: gimme a second
20:18 dtsar np
20:18 pcdummy dtsar: think you need some python drivers, but i'll have a look.
20:19 dtsar gah
20:19 dtsar python-dev package?
20:19 pcdummy pg binary you need AND...
20:20 dtsar psycopg2?
20:21 gtmanfred dtsar:pcdid you set the correct path to the initdb file? https://github.com/saltstack/salt/issues/37935
20:21 saltstackbot [#37935][OPEN] Postgres module regression on 2016.11 | Description of Issue/Question...
20:21 gtmanfred https://github.com/saltstack/salt/issues/37935#issuecomment-263572479
20:21 saltstackbot [#37935][OPEN] Postgres module regression on 2016.11 | Description of Issue/Question...
20:21 gtmanfred postgres.bins_dir: '/usr/lib/postgresql/<version>/bin/'
20:22 pcdummy dtsar: no python module needed but as gtmanfred told, the path of the pg binary :)
20:24 jas02 joined #salt
20:24 abednarik joined #salt
20:30 smcquay joined #salt
20:34 espacio_grande joined #salt
20:35 Bryson joined #salt
20:37 chamunks Error from /var/log/salt/minion http://hastebin.com/raw/evekiwaxug the ports are open on the local router but it seems my minions aren't able to reach the salt master on my local computer.
20:37 Blight_ joined #salt
20:38 Rumbles joined #salt
20:38 Blight_ Hi there, anyone knows how DNS implementation works internally in the salt minion, does it cache indefinitely the DNS endpoint of the master?
20:39 dtsar gtmanfred: thanks - will check it out
20:39 dtsar pcdummy: thanks!
20:39 chamunks Nevermind its apparently an extremely out of date master.
20:40 Blight_ I have some minions that are not connected to the Master after some troubleshooting they're sending SYN request to IP that don't exist anymore so I susppect the master IP  which is a load balancer changed vip and the minion keep using the same old IP
20:40 Blight_ looks like that: https://github.com/saltstack/salt/issues/10032
20:40 saltstackbot [#10032][OPEN] salt-minion uses/caches master's IP address beyond its TTL | If the salt-master moves to a different machine (to say, remove cruft, the machine died, etc.) _the minions will not reconnect._...
20:41 pcdummy Blight_: seems you found your answer yourself :)
20:42 Blight_ yeah but it seems still unresolved hmm
20:42 pcdummy Blight_: give RAET a chance (i tried months ago but there was no IPv6 support so i gave up): https://docs.saltstack.com/en/latest/topics/transports/raet/index.html
20:42 hemebond joined #salt
20:42 gtmanfred i wouldn't use raet
20:42 gtmanfred just fyi
20:42 pcdummy or still not use it...
20:43 gtmanfred if you want to use an alternative transport layer, i would recommend the tcp transport layer
20:43 _aeris_ joined #salt
20:43 whytewolf is raet ever going to be anything more then a pet project?
20:43 gtmanfred that is going to be the default in the future
20:43 gtmanfred whytewolf: can you keep a secret :P
20:43 Blight_ well it won't fix the dns resolution problem I guess
20:43 whytewolf of coarse i can :P
20:43 pcdummy :)
20:43 gtmanfred raet is basically dead
20:44 mpanetta Oh good...
20:44 whytewolf yay!
20:44 Blight_ the only good solution I see is to remove the load balancer
20:44 gtmanfred they are working on switching the default transport to tcp using tornado
20:45 Blight_ and make sure the Salt master doesn't change IP
20:45 gtmanfred because zeromq is basically a black box for testing once the packet goes in
20:45 Blight_ on AWS an ec2 reboot change the ip addr it's great :o
20:46 gtmanfred Blight_: idk if this is possible, but does ec2 let you make a floating ip on a private vpc that you could always reserve for the master?
20:46 whytewolf there used to be an option to stop that from happening...
20:46 gtmanfred i know you can specify a fixed ip on a private network in openstack
20:46 UtahDave joined #salt
20:46 gtmanfred https://docs.saltstack.com/en/latest/topics/transports/tcp.html
20:46 pcdummy WOW
20:47 gtmanfred whytewolf: pcdummy mpanetta that is why this was added, https://github.com/saltstack/salt/pull/35494 to make the transition to tcp easier, so that it can fallback to zeromq if the master isn't listening using tcp/tornado
20:47 saltstackbot [#35494][MERGED] Add minion transport failover | What does this PR do?...
20:47 mpanetta Nice!
20:48 pcdummy msgpack is an extremely nice format.
20:48 Blight_ I will have to play with static IP yes
20:48 Blight_ since we use Salt to deploy app it's a problem since some severs will disapear at some point :o
20:48 Blight_ I have to remove ELB
20:51 Duvrazh joined #salt
20:51 ponyofdeath pcdummy: sorry nope, {%- elif v|length() > 0 and (v[0] is number or v[0] is string) -%}    <== is where salt complains
20:51 gtmanfred you shouldn't need () on length, and what is the error it gives you?
20:52 jas02 joined #salt
20:52 ponyofdeath TypeError: object of type 'NoneType' has no len()
20:52 tercenya joined #salt
20:53 gtmanfred what is v supposed to be? cause it looks like it is None
20:54 ponyofdeath gtmanfred: its from https://gist.github.com/evilbulgarian/9db75e5f922c59089585e3795d324efe
20:54 jas02 joined #salt
20:55 jas02 joined #salt
20:57 jas02 joined #salt
20:57 Blight_ thanks for the answers btw :)
20:58 pcdummy ponyofdeath: i remember that error.
20:58 gtmanfred ponyofdeath: what is the config that you are passing into that template?
20:59 ponyofdeath gtmanfred: https://gist.github.com/evilbulgarian/ba9253caabf54bb93297641656897a6c
20:59 bluenemo joined #salt
21:01 dxiri joined #salt
21:01 gtmanfred is it not because you have this line `config: None
21:01 gtmanfred ?
21:01 pcdummy :)
21:03 ponyofdeath nope
21:03 ponyofdeath now i get different error
21:03 ponyofdeath Rendering SLS 'base:nginx.ng.servers' failed: Jinja variable 'salt.utils.odict.OrderedDict object' has no attribute 'config'
21:03 gtmanfred remove the whole default object? or set config: {}
21:03 ponyofdeath thats to tell it to remove the default server
21:03 ponyofdeath this has not caused problems
21:03 ponyofdeath but i will remove it
21:04 ponyofdeath yup same issues as before
21:04 ponyofdeath without default: section
21:06 t0ny joined #salt
21:08 dxiri_ joined #salt
21:08 t0ny Trying out status beacon in the latest version.  Getting 'invalid literal' whenever it fires.  At its simplest should just have beacons:status:interval right?
21:09 tercenya joined #salt
21:09 gtmanfred at its simplest would just be
21:09 gtmanfred beacons:
21:09 gtmanfred status: {}
21:10 gtmanfred but i think it can be
21:10 gtmanfred beacons:
21:10 gtmanfred status:
21:10 gtmanfred - interval: number
21:10 gtmanfred man, our beacon documentation is awful
21:10 whytewolf engine documentation isn't much better
21:11 gtmanfred yeah
21:12 t0ny Hmmm..tried  status: {} and interval: and -interval: 10...same invalid literal for int with base 10: 'a'
21:12 ponyofdeath pcdummy: any other ideas?
21:13 t0ny I have an inotify beacon working in 2016.3.4 production.  anybody have the status beacon working currently?
21:15 cyborg-one joined #salt
21:18 ozux joined #salt
21:19 pcdummy ponyofdeath: pm
21:21 gtmanfred whytewolf: t0ny it will def be a list starting in Nitrogen https://github.com/saltstack/salt/pull/37974
21:21 saltstackbot [#37974][OPEN] [Nitrogen Deprecation] Beacons config should be a list not a dict now | Change the deprecation warning to raising an error when a dict is used
21:26 jas02 joined #salt
21:27 whytewolf ok, I know a bit more about why you are getting that error t0ny ... but i am not sure about the why ...
21:28 whytewolf when the beacon is set with out a config it sets the config to {'time': 'all', 'loadavg': 'all', 'meminfo': 'all', 'cpustats': 'all', 'vmstats': 'all'}, then itterates over them. however on the first iteration it pulls the first dict key. and pulls the first letter from the first dict value
21:28 t0ny yeah...do tell
21:29 whytewolf instead of pulling all it is pulling a
21:29 smcquay joined #salt
21:31 t0ny so i could pass a valid config if I knew all of the params to status, and it would work?
21:31 whytewolf in thoery.... I'm not sure about their testing if the config is valid.
21:31 whytewolf if len(config) < 1:
21:32 whytewolf gtmanfred: is there no unit testing on beacons looking at this I'm not sure how it would have based a basic test
21:35 tercenya joined #salt
21:36 t0ny well hell.  was going to use this as my gateway to thorium.  I guess I will wait a bit until at least status shows up somewhere in the documentation
21:39 tercenya joined #salt
21:39 gtmanfred these are the only beacons that are tested
21:39 gtmanfred __init__.py__init__.pycadb_beacon_test.pyadb_beacon_test.pycglxinfo.pyinotify_beacon_test.pyinotify_beacon_test.pyc
21:39 gtmanfred adb, glxinfo, inotify
21:39 whytewolf ahh the most used ones ;)
21:40 ian__ joined #salt
21:41 whytewolf t0ny: you might want to work with inotify if you want to test out thorium.
21:41 whytewolf inotify is a lot more ... tested
21:42 t0ny Might be a good plan ;) I opened up an issue.  If status is going to be the one that is literally used to demonstrate thorium in the documentation, might be worth the add to the test suite
21:43 t0ny thanks to both you guys for helping me track this down
21:48 lorengordon joined #salt
21:48 lorengordon any salt events at aws re:invent?
21:48 PurityPrincess joined #salt
21:51 PurityPrincess left #salt
21:55 Derailed Hey everyone, I upgraded to 2016.11.0+ds-1 and now this error occurs when I try to start the master: http://dpaste.com/10A3Q48
21:55 Derailed I don't have any remotes defined as far as I'm aware.
21:55 zmalone joined #salt
21:56 whytewolf you have no gitfs based setup?
21:57 Derailed ah wait, all my gitfs-remotes were long-since commented out, but this wasn not:
21:57 Derailed etc-salt-master.d/fileserver.conf
21:57 Derailed 3:  - git
21:58 Derailed Okay interesting. commenting out the 'git' fileserver_backend made the error go away
21:58 DEger joined #salt
21:58 Derailed so I had the 'git' backend, but no 'gitfs_remotes' defined, and it broke. Is that expected?
21:59 pcdummy its a bug
21:59 whytewolf yeah that would be a bug
21:59 Derailed Cool. I'm just seeing if I can find an issue on github
21:59 pcdummy https://github.com/saltstack/salt/blob/develop/salt/utils/gitfs.py#L2225 <-- that line needs an ident
22:00 pcdummy i think
22:00 pcdummy But i'm not sure as i haven't take a closer look.
22:00 pcdummy took
22:03 pcdummy Derailed: do you report that one?
22:03 Derailed I'm writing up a report for it
22:03 pcdummy Thanks
22:03 Derailed since I'm not using gitfs it won't cause me any drama
22:06 teclator joined #salt
22:10 Edgan joined #salt
22:11 MajObviousman so, we discussed a few weeks back that a watch_in on a service.restart should only operate the restart one time
22:11 MajObviousman when I do a state.show_sls, I see it rendered a single time
22:12 MajObviousman when I do a state.sls test=True, it says that the restart would only be run a single time
22:13 MajObviousman when I actually run the damn state? Guess what, it runs once per user
22:13 * MajObviousman throws things
22:13 honestly did you put the state inside the loop?
22:14 MajObviousman no
22:15 MajObviousman in fact, the output of the salt invocation itself shows that state running only a single time
22:18 jas02 joined #salt
22:18 MajObviousman https://gist.githubusercontent.com/anonymous/d0fbb95621cd462d08b291a371e3bdd3/raw/74a2aeac3ddec76ed916a05da940b80f66622c02/prodsupportusers.sls   this is the state file
22:20 MajObviousman huuummmm, I think I just figured it out
22:20 MajObviousman salt isn't restarting the service. It's the realm command that's doing it
22:20 jas02_ joined #salt
22:20 MajObviousman god, I really am coming to hate sssd
22:21 MajObviousman those of you considering it to join your Linux boxen into an AD domain, don't. Stick to simpler, more well understood mechanisms like LDAP and RADIUS
22:21 Derailed pcdummy: does this look like enough information to be useful? https://github.com/saltstack/salt/issues/37980
22:21 saltstackbot [#37980][OPEN] Having 'git' in fileserver_backends and no gitfs_remotes defined causes a crash | ...
22:22 teclator_ joined #salt
22:22 pcdummy Derailed: should be enough, maybe add in a explicit sentence "git as backend but no git remotes defined".
22:26 jas02 joined #salt
22:27 jas02_ joined #salt
22:31 jas02 joined #salt
22:44 zzuf joined #salt
22:45 XenophonF MajObviousman: it's not really that difficult
22:45 XenophonF I've used NIS/Kerberos, winbind, nss_ldap/pam_ldap, and sssd.
22:46 XenophonF winbind was perhaps the most finicky
22:46 XenophonF sssd works pretty well
22:51 pcdummy XenophonF: need to remember that, thanks
22:53 MajObviousman realm is restarting sssd every time I add a user, and it's too simple of a tool to allow me to alter this behavior
23:02 Edgan joined #salt
23:02 bltmiller joined #salt
23:11 Edgan joined #salt
23:11 rem5 joined #salt
23:16 netcho joined #salt
23:28 jas02 joined #salt
23:39 PerilousApricot joined #salt
23:40 gimpy2938 death to sssd
23:42 abednarik joined #salt
23:42 netcho joined #salt
23:43 MajObviousman gimpy2938: hear hear
23:43 pcdummy gimpy2938: tell more, why?
23:47 PerilousApricot joined #salt
23:47 ssplatt joined #salt
23:48 netcho_ joined #salt
23:54 whytewolf i think the hate of sssd is shadowing the real problem... death to AD
23:54 whytewolf :P
23:58 PerilousApricot joined #salt
23:59 dxiri joined #salt

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