Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-07-24

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

All times shown according to UTC.

Time Nick Message
00:00 Sokel left #salt
00:02 kevinquinnyo joined #salt
00:03 timoguin joined #salt
00:03 kevinquinnyo i need to completely stop a service and then start it, but only in the context of the initial installation of the service's package.  I *think* I read something about a "context" key?  Not sure if that's what I need.
00:04 kevinquinnyo Can someone point me in the right direction?
00:05 kevinquinnyo or some sort of requisite maybe?  Sorry I'm still lost / learning.  If anyone can help I'd appreciate it
00:06 snarfy^ i think if your service.running statement watches a pkg.install, it will trigger when the pkg is installed, but not if the pkg is already installed?
00:06 napsterX joined #salt
00:07 kevinquinnyo snarfy^: ohh i forgot watch isn't just for files
00:07 kevinquinnyo let me try that
00:07 kevinquinnyo thanks
00:08 Nazca joined #salt
00:09 jodv scoates: what is the reactor doing?  executing a runner?
00:10 scoates jodv: it is, but that doesn't seem to be it. might've been a sync issue, but it seems to have gone away, somehow. so… crossing my fingers that I might actually get something done, today(night) still.
00:10 kevinquinnyo hey snarfy^ (since you responded) or anyone else, I know I can setup conditionals based on things like grains or pillars in a state, but can i also do that based on a minion-id glob/pcre?
00:10 jodv scoates: what is the runner doing?  sending an execution module command to some minion?
00:12 kevinquinnyo for instance:  {% if salt['grains.get]('role') == 'foo' -%}  <-- can i do something like that for a match on the minion id instead of a particular grain?  (sorry for syntax errors if present in example)
00:12 scoates jodv: fetching pillar for an arbitrary minion
00:12 snarfy^ kevinquinnyo, sure something like {% if grains['fqdn'] == 'jo-mamas-minion-01' %}   ?
00:12 kevinquinnyo fqdn is the hostname though, right?  what if that's different than the /etc/salt/minion_id ?
00:12 snarfy^ yeah you got it
00:12 snarfy^ oh... good point.
00:13 snarfy^ i think 'id' is a built-in grians. you can list them with grains.items i think
00:13 kevinquinnyo ahhh
00:13 kevinquinnyo you are correct
00:13 kevinquinnyo thanks snarfy^
00:13 snarfy^ yeah grains['id'] maps to the minion id. my setup is just to have id: {{ grains['fqdn' }} in the minion config ;)
00:14 snarfy^ i'm helping!
00:14 snarfy^ :) i'm also going home for the day.
00:16 jodv scoates: what was the extension module that wasn't being reloaded properly?
00:17 scoates ? it was a custom extension module that I was calling from a reactor jinja (because of the aforementioned #!py problem)
00:19 mosen did osfinger grain somehow change between something like v2014.7 and 2015.5.. sorry if this was posted somewhere
00:21 akitada joined #salt
00:21 amcorreia joined #salt
00:21 jodv scoates: I was more trying to clarify, since "extension module" can refer to an execution module, state module, custom grain, log handler, etc. :)
00:22 jodv what type of thing it was
00:22 twodayslate joined #salt
00:22 scoates ah. it's whichever one is loaded as __salt__['modulename.functionname']
00:22 jodv execution module ;)
00:22 scoates via the extension_modules: config, and in modules/
00:22 scoates sure (-:
00:25 jodv scoates: i guess instead of just asking you all these leading questions, it might be more productive to say that I'm trying to drive at where this execution module function is being executed, since that's a minion-side thing
00:25 scoates it's master-side. it's running as a reactor script.
00:29 jodv afaik, execution modules don't actually execute in the master .... like, in a reactor SLS you could specify local.<module>.<function>, but then you have to provide a 'tgt' parameter for the minion(s) that it will execute on
00:30 scoates ? it does seem to be running on the master. I just stopped my testmaster's minion to be sure.
00:31 theologian joined #salt
00:34 jodv scoates: that doesnt sound right to me :/  but without seeing your reactor SLS, I'm not sure what the flow is
00:35 scoates heh my reactor sls is `{{salt['reactorworkaround.preseed_minions'](data)}}`
00:35 scoates (I have an extension execution module: reactorworkaround.sls)
00:38 jodv and that works (does what you expect)?
00:39 scoates yes
00:39 scoates or at least seems to, so far, now.
00:42 aqua^c joined #salt
00:42 jodv scoates: it doesnt make sense to me that the 'salt' dict would be available in a reactor SLS
00:44 jmreicha joined #salt
00:44 scoates it seems to me that it is.
00:45 scoates see comment here: https://github.com/saltstack/salt/issues/25681#issuecomment-124261740
00:45 saltstackbot [#25681]title: #!py renderers do not have a properly-populated __salt__ in Reactor | Try the following reactor script:...
00:46 scoates got to run out for a bit.
00:49 abele joined #salt
00:49 subsignal joined #salt
00:54 jodv scoates: interesting, techhat said what I was thinking ;)  ... i'll follow the issue and see where that ends up
00:58 viq joined #salt
01:06 napsterX joined #salt
01:16 Vynce joined #salt
01:17 Vynce did the usage for the bootstrap script recently change? (without the main docs reflecting it, even…)
01:17 Vynce i had an installation script tha tworked a couple days ago, and now doesn't, claiming bootstrap requires command line args
01:17 timoguin joined #salt
01:19 Steven- joined #salt
01:21 evilrob joined #salt
01:23 kevinquinnyo i need to run some commands only if a pkg.installed actually changed something -- i'm getting lost on requisites,  onchanges?  onchanges_in ?  which one should i use, and where?
01:24 cowpunk22 joined #salt
01:26 kevinquinnyo http://pastebin.ca/3072541  <-- maybe that will make it clearer?
01:31 Savemech joined #salt
01:33 CaptTofu_ joined #salt
01:41 Brew joined #salt
01:47 omegamike joined #salt
01:55 doriftoshoes joined #salt
01:55 jodv joined #salt
01:59 saltstackbot [reddit-saltstack] I am learning salt and lost on 'requisites'. Code and some explanation in text-section. Can someone please help me get on the right track here? https://www.reddit.com/r/saltstack/comments/3eeae2/i_am_learning_salt_and_lost_on_requisites_code/ - 2015-07-24 - 02:56:47
01:59 napsterX joined #salt
02:01 dude051 joined #salt
02:12 imanc joined #salt
02:16 p0rkbelly joined #salt
02:16 otter768 joined #salt
02:18 sunkist joined #salt
02:19 cowpunk22 joined #salt
02:28 venu0336 joined #salt
02:40 stooj joined #salt
02:42 kal0pr joined #salt
02:42 quasiben joined #salt
02:49 p0rkbelly joined #salt
03:01 pviktori joined #salt
03:01 cliluw joined #salt
03:02 mt joined #salt
03:07 evle joined #salt
03:07 aurynn joined #salt
03:11 hacksepe joined #salt
03:12 favadi joined #salt
03:15 hacksepe I am writing an execution module and trying to understand how - if it is possible - to access a class defined in another execution module
03:16 hacksepe am I able to access classes in the same way I can access a function?  e.g. __salt__['mymodule.MyClass'](arg1,arg2)?
03:16 p0rkbelly joined #salt
03:20 hacksepe left #salt
03:21 madpenguin joined #salt
03:21 hacksepe joined #salt
03:35 omegamike joined #salt
03:36 timoguin joined #salt
03:46 thayne joined #salt
03:46 monkey661 joined #salt
03:50 mioli joined #salt
03:50 p0rkbelly joined #salt
03:55 monkey66 joined #salt
04:05 ageorgop joined #salt
04:06 monkey661 joined #salt
04:06 hal58th joined #salt
04:07 subsignal joined #salt
04:07 unholycrab joined #salt
04:08 aparsons joined #salt
04:11 madpenguin joined #salt
04:12 ageorgop i've been using vagrant with a 14.04 image and started getting " * ERROR: You need to allow pip based installations (-P) in order to install the python package 'tornado >= 4.0'
04:12 ageorgop "
04:12 malinoff joined #salt
04:13 aparsons joined #salt
04:15 kal0pr joined #salt
04:19 cowpunk22 joined #salt
04:19 p0rkbelly joined #salt
04:22 fotis joined #salt
04:42 madpenguin joined #salt
04:42 keimlink joined #salt
04:42 yota joined #salt
04:47 hblah joined #salt
04:50 cpowell joined #salt
04:50 jodv joined #salt
04:51 jaybocc2 joined #salt
05:00 markm_ joined #salt
05:08 Eureka70_ joined #salt
05:14 kal0pr joined #salt
05:17 joeto joined #salt
05:18 jaybocc2 joined #salt
05:19 clintberry joined #salt
05:26 TyrfingMjolnir joined #salt
05:26 otter768 joined #salt
05:36 favadi joined #salt
05:41 zer0def joined #salt
05:42 catpigger joined #salt
05:50 TyrfingMjolnir joined #salt
06:05 AndreasLutro joined #salt
06:10 napsterX joined #salt
06:12 shantanoo joined #salt
06:13 kal0pr joined #salt
06:16 rdas joined #salt
06:29 madpenguin joined #salt
06:30 TyrfingMjolnir joined #salt
06:30 sirex joined #salt
06:39 jaybocc2 joined #salt
06:42 julienlavergne joined #salt
06:55 jaybocc2 joined #salt
06:57 jhauser joined #salt
06:57 c10b10 joined #salt
06:57 KermitTheFragger joined #salt
06:58 dopesong joined #salt
07:01 thalleralexander joined #salt
07:01 kawa2014 joined #salt
07:04 jmoreau joined #salt
07:12 omegamike joined #salt
07:13 fed10 joined #salt
07:13 fed10 hey guys i was wondering how a developer
07:13 fed10 could get involved with this project
07:14 ThomasJ fed10: http://docs.saltstack.com/en/latest/topics/development/contributing.html
07:14 Ztyx joined #salt
07:15 ThomasJ fed10: Also http://saltstack.com/careers/
07:16 xintron salt-cloud runners.cloud.create, will that one see if the instance name exists before trying to create it and if existing; try to connect and run the provisioning states?
07:17 eseyman joined #salt
07:17 TyrfingMjolnir joined #salt
07:19 zsoftich2 joined #salt
07:27 otter768 joined #salt
07:30 dvestal joined #salt
07:37 gcfhvjbkn joined #salt
07:39 sporkd2 joined #salt
07:47 joeto joined #salt
07:53 j-saturne joined #salt
07:53 markm joined #salt
07:56 gcfhvjbkn joined #salt
08:00 Vynce joined #salt
08:00 the_frey joined #salt
08:01 stoogenmeyer joined #salt
08:01 stoogenmeyer hey guys, will the states described in this article work with the latest stable release of salt? https://www.packtpub.com/books/content/cloud-auto-scaling-with-saltstack
08:02 stoogenmeyer in the article it says that develop branch is required but it's slightly old so
08:02 clintberry joined #salt
08:03 AndreasLutro none of these examples are states, but yes, all of that will probably work with 2015.5
08:06 stoogenmeyer AndreasLutro: yea sorry didn't know how to call it. That's great to hear thanks
08:06 xintron Is there some way for salt-cloud to "react" if  I do a manual destroy on an instance that it know of (been provisioning)?
08:06 stoogenmeyer xintron: see the link I just asked about - talks about that
08:07 xintron stoogenmeyer, ah, perfect :)
08:09 slav0nic joined #salt
08:12 the_frey joined #salt
08:12 s_kunk joined #salt
08:13 keimlink joined #salt
08:13 xintron stoogenmeyer, But that's if you use AWS autoscaling (as an example). I have it setup so that jenkins master is creating and destroying minions when needed and would need to have salt-master clean out the keys during that time as well
08:14 xintron Does the cloud.full_query take care of "removing" non-existing instances?
08:15 stoogenmeyer xintron: just as an idea, you could have every minion report it's ip as a mine data
08:15 stoogenmeyer and if a minion has not reported in for a certain threshold of time then remove it's key
08:16 stoogenmeyer I haven't used the examples from that link, going to try them now
08:18 napsterX joined #salt
08:19 AndreasLutro xintron: afaik full_query simply asks the api of your cloud provider(s) what machines exist
08:20 Xevian joined #salt
08:20 xintron That's my understanding as well
08:20 xintron But I've seen two articles (the above being one of them) saying they run the cloud.full_query at intervals but what's the point of doing that when they don't seem to use the fetched data?
08:21 xintron Is salt internally using this data for something?
08:23 gfa joined #salt
08:25 AndreasLutro I'm guessing that the ec2 autoscale reactor hooks into the full_query
08:25 AndreasLutro but that's just a guess
08:26 weltraum joined #salt
08:27 c10b10 joined #salt
08:27 weltraum left #salt
08:27 AndreasLutro that being said, https://github.com/saltstack-formulas/ec2-autoscale-reactor doesn't mention a schedule at all
08:27 AndreasLutro so maybe it's old advice that's no longer necessary
08:27 peters-tx joined #salt
08:28 stoogenmeyer i think ec2-autoscale-reactor is based on a webhook
08:28 stoogenmeyer so when an ec2 autoscale group instantiates a new machine it also notifies the salt-master via a webhook
08:29 stoogenmeyer theres a difference between salt-cloud-reactor and salt-autoscale-reactor, one relies on scheduling, and the other on a webhook notification
08:31 rdas joined #salt
08:32 shantanoo joined #salt
08:33 xintron But how does the scheduling work in relation with salt-cloud?
08:36 jcristau joined #salt
08:48 linjan joined #salt
09:00 omegamike joined #salt
09:03 j-saturne joined #salt
09:03 shantanoo trying to setup the salt master for the first time. just wanted to confirm that in top.sls, the regex keys (e.g. '*-dev-*') are minion ids. right?
09:06 jaybocc2 joined #salt
09:08 zsoftich2 joined #salt
09:11 zhoujl joined #salt
09:11 zhoujl [root@saltmaster salt-2015.5]# salt-ssh '*' test.ping [root@saltmaster salt-2015.5]# [ERROR   ] An un-handled exception was caught by salt's global exception handler: OSError: [Errno 2] No such file or directory Traceback (most recent call last):   File "/usr/bin/salt-ssh", line 10, in <module>     salt_ssh()   File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 273, in salt_ssh     client.run()   File "/usr/lib/python2.6/site
09:12 zhoujl hi everyone.When i use " salt-ssh '*' test.ping " ,I get the following error messages.Where is the problem occurs?
09:12 zhoujl [ERROR   ] An un-handled exception was caught by salt's global exception handler: OSError: [Errno 2] No such file or directory
09:12 zhoujl File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__     errread, errwrite)   File "/usr/lib64/python2.6/subprocess.py", line 1234, in _execute_child     raise child_exception OSError: [Errno 2] No such file or directory
09:13 GnuLxUsr joined #salt
09:13 zhoujl Where might be wrong
09:17 aqua^c joined #salt
09:21 malinoff joined #salt
09:22 AndreasLutro zhoujl: what os are you on, how did you install salt?
09:22 jaybocc2 joined #salt
09:23 gcfhvjbkn joined #salt
09:23 gcfhvjbkn left #salt
09:23 gcfhvjbkn joined #salt
09:26 zhoujl centos6.6_64
09:27 napsterX joined #salt
09:27 stoogenmeyer joined #salt
09:27 zhoujl The earliest is yum install salt-master
09:28 zhoujl Found no salt-ssh
09:28 otter768 joined #salt
09:28 zhoujl so i download salt-2015.5.2  and reinstll  by python setup.py install
09:30 AndreasLutro mm
09:31 AndreasLutro zhoujl: try installing via the bootstrap script instead http://docs.saltstack.com/en/latest/topics/tutorials/salt_bootstrap.html
09:31 AndreasLutro zhoujl: if that doesn't work, just do `pip install -e /path/to/salt` instead of running setup.py
09:32 zhoujl ok i try it pip
09:33 zhoujl thank you
09:34 dankrs joined #salt
09:35 aqua^c joined #salt
09:42 kal0pr joined #salt
09:44 aqua^c joined #salt
09:51 c10b10 does anybody have any idea why is this happening: https://www.dropbox.com/s/38797tfe9rnqf39/Screenshot%202015-07-24%2012.51.13.png?dl=0 ?
09:52 c10b10 it happens with the mysql formula
09:58 kal0pr joined #salt
09:59 AndreasLutro c10b10: it means mysql is asking for a password interactively
10:00 c10b10 AndreasLutro, I see
10:00 AndreasLutro c10b10: add something like this to your master config https://bpaste.net/show/ddf3d2b009ba
10:00 AndreasLutro c10b10: or use user/pass, documented here http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mysql.html
10:01 c10b10 i'll check it out. i was using this: https://github.com/saltstack-formulas/
10:03 aqua^c joined #salt
10:05 c10b10 AndreasLutro: what is /etc/mysql/debian.cnf supposed to contain?
10:05 AndreasLutro c10b10: if the file doesn't exist on your system, just use the username/password options
10:05 c10b10 ah, sorry, the second link you sent makes that clear
10:11 napsterX joined #salt
10:19 the_frey_ joined #salt
10:21 aqua^c joined #salt
10:24 kal0pr joined #salt
10:24 unholycrab joined #salt
10:27 kwork joined #salt
10:27 kwork joined #salt
10:34 kal0pr joined #salt
10:37 neilfse joined #salt
10:39 aqua^c joined #salt
10:44 bhosmer_ joined #salt
10:46 omegamike joined #salt
10:48 aqua^c joined #salt
10:49 stoogenmeyer hey how come I don't see any logs in /var/log/salt/master
10:49 stoogenmeyer it's definitely running
10:51 evle joined #salt
10:53 kal0pr joined #salt
10:56 darix joined #salt
10:57 zsoftich2 joined #salt
10:58 shantano1 joined #salt
11:00 hillna joined #salt
11:03 c10b10 joined #salt
11:06 shantanoo joined #salt
11:06 aqua^c joined #salt
11:07 Guest93599 joined #salt
11:07 Guest93599 Hello
11:08 Guest93599 I am having trouble with the ipset state module
11:09 stoogenmeyer hey guys, lets say I want to have a grain that's based on the tags a machine has on ec2 (for example it might have a tag 'role' with value 'database')
11:10 stoogenmeyer since I have salt-cloud installed on the master, I can just run salt-cloud -a get_tags <minion_id> and that will give me the ids
11:10 stoogenmeyer but if I want this to be a grain then it will have to run on the minion, is there a way to do this ?
11:10 Guest93599 http://pastebin.com/12294gDq
11:10 Guest93599 Comment: State 'ipset.set_present' was not found in SLS 'ipsets
11:11 Guest93599 is what applying the state returns
11:13 kal0pr joined #salt
11:15 aqua^c joined #salt
11:16 markm joined #salt
11:18 the_frey joined #salt
11:20 j-saturne joined #salt
11:22 Guest93599 hello
11:24 giantlock joined #salt
11:24 aqua^c joined #salt
11:29 otter768 joined #salt
11:30 GrueMaster joined #salt
11:33 jaybocc2 joined #salt
11:33 aqua^c joined #salt
11:35 denys joined #salt
11:38 lkannan joined #salt
11:39 kal0pr joined #salt
11:43 markm joined #salt
11:44 _Cyclone_ joined #salt
11:45 basepi joined #salt
11:49 jaybocc2 joined #salt
11:51 nk joined #salt
11:52 aqua^c joined #salt
11:55 frankS2 joined #salt
12:00 stoogenmeyer Hey, I created a runner on my salt-master. salt-run ec2_tags.tag <minion_id> <tag>, and it will give back either the value or None
12:00 fgimian left #salt
12:01 stoogenmeyer I want to set a grain on my minion using that runner. Would someone be able to help?
12:01 aqua^c joined #salt
12:10 ferbla joined #salt
12:15 rideh joined #salt
12:19 aqua^c joined #salt
12:19 venu0336 joined #salt
12:20 linjan joined #salt
12:28 aqua^c joined #salt
12:30 omegamike joined #salt
12:32 stoogenmeyer hey is it possible to add tags when creating the machine through salt-cloud ? something like salt-cloud -p <my_profile> --tag role=database, etc?
12:35 _mel_ joined #salt
12:36 Guest93599 Is it normally this quiet? This is only my second time here. The first time it was much more active.
12:37 bja joined #salt
12:38 babilen So, there you have your answer. ;)
12:38 unholycrab joined #salt
12:38 Guest93599 ?
12:38 babilen It is not always this quiet (as you have seen yourself the last time you were here)
12:39 Guest93599 It is Friday morning in my part of the world
12:39 babilen I, for example, am very hesitant to open pastebin.com links and your question simply scrolled out of my window.
12:39 xintron Salt-cloud isn't periodically checking if a started node is still up (or rather existing), is it?
12:40 ThomasJ Summer hollidays are going on too
12:40 ThomasJ And the US is only now waking up
12:42 Guest93599 I can work around the problem with pillars, but am wondering if I should submit a bug report
12:43 babilen Which problem?
12:43 Guest93599 The ipset problem
12:43 babilen Could you, if you don't mind, explain the problem again?
12:43 dvestal left #salt
12:43 AndreasLutro Guest93599: if you actually put up all relevant information (the output of the state run, the state file itself, to begin with) you have a much higher chance of getting a reply
12:44 babilen If you want to be super nice it would be appreciated if you could use http://refheap.com, http://paste.debian.net, https://gist.github.com, ... or another non-broken pastebin.
12:45 Guest93599 I can't even get the examples in the documentation to work
12:45 zsoftich2 joined #salt
12:45 babilen Which example?
12:46 aqua^c joined #salt
12:46 Guest93599 Here is the state run: http://paste.debian.net/285573/
12:47 babilen Is ipset installed on the minion in question?
12:47 Guest93599 The first example:
12:47 Guest93599 http://docs.saltstack.com/en/latest/ref/states/all/salt.states.ipset.html
12:47 Guest93599 [root@rhtest ~]# find /usr -name ipset.py
12:47 Guest93599 [root@rhtest ~]#
12:48 Guest93599 http://paste.debian.net/285575/
12:48 babilen The module the state depends on is not loaded in salt if "ipset" can't be found on the minion. You would have to install it and reload modules.
12:48 markm joined #salt
12:48 slav0nic joined #salt
12:49 babilen http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.ipset.html is the module in question and that checks if "ipset" is in PATH and can be used. If it is not then the module (and thereby the state) is not loaded by salt.
12:49 Guest93599 The file: /usr/lib/python2.7/site-packages/salt/states/ipset.py
12:49 Guest93599 does exist on the host
12:50 Guest93599 the chat client just didn't include the find output when I pasted it
12:50 babilen Yes, you have to install the ipset *package* so that salt can find the ipset executable in your PATHJ
12:50 babilen The salt state exists, but the module and state is not loaded/available in salt if the "ipset" executable is not available
12:51 Guest93599 Now I am getting somewhere
12:51 babilen So a "pkg.installed: - name: 'ipset'" should be all you need.
12:51 babilen Salt can't use the ipset state if ipset is not installed
12:51 Guest93599 The ipset package on the OS was missing
12:52 babilen (and it doesn't pretend that it can and tells you about that simply by not loading the state at all)
12:52 Guest93599 Thanks! I just assumed it was there because it is on the rest of my hosts
12:53 Guest93599 It is working now.
12:55 babilen salt reloads modules automatically whenever you install a package, so a "pkg.installed: - name: 'ipset'" in the SLS in which you use the ipset state should really be all you need.
12:55 babilen Keep in mind that a bunch of salt's modules and states have dependencies and that they won't be loaded if those dependencies are missing.
12:56 Guest93599 Where can I find out what the dependencies are?
12:56 babilen Unfortunately the dependencies aren't always documented, so a look into the code is necessary. For ipset you would, for example, find: https://github.com/saltstack/salt/blob/develop/salt/modules/ipset.py#L91 which checks if the "ipset" executable in usable and in PATH
12:57 Guest93599 Thats funny. I actually did look at the code before coming here...
12:57 babilen http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.mysql.html has "depends:
12:57 babilen MySQLdb Python module
12:57 babilen at the top
12:57 subsignal joined #salt
12:58 Guest93599 I actually looked at the lines where the ipset binary was being called. I just never thought it might be missing...
13:00 babilen Just keep in mind that "state is not available" typically means "dependency is missing"
13:00 babilen (unless you have a typo in there)
13:00 j-saturne joined #salt
13:01 jdesilet joined #salt
13:02 the_frey joined #salt
13:04 aqua^c joined #salt
13:07 kal0pr joined #salt
13:10 sgargan joined #salt
13:11 tkharju joined #salt
13:12 kal0pr joined #salt
13:18 Tecnico1931 joined #salt
13:18 Guest93599 man logwatch
13:18 Guest93599 sorry, wrong window
13:19 anotherZero joined #salt
13:21 collinanderson joined #salt
13:22 amcorreia joined #salt
13:22 quasiben joined #salt
13:22 unholycrab joined #salt
13:28 kal0pr joined #salt
13:30 otter768 joined #salt
13:31 stoogenmeyer joined #salt
13:33 cheus joined #salt
13:36 racooper joined #salt
13:38 s_kunk joined #salt
13:39 perfectsine joined #salt
13:41 quasiben joined #salt
13:42 mapu joined #salt
13:42 kal0pr joined #salt
13:42 Ahrotahntee man the logwatch, prepare to repel attackers!
13:43 dude051 joined #salt
13:43 agend joined #salt
13:44 rideh joined #salt
13:44 markm joined #salt
13:51 zipkid joined #salt
13:52 tipiak joined #salt
13:56 Akhter joined #salt
13:57 the_frey_ joined #salt
13:58 the_fre__ joined #salt
13:59 UForgotten joined #salt
13:59 aqua^c joined #salt
13:59 UForgotten joined #salt
14:00 _JZ_ joined #salt
14:00 jaybocc2 joined #salt
14:02 kal0pr joined #salt
14:03 hacksepe joined #salt
14:04 Prabhakar joined #salt
14:05 elfixit joined #salt
14:06 cryptolukas joined #salt
14:06 cryptolukas Hi  @all,
14:06 cryptolukas I try to install salt/salt-master. I get in contact with many problems.
14:06 cryptolukas This command get in problems:
14:06 cryptolukas sudo sh install_salt.sh git develop
14:06 cryptolukas * ERROR: You need to allow pip based installations (-P) in order to install the python package 'tornado >= 4.0'
14:06 cryptolukas With this command it works:
14:06 cryptolukas sudo sh install_salt.sh -P git
14:06 cryptolukas I do not understand  why need to attach git at the end?
14:06 cryptolukas Can anyone support me with this error? How can I solve it? Why I had so much problems with a standard salt installation? Do I make many failures with the install way?
14:07 rburkholder joined #salt
14:07 pguinardco1 Why not add it from the package repo?
14:08 jim__ joined #salt
14:09 cryptolukas normal ubuntu repository?
14:10 pguinardco1 Sure, there is that one and a ppa one that is more up to date (ppa:saltstack/salt)
14:10 ramishra joined #salt
14:11 babilen cryptolukas: http://docs.saltstack.com/en/latest/topics/installation/ubuntu.html
14:12 zmalone joined #salt
14:12 kal0pr joined #salt
14:12 favadi joined #salt
14:13 pguinardco1 everything in the software repo should be good enough for everyone except for people developing on it who need more updated versions (or a custom compilation should the defaults not be good enough), this also makes running your system much cleaner and easier to update in the long run rather than installing everything differently from random places.
14:16 cryptolukas thanks für your link :) i try it
14:16 mage_ when I have multiple environments in my pillar top.sls files how do I get the environment ?
14:16 mage_ I need to use it in a template
14:16 jaybocc2 joined #salt
14:16 favadi joined #salt
14:16 mage_ and how do I "pass" the environment ..?
14:16 [diecast] joined #salt
14:17 [diecast] left #salt
14:19 cryptolukas For what i need salt-syndic? For what is that nessesary?
14:21 babilen You need it if you want to build a hierarchy of salt masters
14:21 babilen (i.e. a master that controls other masters)
14:22 ksj why do we have pkg.installed and pkg.latest? why isn't "latest" just an option for the pkg.installed:version ?
14:23 ksj I'm confused about which to use
14:23 hacksepe Hi folks, I was wondering if the best way to have execution modules access a set of utilitiy classes.  It seems that __salt__ only provides access to other modules functions.  Am I able to import classes?  The docs suggest I can access them, but don't know how to.
14:25 sunkist joined #salt
14:26 aqua^c joined #salt
14:29 babilen ksj: You typically want pkg.installed, pkg.latest will also upgrade the package if there are updates. I would try to design your highstate in such a way that changes on subsequent runs are kept to a minimum.
14:29 babilen Which means that you would have to upgrade packages explicitly and not as part of a highstate run.
14:30 joeto joined #salt
14:30 j-saturne joined #salt
14:32 kal0pr joined #salt
14:32 cowpunk22 joined #salt
14:33 TyrfingMjolnir joined #salt
14:33 druonysus joined #salt
14:33 druonysus joined #salt
14:34 zsoftich2 joined #salt
14:35 XenophonF joined #salt
14:38 giantlock joined #salt
14:39 kbaikov joined #salt
14:41 sunkist joined #salt
14:42 kal0pr joined #salt
14:42 Tritlo joined #salt
14:44 aqua^c joined #salt
14:46 Brew joined #salt
14:51 kal0pr joined #salt
14:52 aphor joined #salt
14:52 BlackJackAc3 joined #salt
14:53 aqua^c joined #salt
14:56 s_kunk joined #salt
15:01 kal0pr joined #salt
15:05 venu0336 joined #salt
15:05 kermit joined #salt
15:06 murrdoc joined #salt
15:09 hacksepe cryptolukas - salt syndic allows you to pass commands from a master to a "submaster".  An example where this is useful is if some of your minions are behind a firewall, then you can use a syndic to forward comands and receive responses from a ssubmaster also behind the firewall
15:10 hacksepe that way you don't need to open firewall ports for each minion
15:10 jchadwick joined #salt
15:10 btorch is there a state module that one can use to just tell salt to copy everything under a location ?
15:11 murrdoc on the minion
15:11 murrdoc or on the master
15:11 btorch I know this on cli salt.modules.cp.get_dir
15:11 cryptolukas this is a nice feature!
15:12 aqua^c joined #salt
15:12 murrdoc file.copy  does the first
15:12 murrdoc file.recurse the second
15:13 btorch murrdoc: ah cool, let me check those . but yeah copy from master to minion
15:13 btorch thanks
15:13 kal0pr joined #salt
15:16 mpanetta joined #salt
15:16 jondonas joined #salt
15:17 dynamicudpate joined #salt
15:17 bja joined #salt
15:18 aphor While we're talking about file.recurse.. does anyone know if salt keeps fine-grained state on each file?
15:18 murrdoc with recurse or managed
15:18 murrdoc yes on latter
15:19 bja is there a way to convince salt to give its txt output with just LF endings instead of CRLF?
15:19 aphor murrdoc: thx
15:21 aphor http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.rsync.html <-- salt also has an rsync wrapper for bulk recursive file xfers.
15:22 julienlavergne joined #salt
15:22 aqua^c joined #salt
15:23 aphor I wonder how hard it would be to add a file.rsync state?
15:24 iggy bja: that's probably a python setting more than salt
15:25 julienlavergne1 joined #salt
15:25 iggy aphor: the problem with a rsync state is you generally want your states to run as quickly as possible... and rsync is anything but speedy
15:26 aphor iggy: pkg.installed usually fails that criteria for me :( .. so I've relaxed my expectations.
15:27 murrdoc iggy:  apt-get udpate stinks >>> rsync state
15:27 murrdoc and it would be trivial to add a state
15:29 aphor I'm starting to think two tiered top.sls: slow stuff goes into states that build images, and the images go into cloud-init scripts or Dockerfiles or whatever, and then everything else can converge during state.highstate.
15:30 aphor Maybe conditional on a role grain like "image prototype" or something.
15:31 otter768 joined #salt
15:31 aphor That way I can use images as short cuts around slow states.
15:31 iggy we have some orchestrate jobs that run when certain types of hosts come up
15:31 dopesong_ joined #salt
15:31 iggy that does all of our "heavy" stuff
15:31 aphor Is that a sane approach, or has anyone experienced pain down that road?
15:32 pguinardco1 aphor: you may look into something like setting up your base image and using something like vagrant or docker and any time you make a change destroy the container and rebuild it.
15:34 jodv joined #salt
15:34 edrocks joined #salt
15:34 favadi joined #salt
15:36 aphor pguinardco1: that's the plan, but I would like to be able to use reactor for service discovery, say, when new cluster nodes come online, haproxy gets a highstate with a new pillar with backend node list.
15:37 stomith joined #salt
15:38 andrew_v joined #salt
15:38 dopesong joined #salt
15:39 stomith so I can call salt from a python script with 'handle = client.cmd('*','cmd.run',['cmd']), but how do I force the output in json format?
15:39 murrdoc start a master minion instance
15:40 murrdoc use the job id from that call
15:40 murrdoc and go from there
15:40 aqua^c joined #salt
15:40 stomith hmm.
15:41 julienlavergne joined #salt
15:43 kal0pr joined #salt
15:45 Diaoul joined #salt
15:50 Diaoul joined #salt
15:50 sgargan joined #salt
15:53 SteamWells joined #salt
15:53 kal0pr joined #salt
15:55 kutenai joined #salt
15:55 BradThurber joined #salt
15:56 shantanoo joined #salt
15:58 aqua^c joined #salt
15:59 Gareth morning morning
16:02 napsterX joined #salt
16:03 kal0pr joined #salt
16:05 BradThurber left #salt
16:06 alemeno22 joined #salt
16:12 Diaoul joined #salt
16:12 zsoftich2 joined #salt
16:13 ageorgop joined #salt
16:13 kal0pr joined #salt
16:16 aqua^c joined #salt
16:16 BradThurber joined #salt
16:19 BradThurber Hi everyone. I'm using a pure python .SLS in a formula.  In a normal .sls I would load map.jinja as follows:
16:19 BradThurber {% from "jbosseap/map.jinja" import jbosseap_settings with context %}
16:19 BradThurber Is it possible to do the similar in the pure python .sls?
16:19 shawnbutts joined #salt
16:22 debian112 joined #salt
16:22 debian112 left #salt
16:22 jaybocc2 joined #salt
16:24 jodv joined #salt
16:25 perfectsine joined #salt
16:26 pipps joined #salt
16:27 kal0pr joined #salt
16:30 aparsons joined #salt
16:30 jinlin_gan joined #salt
16:31 dopesong joined #salt
16:33 rideh joined #salt
16:35 aqua^c joined #salt
16:35 jinlingan joined #salt
16:36 jinlin_gan_ joined #salt
16:36 hacksepe stosmith - take a look at http://docs.saltstack.com/en/latest/ref/clients/index.html - LocalClient.  I think you would add argument out='json'
16:39 cryptolukas Is there any difference between the parameter "id" in /etc/salt/minion  and the /etc/salt/minion_id?
16:41 cryptolukas In my opinion I can leave id in the minion file commented because minion_id war the right name already is this correct?
16:42 zzzirk joined #salt
16:43 b18 joined #salt
16:44 shantano1 joined #salt
16:45 snarfy joined #salt
16:45 edrocks joined #salt
16:46 bhosmer joined #salt
16:48 napsterX joined #salt
16:52 snarfy heyo. I'm still struggling with a pagerduty reactor. It seems like the config doesn't get passed in when the reactor goes off, and i get an error about a missing key value http://pastebin.com/YHACLMvg
16:53 Gareth Do you have the pagerduty config in the minion config or the master config?
16:53 snarfy i have a pagerduty state and it works fine. but when the reactor goes off, it fails with keyerror pagerduty.subdomain
16:53 snarfy well, i have it on both on the master - in the same format. is that an issue?
16:54 TyrfingMjolnir joined #salt
16:54 Gareth for the reactor, no, it shouldn't/
16:54 * Gareth looks.
16:55 snarfy i realize i typo'd like crazy with that pastebin post. but I found that for some reason in 2015.5.2 I needed pagerduty.service as well as pagerduty.service_key
16:56 Gareth Oh.  I bet its looking for just pagerduty.subdomain which is different than how you have it configured, that config would be pagerduty:pagerduty.subdomain.
16:57 Gareth in the master config try just have pagerduty.subdomain.
16:59 druonysuse joined #salt
17:02 Bryson joined #salt
17:03 snarfy like just remove the other 3 lines?
17:04 snarfy same error ... I tried a few different structures
17:06 Gareth can you pastebin the exact error you're seeing?
17:07 lowfive left #salt
17:09 BradThurber Are there any good examples of including custom python in a salt formula?
17:11 monkey66 joined #salt
17:11 hal58th_ joined #salt
17:16 forrest joined #salt
17:16 aparsons joined #salt
17:19 jodv joined #salt
17:20 snarfy yeah i'm glad to... sorry, had quick work meeting
17:20 Gareth no worries.
17:22 snarfy http://pastebin.com/Vnd7rV7f
17:22 rideh joined #salt
17:22 Gareth pastebin removed.
17:22 snarfy http://pastebin.com/Vnd7rB7f
17:22 snarfy erg. copy/paste not working in my VM today :D
17:24 Gareth there we go.
17:25 favadi joined #salt
17:26 SheetiS joined #salt
17:26 snarfy i'll admit i'm a little confused by the module format of the reactor.sls
17:26 snarfy i could have some kwargs wrong. the pd integration guide isn't great.
17:26 favadi joined #salt
17:26 Gareth running the module by hand works?
17:27 snarfy that I haven't tried - but I have a PD state that works
17:27 snarfy let's see..
17:27 pipps joined #salt
17:29 druonysuse joined #salt
17:29 Gareth if the state works.
17:29 druonysus joined #salt
17:30 theologian joined #salt
17:30 amcorreia joined #salt
17:30 snarfy yeah i ran salt-call pagerduty.create_event <service key> "decription" "details" profile=pagerduty and i got paged :)
17:31 snarfy should some of those be args in the reactor.sls and not kwargs?
17:31 Gareth snarfy: shouldn't profile in your reactor be pagerduty?  to match the profile in the config?
17:31 SheetiS snarfy: I can share my reactor for my pagerduty integration.  It's somewhat terrible and part of some other 'stuff', but it works
17:31 otter768 joined #salt
17:32 snarfy you showed it to me yesterday SheetiS  :) and thanks again for the help
17:32 snarfy i've made progress.
17:33 hal58th joined #salt
17:33 SheetiS oh I just meant the reactor part if you were having problems with the reaction.  That was just the state and the pillar :D
17:35 snarfy Gareth, that is a good catch, but it doesn't seem to change anything :/
17:36 iggy BradThurber: it's python, anything is possible
17:39 aqua^c joined #salt
17:40 snarfy i tried renaming the config and the profile in the reactor
17:41 snarfy to pagerduty and pagerduty test. no luck either way
17:41 snarfy same error
17:46 snarfy is there a way i can use opts to pass the value in?
17:47 pipps joined #salt
17:48 SheetiS this is how I pass data from the reactor to my pagerduty state: https://bpaste.net/show/1a59a28028b8
17:48 SheetiS where the variables salt-master and the actual notification data are generated with some jinja above.
17:48 julienlavergne joined #salt
17:50 snarfy SheetiS, thanks here's what mine looks like atm http://pastebin.com/Xty6Yprs
17:50 snarfy oh. frack
17:50 snarfy local.state.sls of course
17:52 X67r joined #salt
17:52 monkey66 joined #salt
17:53 * snarfy slaps forehead
17:54 cryptolukas Have anyone expierence in a salt-master configuration with deployment from grains, pillar, states with git i.e. gitlab in this case
17:57 vkurup joined #salt
17:57 snarfy yeah, I think a lot of people use git
17:57 snarfy vcs is sort of the idea :D
17:57 TyrfingMjolnir joined #salt
17:57 aqua^c joined #salt
17:57 snarfy SheetiS, thanks a gazillion. That works 100%
17:58 snarfy where do i suggest alterations to the documentation ? :)
18:02 napsterX joined #salt
18:03 cryptolukas you now i mean git i.e. as salt filesystem ;)
18:06 druonysuse joined #salt
18:06 druonysuse joined #salt
18:07 dopesong joined #salt
18:08 zer0def joined #salt
18:08 cpowell joined #salt
18:10 pipps joined #salt
18:10 Nazzy joined #salt
18:10 numkem joined #salt
18:14 stoogenmeyer joined #salt
18:15 aqua^c joined #salt
18:15 Vynce joined #salt
18:16 murrdoc salt wmininonr test.ping
18:16 murrdoc [ERROR   ] Salt request timed out. If this error persists, worker_threads may need to be increased.
18:16 murrdoc Failed to authenticate!  This is most likely because this user is not permitted to execute commands, but there is a small possibility that a disk error occurred (check disk/inode usage).
18:16 murrdoc wtf mate
18:18 murrdoc salt '*' test.ping works
18:18 murrdoc but not one minion
18:18 shantanoo joined #salt
18:18 murrdoc u hurt me salt
18:18 SheetiS snarfy: You could fork the repo and make the change yourself to the docs and submit a pull request, or open an issue on github with the specifics of what matches vs what does not.  I've done both in the past. (I've actually done a PR against the Pagerduty module previously).
18:18 XenophonF joined #salt
18:18 shantanoo joined #salt
18:21 tzero joined #salt
18:22 snarfy SheetiS, yeah i saw that when i was looking at pagerduty.py ;)
18:24 pipps joined #salt
18:25 TyrfingMjolnir joined #salt
18:25 sinonick joined #salt
18:28 c10b10 joined #salt
18:31 KyleG joined #salt
18:31 KyleG joined #salt
18:31 cpowell joined #salt
18:33 druonysuse joined #salt
18:33 druonysuse joined #salt
18:34 kwork joined #salt
18:34 kwork joined #salt
18:38 druonysuse joined #salt
18:39 dendazen joined #salt
18:41 dendazen How do i escape special characters in file.append?
18:41 dendazen quoting them with “ “ doesn’t work
18:46 BradThurber left #salt
18:48 BradThurber joined #salt
18:49 BradThurber left #salt
18:50 BradThurber joined #salt
18:51 ajw0100 joined #salt
18:54 cowpunk22 joined #salt
18:56 TyrfingMjolnir joined #salt
18:58 sophomeric joined #salt
18:59 vincent_vdk joined #salt
19:00 alwaysatthenoc joined #salt
19:01 iggy try a multiline string literal
19:02 iggy (I know they left, but for anyone that runs into such a problem in the future)
19:08 alwaysatthenoc Anyone ever have an issue where cf-agents occassionally get all files in there /var/cfengine/inputs directory deleted? Occurs typically when the cf-server replies as busy followed shortly by Bad packet -- bogues header in the log
19:09 alwaysatthenoc Sorry wrong room
19:22 c10b10 joined #salt
19:25 monkey66 joined #salt
19:26 edrocks joined #salt
19:27 gimpy973 left #salt
19:27 aqua^c joined #salt
19:29 gcfhvjbkn joined #salt
19:29 venu0336_ joined #salt
19:32 otter768 joined #salt
19:33 monkey661 joined #salt
19:35 Vynce is ther ea way to ask a salt minion what it thinks its id is?  the logs claim the master is rejecting its key, but the master doesn't have its ID in salt-key -L
19:35 NOTHiNG_Fr joined #salt
19:35 iggy salt-call -g on the minion
19:37 Vynce that jsut gives me the same message that's in the logs about eh master rejecting the key
19:39 Vynce (also, i ran the bootstrap script with arguments "stable 2014.7" and now it claims to be running version 2015.5.2.  this is almost as surprising as the bootstrap script no longer working without CLI arguments.)
19:39 iggy salt-call --local -g maybe?
19:40 iggy you can't specify a version except for git installs
19:40 ajw0100 joined #salt
19:40 Vynce well, the bootstrap docs suggest otherwise.
19:40 iggy (it ignored the version and installed from the "stable" pkg repo, which has 2015.5)
19:40 Darby joined #salt
19:41 Darby I'm getting Minion did not return. [No response] for any use of mysql module or state, Everything else seems to work fine. Nothing in logs. Any ideas?
19:42 iggy Vynce: what distro?
19:42 Darby ubuntu 14.04
19:42 Vynce iggy: thanks, —local -g worked. however, it tells me my host is what i thought it was, which appears nowhere in salt-key -L on the master.
19:42 Vynce iggy: how do i answer that?
19:44 iggy is the master correct?
19:44 NOTHiNG_Fr joined #salt
19:45 Vynce iggy: so, here's my situation — i had a server that was no good so i knocked it over and stood a new one up (reusing the hostname).  i ran salt-key -d <minion_id> on the master, but the new minion is unable to connect.
19:45 Vynce mmm, think so… double-checking...
19:45 omegamike joined #salt
19:45 aqua^c joined #salt
19:46 Vynce yep. master is correct.
19:46 pipps joined #salt
19:47 iggy Vynce: search /etc/salt/pki/ for the id maybe?
19:47 Vynce (assuming you mean the master: grain on the minion has the right address for the master)
19:47 Vynce ont he master?
19:47 iggy yes
19:48 BradThurber Vynce: 2014.7 is a branch not a tag. If you want latest released (tagged ver) of 2014.7 then I believe arguments are "git v2014.7.6"
19:49 funzo joined #salt
19:50 subsignal joined #salt
19:50 Vynce BradThurber: and —version reflects a tag, not a branch?  It would be good if —version gave the same sense of version that the install script gave.  User confusion is an enemy.
19:51 Vynce ugh.  i swear i have auto text substitution turned off everywher ei can find.
19:51 ajw0100 joined #salt
19:52 iggy I think it's os level
19:53 iggy stable <version> only works on Ubuntu
19:53 sgargan joined #salt
19:53 iggy git branch|tag works everywhere
19:55 Vynce well, great, but for understanding what's going on, the docs said i could type "stable 2014.7" and version amde it look like i got something else. I still don't really know if what i got was a version of 2014.7, but i mostly have given up on caring. ( :
19:56 iggy the docs state that stable <version> only works on Ubuntu
19:57 Vynce anyway, the master does not list any key for this minion ID in any of the directories under /etc/salt/pki
19:57 iggy but if something is still unclear, you should file a bug to fix the docs
19:57 Vynce and i am on ubuntu
19:57 iggy save someone else the frustration in the future
19:58 iggy then file a bug that says stable <version> doesn't work properly
19:58 Vynce i might go file a bug after i get this machine up. until then, i'm not convinced the understanding i have of anything is good enough to file a correct bug.
19:59 mordonez joined #salt
19:59 mordonez joined #salt
20:01 Vynce ugh.  it hink i found the problem.  grains didn't have a minion_id, so i assumed it was using host — but no, minion_id is just listed under id, where it's wrong.  thanks for the help, iggy
20:02 iggy I guess I should have said "salt-call --local grains.item id
20:02 rideh joined #salt
20:02 Vynce that would have saved me a step, but this is the better lesson in thinking salt. ( :
20:03 ajw0100 joined #salt
20:04 aqua^c joined #salt
20:04 furrowedbrow joined #salt
20:04 flebel joined #salt
20:06 edrocks_ joined #salt
20:08 XenophonF joined #salt
20:08 XenophonF left #salt
20:08 XenophonF joined #salt
20:10 Guest97161 joined #salt
20:11 rideh joined #salt
20:13 hal58th joined #salt
20:13 aqua^c joined #salt
20:14 mapu_ joined #salt
20:16 c10b10 joined #salt
20:21 murrdoc joined #salt
20:23 jaybocc2 is there a way to update a pillar key on the salt call?
20:23 jaybocc2 when i run salt \* state.highstate pillar="{'deploy': true}" it appears to unset all other pillar values
20:23 hasues joined #salt
20:23 jaybocc2 what i really want is to flip a bool
20:23 hasues left #salt
20:29 Ahlee If i remember correctly there is a way to merge instead of overwrite
20:29 Ahlee alternately, it should only overwrite the pillar value passed, so if you can namespace it that might work too
20:29 rideh joined #salt
20:30 jaybocc2 the actual override is "{'dash': {'deploy': true}}"
20:30 Ahlee according to docs, still only overwrites
20:30 Ahlee http://docs.saltstack.com/en/latest/topics/tutorials/pillar.html#setting-pillar-data-on-the-command-line
20:30 jaybocc2 but dash has other data and it overwrites ;-/
20:30 jaybocc2 if i pass !aggregate or !recurse, it doesn't override the false value... might have to do a nonecheck
20:31 jaybocc2 thanks i'll poke at it more
20:31 iggy yeah, sadly, salt doesn't merge by default
20:31 Ahlee you say sadly, I say best feature ever
20:32 Slimmons joined #salt
20:32 iggy pillar_source_merging_strategy: smart
20:32 iggy or merge
20:33 tkharju joined #salt
20:33 Ahlee nice, that's handy to know
20:33 jaybocc2 according to the docs it defaults to smart merge
20:33 Ahlee guess i need to set overwrite locally
20:36 rideh joined #salt
20:37 XenophonF joined #salt
20:43 XenophonF yo iggy
20:43 XenophonF just re-submitted my pull request
20:43 XenophonF split it into two, one for salt-ssh and the other for gitpython, both fixing deployment problems on freebsd
20:44 edrocks joined #salt
20:44 rideh joined #salt
20:45 Steven| joined #salt
20:46 iggy XenophonF: does fbsd have pygit2?
20:46 XenophonF yes, it does
20:47 iggy okay, so that's the new default
20:47 XenophonF i know
20:47 iggy we should probably go ahead and change the formula to prefer that
20:47 XenophonF however, it uses a version of libssh that doesn't support the SSH key types I'm using
20:47 XenophonF (namely, ed25519)
20:47 Slimmons If anybody feels up to it, I have created a git repo to try and get [this](http://martin-denizet.com/install-redmine-2-5-x-git-subversion-ubuntu-14-04-apache2-rvm-passenger/) tutorial into salt.  I've got a lot of it working, but the first step (setting up RVM) has caused me all sorts of problems.  If you're interested in correcting what I'm doing, or helping out, feel free. https://github.com/johnsimmons/redmine/tree/ruby
20:48 nitenq joined #salt
20:48 Slimmons It seems to be one of the more popular ways to set up redmine, so I figured I'd try to set it up to help me learn.  So if you see me doing anythign stupid in it, please let me know
20:48 iggy XenophonF: This branch has conflicts that must be resolved
20:49 iggy (which is why I always submit patches from the same branch, but everybody yells at me for that)
20:49 XenophonF yeah, that's why i broke it in two
20:49 XenophonF hang on i'll fix it
20:51 dendazen joined #salt
20:54 the_frey joined #salt
20:54 forrest joined #salt
20:54 XenophonF thanks, iggy
20:55 murrdoc joined #salt
20:58 jaybocc2 any ideas why when i authorize a minion
20:58 jaybocc2 i have to restart that salt-minion in order to target it with grains?
20:58 jaybocc2 ex... salt \* cmd.run 'uname -a' returns fine
20:58 racooper when and how are you applying the grains?
20:59 jaybocc2 but salt -G 'somegrain' cmd.run 'uname -a' says minion did not return, no response
20:59 c10b10 joined #salt
21:00 jaybocc2 not sure what you mean by when and how
21:00 jaybocc2 they're grain moduels
21:00 jaybocc2 modules*
21:00 pipps99 joined #salt
21:00 jaybocc2 and a salt \* state.highstate from master has already successfully completed on all minions, including the ones in question
21:01 jaybocc2 and in fact if i do a salt \* cmd.run 'systemctl restart salt-minion' then grains work again
21:01 jaybocc2 and -G 'grain' is successful
21:01 jaybocc2 do i need to enable grains_cache on the minions?
21:02 XenophonF iggy, do you want me to submit a change that adds pygit2 support on freebsd for salt-formula?
21:04 murrdoc do it
21:05 napsterX joined #salt
21:07 druonysuse joined #salt
21:07 druonysuse joined #salt
21:08 MatthewsFace joined #salt
21:11 iggy I want the formula to prefer pygit2 if it's available... hadn't really thought about how best to handle that
21:12 iggy (i.e. how do we know if the package is available and "useful")
21:12 murrdoc XenophonF:  do u have a module for handling windows registry
21:13 XenophonF joined #salt
21:14 [dee] left #salt
21:17 omegamike joined #salt
21:19 XenophonF joined #salt
21:19 XenophonF thanks iggy and murrdoc
21:20 rideh joined #salt
21:20 murrdoc so no on the widnows registry
21:21 XenophonF sorry - irc client crashed, let me look through the log real quick
21:22 XenophonF isn't there a reg state module?
21:22 X67r joined #salt
21:22 XenophonF https://github.com/irtnog/salt-states/blob/development/schannel/init.sls
21:22 XenophonF brb
21:23 rideh joined #salt
21:24 jaybocc2 salt-run managed.up also shows the minions...
21:24 jaybocc2 this is a really annoying issue. any input?
21:25 XenophonF back
21:25 XenophonF iggy, regarding git backend selection, i like how it's set up now
21:25 iggy jaybocc2: do you have openmode by chance?
21:25 XenophonF where the backend is optional
21:26 XenophonF murrdoc: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.reg.html
21:27 omegamike joined #salt
21:27 murrdoc does that work ?
21:27 XenophonF yes
21:27 murrdoc cos my coworker doesnt seem to be able to use it
21:27 XenophonF or at least it did on my Windows Server 2008 R2 test box
21:27 XenophonF it's been a while since i've tried it out
21:28 cberndt joined #salt
21:28 XenophonF i'll make a not to test it on monday morning
21:28 XenophonF it's beer thirty here so i'll catch you all later
21:28 XenophonF left #salt
21:30 jodv joined #salt
21:32 viq joined #salt
21:33 otter768 joined #salt
21:35 Gareth w 51
21:35 Gareth er
21:36 iggy 51
21:36 iggy holy crap
21:37 murrdoc 51
21:38 druonysus joined #salt
21:43 TyrfingMjolnir joined #salt
21:43 p0rkbelly joined #salt
21:45 napsterX joined #salt
21:46 Diaoul joined #salt
21:48 murrdoc is this page up to date with release names ?
21:48 murrdoc http://docs.saltstack.com/en/latest/topics/releases/version_numbers.html
21:50 iggy beryllium is 2015.8, send a PR
21:51 whytewolf it is correct in the develop docs
21:51 whytewolf http://docs.saltstack.com/en/develop/topics/releases/version_numbers.html
21:51 iggy ^
21:51 snarfy vmware is the devil
21:51 pipps99 joined #salt
21:51 iggy wonder if it's worth suggesting that patch get backported to 2015.5
21:55 c10b10 joined #salt
21:58 VR-Jack joined #salt
22:02 aqua^c joined #salt
22:11 aqua^c joined #salt
22:11 jodv joined #salt
22:13 andrew_v joined #salt
22:17 pipps joined #salt
22:20 ajw0100 joined #salt
22:29 hasues joined #salt
22:29 aqua^c joined #salt
22:30 sgargan joined #salt
22:30 ThomasJ joined #salt
22:32 cpowell joined #salt
22:39 sgargan joined #salt
22:41 stoogenmeyer joined #salt
22:44 subleq joined #salt
22:44 subleq how does the master authenticate to the minion?
22:44 iggy it doesn't
22:45 iggy the minion connects to the master
22:45 subleq so minions connect to a random host on the internet and start running code from it?
22:45 mioli joined #salt
22:45 subleq what protects from a MITM between the minion and the master?
22:45 iggy well, hopefully you actually set the master config
22:46 napsterX joined #salt
22:46 subleq the master config is just a host name isn't it?
22:46 iggy there are keys exchanged on first connection
22:47 subleq so if someone can intercept the first connection they can run arbitrary code on the minion
22:48 aqua^c joined #salt
22:48 iggy I guess
22:48 iggy you could preseed the minion with the master key
22:49 subleq ah yes, minion_master.pub?
22:49 c10b10 joined #salt
22:49 iggy yes
22:49 subleq I have a script to bootstrap the minion so i can populate it there
22:49 omegamike joined #salt
22:51 sgargan joined #salt
22:52 subleq It's a pretty surprising default behavior, might want to document it
22:52 iggy I'm pretty sure it is
22:54 is_null hi all, is it a known bug that bootstrap doesn't work any more on ubuntu stable ? https://travis-ci.org/saltstack-formulas/jenkins-formula/jobs/72201901
22:54 is_null The following packages have unmet dependencies:
22:54 is_null python-requests : Depends: python-urllib3 (>= 1.7.1) but it is not installable
22:55 iggy is_null: did you check the issue tracker? I think I heard something recently about bootstrap being broken
22:57 aqua^c joined #salt
22:57 is_null i can't find any report for this issue
22:58 julienlavergne joined #salt
22:59 SheetiS joined #salt
23:06 aqua^c joined #salt
23:06 giantlock joined #salt
23:06 TyrfingMjolnir joined #salt
23:06 iggy check channel logs?
23:11 ajw0100 joined #salt
23:13 ageorgop joined #salt
23:14 murrdoc joined #salt
23:14 linjan joined #salt
23:15 aqua^c joined #salt
23:17 viq joined #salt
23:18 pipps joined #salt
23:21 ajw0100 joined #salt
23:24 aqua^c joined #salt
23:28 stoogenmeyer joined #salt
23:28 kal0pr joined #salt
23:32 ageorgop joined #salt
23:34 otter768 joined #salt
23:39 hal58th joined #salt
23:40 julienlavergne joined #salt
23:42 monkey661 left #salt
23:42 aqua^c joined #salt
23:43 c10b10 joined #salt
23:46 napsterX joined #salt
23:48 kal0pr joined #salt
23:49 hal58th_ joined #salt
23:49 Eureka703 joined #salt
23:51 Vynce1 joined #salt
23:51 codekobe_ joined #salt
23:51 ninkotech__ joined #salt
23:51 neilfse_ joined #salt
23:51 zipkid__ joined #salt
23:51 lkannan_ joined #salt
23:52 kutenai_ joined #salt
23:52 imanc_ joined #salt
23:53 oeuftete_ joined #salt
23:53 sophomer1c joined #salt
23:54 akitada_ joined #salt
23:58 jcristau joined #salt

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