Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-01-09

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

All times shown according to UTC.

Time Nick Message
00:02 iggy Svake: be more specific... are you trying to do something like configure your nginx servers to have ssl certs? If so, you'd generally just have the certs/keys in pillars and then install them via a file.managed with contents_pillar
00:04 StDiluted or should I put a salt master inside the VPC
00:05 garthk joined #salt
00:05 __number5__ StDiluted: connection is from minions
00:05 wt I am trying to count the number of active highstates that are older than 5 min.
00:05 StDiluted ok, so I’m good on having the minion in the VPC and the master outsidew
00:05 StDiluted outside
00:06 __number5__ StDiluted: yep, just firewall your master ports properly (AWS securtiy groups etc.)
00:06 StDiluted yeah, no problem there
00:06 StDiluted thank you!
00:09 FRANK_T joined #salt
00:11 shaggy_surfer joined #salt
00:14 TheoSLC joined #salt
00:16 arif-ali joined #salt
00:16 linjan joined #salt
00:21 digitisedlipstk joined #salt
00:21 smaliz joined #salt
00:25 smaliz Hi Folks. Newbie here. I am trying to use the dockerio module but getting an error that the docker.<xyz> state is not available on the minion. Everything that i have read thus far suggest i need to have docker-py installed, no version mismatches and may be reload the modules. I have tried that and still no luck. Any pointers will be appreciated
00:32 digitisedlipstk left #salt
00:37 rojem joined #salt
00:39 otter768 joined #salt
00:40 hal58th joined #salt
00:41 falican joined #salt
00:44 hal58th1 joined #salt
00:46 murrdoc is there a salt 'print' state
00:46 eliasp murrdoc: to "print" what? for paper printers?
00:47 __number5__ murrdoc: what do you want to do?
00:47 murrdoc i have some funky data in pillars, i want to 'print' out the jinja variables i am setting up in states
00:47 murrdoc to make sure they ll work
00:47 murrdoc i can probably just run the states as is
00:47 eliasp murrdoc: you can use state.show_sls
00:47 murrdoc but i want to 'print' out the various jinja variables
00:47 murrdoc oh
00:49 FRANK_T I have a structure a question
00:49 eliasp murrdoc: it could also be state.show_low_sls … I'm not sure right now which one of both is the one you need… give it a try
00:49 murrdoc i see em
00:49 murrdoc i will try both
00:49 murrdoc thanks again
00:49 eliasp k
00:50 murrdoc worst case i ll setup a file state and write out the variables to the file
00:50 FRANK_T Can I have all my sls in different folder eg. /srv/salt/ssh
00:50 murrdoc yes
00:50 FRANK_T and inside that folder i will have a sls files and map.jinja
00:50 __number5__ murrdoc: show_full_context() might be what you looking for http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html#debugging
00:50 FRANK_T but my problem is   No matching sls found for 'ssh2' in env 'base'
00:51 eliasp FRANK_T: is your ssh2.sls listed in cp.list_master?
00:51 FRANK_T list_master?
00:51 FRANK_T where is that?
00:51 eliasp FRANK_T: salt your-minion cp.list_master
00:52 FRANK_T let me check
00:52 FRANK_T ohh no
00:52 wt This it not working.
00:52 wt It appears to be parsing the start time and not showing any other data
00:52 wt left #salt
00:52 FRANK_T yes
00:53 wt joined #salt
00:53 FRANK_T - ssh/ssh2.sls
00:54 FRANK_T eliasp any idea
00:55 eliasp FRANK_T: sure… use ssh.ssh2 when addressing this state instead of only ssh2 … otherwise append 'ssh' to your file root
00:55 wt https://gist.github.com/wt/9e12b881544de63e8568
00:55 wt I am trying to get the job info for a running job.
00:55 eliasp FRANK_T: http://docs.saltstack.com/en/latest/ref/file_server/file_roots.html
00:55 mgw joined #salt
00:56 murrdoc k state_show thank u eliasp
00:57 FRANK_T omg elisasp
00:57 FRANK_T thank you...
00:57 murrdoc this is what i was trying to figure out
00:57 murrdoc {% set cinder_db_name = salt['pillar.get']('services:cinder:db_name') -%}
00:57 murrdoc {% set cinder_db_user = salt['pillar.get'](['mysql', cinder_db_name, 'username']|join(':')) -%}
00:57 wt Am I doing it wrong?
00:57 FRANK_T joined #salt
00:58 FRANK_T Thank you I been working on this for the past 2 hours
00:58 eliasp yw :)
00:58 Whissi joined #salt
00:58 FRANK_T sorry i closed the windows
00:58 FRANK_T what was the command again
00:58 FRANK_T the cp.
00:58 murrdoc cmd + w
00:58 murrdoc :D
00:59 eliasp FRANK_T: salt your-minion cp.list_master
00:59 FRANK_T thank you
00:59 eliasp FRANK_T: use Quassel + QuasselCore to prevent this or a regular IRC bouncer… no more missed backlogs ;)
01:01 FRANK_T eliasp this is a IRC client?
01:02 murrdoc or adium
01:02 FRANK_T I use https://kiwiirc.com/client
01:02 eliasp FRANK_T: yes, a server/client application… you have a constantly running server part (QuasselCore) running and just connect your client to it
01:02 FRANK_T IRC is blocked in my job
01:02 FRANK_T kiwiirc is the only online client that i can use :(
01:03 eliasp FRANK_T: even better… then run QuasselCore on your private infrastructure outside your job and connect to it
01:03 eliasp FRANK_T: is IRC blacklisted or do you have whitelisting for allowed protocols?
01:03 murrdoc buy a server, its like 5-10 bucks a month
01:03 murrdoc then do what eliasp be saying
01:03 FRANK_T blacklisted
01:04 aquinas joined #salt
01:04 eliasp ok, then just a regular Quassel protocol connection from the client to your server/QuasselCore will work
01:04 eliasp otherwise tunnel via SSH/HTTP
01:04 FRANK_T they block ssh
01:04 murrdoc wow
01:04 FRANK_T yes sir
01:04 eliasp sorry, but your company sucks! :)
01:04 murrdoc where do u work
01:05 eliasp tunnel everything via HTTP (slow, but it works)
01:05 murrdoc wait they block ssh yeah
01:05 eliasp or dnstunnel
01:05 murrdoc setup ssh on some other port like 9292
01:05 murrdoc :D
01:05 eliasp there are always ways around these stupid protocol/port blockings
01:05 FRANK_T some of my user have to connect to a outside cluster and i had to call freaking security department to open port 22 to a specific host
01:06 FRANK_T In my department we have an internet network we do not have access to control firewall etc.
01:11 yomilk joined #salt
01:11 mikaelhm joined #salt
01:13 Singularo joined #salt
01:13 FRANK_T murrdoc ssh outside the company
01:16 FRANK_T another question on my map.jinja can I specified OS by version?
01:17 aurynn FRANK_T, it might be in the grains
01:17 FRANK_T ok.
01:17 eliasp sure, just define what grains.filter_by() uses http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.grains.html#salt.modules.grains.filter_by
01:19 Mso150_p joined #salt
01:19 FRANK_T yes but I am talking about in my case I have 300 Nodes running Centos 6.5 and I will soon i will have 200 nodes running Centos 7.0
01:20 FRANK_T Well I guess i should just create groups right
01:21 TheoSLC joined #salt
01:23 TyrfingMjolnir joined #salt
01:23 murrdoc use roles for the win
01:24 aqua^mac joined #salt
01:24 FRANK_T ok
01:24 FRANK_T and the last question of the day :)
01:25 FRANK_T I have another cluster with Windows HPC should can I use the the Master or should I create a separate  master for windows?
01:26 FRANK_T I have another cluster with Windows HPC should I use the same Master or should I create a separate  master for windows?*
01:26 stevednd anyone know if there's a state and/or module for modifying /etc/security/limits.conf?
01:27 eliasp stevednd: none shipped out-of-the-box with Salt
01:27 murrdoc also use the .d directory for ease of implementing
01:27 stevednd didn't think so, but figured I would doublecheck
01:27 eliasp exactly… just wanted to point this out ;)
01:28 stevednd yeah, that's the plan
01:29 nickdew_ joined #salt
01:34 sa_peepable joined #salt
01:47 forrest joined #salt
01:49 nickdew joined #salt
02:17 bytemask joined #salt
02:17 oeuftete joined #salt
02:18 adrianhannah joined #salt
02:20 jchen joined #salt
02:21 Amol joined #salt
02:25 asdf___ joined #salt
02:32 shaggy_surfer joined #salt
02:36 pdayton joined #salt
02:45 favadi joined #salt
02:47 mschiff joined #salt
02:49 kermit joined #salt
02:50 otter768 joined #salt
02:59 schlueter joined #salt
03:03 perfectsine joined #salt
03:08 perfectsine_ joined #salt
03:19 monkey66 joined #salt
03:22 beneggett joined #salt
03:23 yomilk_ joined #salt
03:23 murrdoc joined #salt
03:25 mosen joined #salt
03:36 otter768 joined #salt
04:10 TyrfingMjolnir joined #salt
04:10 monkey66 left #salt
04:27 Furao joined #salt
04:33 ajw0100 joined #salt
04:51 JlRd joined #salt
04:53 overyander joined #salt
05:05 twellspring joined #salt
05:14 vbabiy joined #salt
05:24 ajmccluskey joined #salt
05:25 yomilk joined #salt
05:43 nullptr joined #salt
05:57 kermit joined #salt
06:00 paulm- joined #salt
06:02 twellspring joined #salt
06:07 bantone joined #salt
06:07 bantone when I create a sls file, for example webserver.sls
06:07 bantone it should create a directory for that sls correct?
06:07 bantone i created a top.sls file
06:10 ajmccluskey bantone: I've only been playing with salt for a couple of days, but if nobody else is around I can try to help
06:11 mosen you can bantone
06:11 mosen either webserver.sls or webserver/init.sls
06:12 bantone okay
06:12 bantone that makes sense
06:12 bantone ajmccluskey: yeah me too
06:12 bantone gotta do more of it for work :)
06:12 bantone going to saltconf?
06:13 ajmccluskey I'm currently unemployed and living in Mexico, so unfortunately not :p
06:13 ajmccluskey I don't work in devops, or have a lot of machines to manage either
06:14 ajmccluskey I'm currently just trying to automate the deployment of a few Windows XP boxes for a project
06:14 ajmccluskey ...for fun
06:15 bantone well, it will give you a prosperous career in the futre :0
06:15 bantone mosen thanks
06:17 _ether_ joined #salt
06:22 Mso150_p joined #salt
06:45 schlueter joined #salt
06:49 catpiggest joined #salt
07:08 goki________ joined #salt
07:13 darxmurf joined #salt
07:13 darxmurf hi all
07:14 karimb joined #salt
07:21 flyboy joined #salt
07:28 foulou joined #salt
07:28 JlRd joined #salt
07:36 bantone hey
07:39 otter768 joined #salt
07:40 aw110f joined #salt
07:46 aw110f Hi, any easy way to check if a source file changed then update the file
07:52 slafs joined #salt
07:52 slafs left #salt
07:53 dooshtuRabbit joined #salt
07:54 KermitTheFragger joined #salt
07:54 trikke joined #salt
07:57 darxmurf aw110f: md5sum ?
07:57 anybroad joined #salt
08:00 alanpearce joined #salt
08:02 agend joined #salt
08:04 aw110f darxmurf: there's a source_hash option in file state but you'll have to explicitly specify the hash string in the sls file everytime the file changes
08:08 babilen aw110f: The way salt works is generally that you describe the state you want to achieve and not to describe what actions should be taken when salt finds a specific situation. Why don't you simply specify the desired content of that file and let salt figure out if changes are necessary or not?
08:13 yomilk joined #salt
08:15 aw110f babilen: how does salt figure out if changes are necessary or not?
08:18 viq joined #salt
08:20 aw110f_ joined #salt
08:21 babilen aw110f: Because it compares the desired content with the actual content
08:25 mikkn joined #salt
08:25 dh joined #salt
08:26 yomilk_ joined #salt
08:26 Sypher Can someone please fork https://github.com/syphernl/backupninja-formula into the saltstack-formulas organization? Despite being a contributor I'm unable to do so. (ping whiteinge)
08:29 babilen aw110f: Have you tried it?
08:29 akafred joined #salt
08:29 kawa2014 joined #salt
08:32 lb1a joined #salt
08:40 babilen Sypher: It might make sense to write a mail to the salt-users ML
08:50 [1]foulou joined #salt
08:56 Sypher nah, don't feel like doing the 1980's thing ;-)
08:58 aw110f babilen: the file I'm managing is a binary file, can't really specify the content
08:59 aw110f the onchanges requisite combined in a cmd.run state seems like it can do the trick but I'm on 2014.1.11
09:01 I3olle joined #salt
09:15 intellix joined #salt
09:22 foulou joined #salt
09:27 babilen aw110f: What are you actually trying to do?
09:27 mortis__ Im trying to logically solve something that should be a rather simple task in salt .... i want to have an sls triggering a cmd.run on one server and then on another server when the first one is done, but without including the sls in the topfile since i only want to run it manually. I need to be able to trigger it via the api. Ideas on how to solve it? Right now I tried to use jinja to make sure it triggers on the correct hosts, but im getting trouble ...
09:27 mortis__ ... when trying to run it with "state.sls some-standalone-sls". (Telling me "no matching sls found")
09:27 monkey66 joined #salt
09:28 mortis__ i guess that's because it is never actually synced out to the minion
09:30 chiui joined #salt
09:31 Bateau_ joined #salt
09:33 Furao joined #salt
09:35 lothiraldan joined #salt
09:35 alexr joined #salt
09:36 alexr joined #salt
09:40 otter768 joined #salt
09:42 linjan joined #salt
09:42 paulm- joined #salt
09:45 N-Mi_ joined #salt
09:52 aw110f babilen: i was able to do what i needed with http://docs.saltstack.com/en/latest/ref/states/requisites.html#watch . I had a cmd.wait state instead of the service.running from the docs and watch a managed file. I needed to run a command when a managed binary file changed.
09:53 tracphil joined #salt
09:53 babilen aw110f: What ist that file and what are you doing when it changes?
09:53 babilen *is
09:53 mariusv joined #salt
09:56 martoss joined #salt
09:56 martoss left #salt
09:58 jhauser joined #salt
10:01 Furao joined #salt
10:08 paulm- It's possible to use python functions in SLS somehow, right?
10:09 [1]foulou joined #salt
10:10 paulm- Or files you want to use as templates in general
10:14 CycloHex joined #salt
10:14 babilen paulm-: Sure, you can use "#!py" to write pure Python or any of the other renderers. If you only need a little Python then you might want to use mako as renderer (which would have been a better choice as default than jinja)
10:15 babilen http://docs.saltstack.com/en/latest/ref/renderers/all/ has a list of renderers and http://docs.saltstack.com/en/latest/ref/renderers/index.html explains how to use them
10:15 babilen What are you actually trying to do?
10:15 paulm- I really just need to parse an integer out of a string, but jinja's int filter only works if the string contains only a completely valid numeric in its entirety
10:16 paulm- So '123' is OK but '123x' is not
10:16 paulm- So I figured I would need to learn a bit of Python and use that somehow
10:16 babilen Yeah, that's exactly the situation in which mako excels (as it allows you to include small Python blocks easily as detailed in http://docs.makotemplates.org/en/latest/syntax.html#python-blocks )
10:17 paulm- I don't really want to learn Mako though
10:18 babilen Sadly it is not the default in salt, but you can use it with "#!mako", but then you end up with a wild mix of renderers (which is a shame)
10:18 paulm- It looks completely different to Jinja which I know well
10:19 babilen Yeah, it is a different template engine. If you want to work with jinja you could implement your function in an execution module (cf. http://docs.saltstack.com/en/latest/ref/modules/#modules-are-easy-to-write ) and call that from jinja with 'salt['your_module.your_function'](arg1, arg2, ...)'
10:19 babilen jinja is just not powerful enough
10:21 paulm- But you said you can inject Python code directly into Jinja, right?
10:21 babilen http://docs.saltstack.com/en/latest/ref/renderers/all/salt.renderers.jinja.html#calling-salt-functions
10:23 babilen paulm-: No, you can *not* have Python blocks directly in jinja. That is *the* major shortcoming of this puny (and fairly useless in this context) templating engine. jinja was designed for web development (and web devs) for frontend definition in which the *entire* logic is implemented in the backend and the frontend simply renders websites based on the data it receives.
10:23 babilen It was never meant to be used for actual data munging, analysis or anything more powerful. As you often have to do that in salt jinja really wasn't a great choice.
10:24 imanc does salt have any state modules for gpg?
10:24 babilen https://github.com/saltstack/salt/issues/12761
10:24 imanc not seeing anything in the docs..
10:25 babilen imanc: What would you like to do? And no, I am also not aware of states or execution modules.
10:25 imanc babilen: just accept a key, really  - probably best using runcmd
10:25 babilen yeah
10:25 anybroad joined #salt
10:26 babilen Whatfor do you have to accept that key? (nosy little bugger am I not?!)
10:26 babilen Argh, if only I had decided to use mako for our entire salt deployment ... :(
10:27 yomilk joined #salt
10:28 paulm- Could I write a custom filter for Jinja easily?
10:28 babilen paulm-: Yes, I linked the documentation above
10:28 babilen Did you read that already?
10:29 babilen There is no way to actually write additional jinja filters in salt, but you can implement and use functions in your custom execution module (as detailed earlier)
10:36 jtang joined #salt
10:40 Rawkode joined #salt
10:49 istram joined #salt
10:57 alexr__ joined #salt
10:57 yomilk_ joined #salt
10:59 Furao joined #salt
11:03 paulm- When importing macros in Jinja is it possible to specify an absolute path instead of a relative one?
11:04 nullptr joined #salt
11:06 paulm- Actually I can't find a way to address the file at all
11:07 alexr joined #salt
11:07 * babilen hands paulm- one http://refheap.com
11:09 mike25de joined #salt
11:10 mike25de hi guys - anyone can suggest  a web interface for salt? I don't need a free one, i can pay for it... but i need a good one :)
11:11 bezaban mike25de: there is halite, but last I tried it it wasn't great. Decent, but not great.
11:11 bezaban not sure any others exist
11:11 mike25de bezaban: i have the same impression
11:11 mike25de at this point i have developed my own ... but i have added a lot of code
11:12 mike25de and still add a lot :)
11:12 mike25de well... then i shall keep on using mine.
11:13 babilen You could open source it and people might be interested in turning it into *the* web interface
11:13 martoss1 joined #salt
11:14 mike25de babilen: i am thinking of that... i need to redo probably all the code :) to use a decent framework.
11:14 babilen Well, wouldn't you have to do that anyway? ;)
11:15 babilen Which framework are you using right now and what would you consider to be a "decent" one?
11:15 mike25de babilen: i haven't use any framework.. i just put together some php scripts and  html/css frontend
11:16 mike25de i will be using F3 - FatFreeFramework - is a simple yet useful one.
11:21 mike25de the problem is that ... my salt setup is complex... 5 datacentres... and environments... not sure if will be useful for others.
11:22 mike25de but for the sake of sharing knowledge... i will setup a test environment and work on this... web interface.
11:22 mike25de have you guys been using salt enterprise?
11:22 cobakobodob joined #salt
11:24 babilen nope
11:30 eliasp joined #salt
11:32 martoss joined #salt
11:33 arno joined #salt
11:35 arno joined #salt
11:40 bhosmer joined #salt
11:41 otter768 joined #salt
11:45 martoss joined #salt
11:47 alexr joined #salt
11:51 CeBe joined #salt
11:57 ecdhe_ joined #salt
12:01 linjan_ joined #salt
12:02 arno joined #salt
12:08 jtang mike25de, try rundeck ?
12:08 jtang you can wire in steps into it
12:12 h8 joined #salt
12:13 bhosmer joined #salt
12:18 jtang joined #salt
12:19 monkey66 left #salt
12:22 intellix joined #salt
12:25 go joined #salt
12:26 JDog Anyone used the pip module? Got an issue with trying to install from a custom source (i.e. not the default one). I've used the index_url argument to pip, but when the state is run it is not being picked up? If that's the right thing to use then I'll post a gist.
12:26 pjota joined #salt
12:29 sypher_ joined #salt
12:31 lothiraldan joined #salt
12:34 alexr__ joined #salt
12:35 martoss joined #salt
12:36 martoss joined #salt
12:40 JDog Basically I want to run pip install -r requirements_file.txt -f http://...deployment_libs . but in a salt state. Anyone done this?
12:43 alexr__ joined #salt
12:46 alexr___ joined #salt
12:47 alexr___ joined #salt
12:48 babilen JDog: That should be pretty easy, just set requirements and find_links in the state
12:52 babilen (you might want to paste your state and its output to http://refheap.com)
12:54 kbyrne joined #salt
13:02 martoss joined #salt
13:04 JDog babilen: Ah, should I be using find_links instead of index_url then?
13:06 babilen JDog: find_links is "-f", isn't it?
13:08 tux_ joined #salt
13:10 tux_ hello, im messing around with the salt-cloud module. in the docs is something i dont understand... what is the meaning of MOR??? for example resourcepool: MOR of the resourcepool to be used for the new vm
13:11 tux_ im asking this because i get an error while creating the new vm: [Task Error]: A specified parameter was not correct.
13:11 tux_ spec.location.pool
13:12 I3olle hey there, does anyone know whether by using the get_dir command already exisiting files will be replaced?
13:12 catpig joined #salt
13:13 numkem joined #salt
13:14 thawes joined #salt
13:16 tux_ no idea?? anyone??
13:16 tux_ is no one using salt-cloud with vcenter?
13:18 zekoZeko is there a way to run multiple state modules in one state? Not really sure how to do it, i'd like to have pkg.installed and debconf.set with just one state in sls file.
13:18 mike25de jtang thank you
13:18 zekoZeko with debconf.set running first (to "accept" EULA for ttf-mscorefonts-installer)
13:20 jtang mike25de, you mileage may vary with rundeck
13:20 jtang but its not too bad for executing jobs
13:22 redzaku joined #salt
13:27 Kelsar So, why do my minions only answer test.ping if they like to. More specific i get only all, if do it more then once in a row
13:27 xf10e zekoZeko: one "ttf-mscorefonts:" with a pkg.installed and a debconf.set and the debconf-one requires "- pkg: ttf-mscorefonts" ?
13:27 zekoZeko xf10e: i'm looking at http://docs.saltstack.com/en/latest/ref/states/
13:28 zekoZeko xf10e: and there it does salt: pkg.latest and service.running
13:28 xf10e jupp, same thing
13:28 zekoZeko aha, i made the state to compile, but there are still errors running it. bloody yaml
13:29 mike25de jtang ... is not a bad tool... i am looking more to .. manage salt from a web interface... with roles permissions etc. thank you anyway for pointing rundeck - i will remember it
13:30 zekoZeko xf10e: yay, got it running. I REALLY have to read some YAML docs, this is making me crazy, sometimes there's dashes, sometimes no dashes,...
13:31 sgregory_ joined #salt
13:32 zekoZeko xf10e: actually my requirements are the other way around, i need to set debconf values first and then install the package so it sees the EULA accepted on installation and runs the downloader.
13:32 sgregory_ joined #salt
13:34 lothiraldan joined #salt
13:35 alanpearce_ joined #salt
13:35 zekoZeko xf10e: https://gist.github.com/borutmrak/9b0384c9bc3066e7e999 this is what i've come up with. Should I change anything? I'll try running it on a clean machine, all my desktops already have this installed.
13:37 babilen JDog: So, did that work out?
13:37 iwishiwerearobot joined #salt
13:38 rome_390 joined #salt
13:42 otter768 joined #salt
13:42 alexr___ joined #salt
13:44 elfixit joined #salt
13:46 xf10e zekoZeko: looks good. if the state itself is named "ttf-mscorefonts-installer" you don't need to list pkgs or set the name for debconf (just rm lines 3, 6-7)
13:48 JDog babilen: No. Looking into it now.
13:48 babilen xf10e, zekoZeko: Well, you'd still have to keep the requirement (if you want to use state.id)
13:50 babilen zekoZeko: And pkg.install typically takes "- name: PACKAGE_TO_INSTALL" and you would only use "- pkgs:" if you wanted to install multiple packages. I personally prefer to split different states up and give each their own ID (e.g. 'ttf-mscorefonts-eula' or even 'Accept MS corefonts EULA')
13:52 babilen I'd also like to point out that fonts-liberation contains free fonts with similar metrics to those contained in ms corefonts (some of which are even considered to be better by some font heads)
13:54 pdayton joined #salt
13:56 paulm- joined #salt
13:59 zekoZeko xf10e: if I do pkg.installed without parameters (pkgs, name, whatever) and add another state module (debconf.set), It doesn't work. At least I think so.
14:00 jeremyr joined #salt
14:00 bhosmer joined #salt
14:02 nitti joined #salt
14:03 zekoZeko babilen: thanks for the note about fonts-liberation, but that would mean i'd have to also set up font replacements, we have some document templates that are required to use Courier New, using MS fonts is simply easier (for now)
14:06 bhosmer joined #salt
14:06 sroegner joined #salt
14:09 cpowell joined #salt
14:12 xf10e zekoZeko: you can also use 'pkg:\n - installed'
14:13 zekoZeko xf10e: just found that out, yeah :) But since I have requires: debconf: ttf-... I can simply have pkg.installed: - requires...
14:13 zekoZeko i'm getting the hang of this it seems :) thanks for the help
14:14 babilen xf10e: That style should be considered obsolete
14:14 babilen xf10e: You'd use "foo: \n pkg.installed: []" if you don't require anything else and want to subsume multiple states under the same ID
14:15 zekoZeko babilen: this! thanks!
14:16 AndreasLutro joined #salt
14:24 SheetiS joined #salt
14:25 mike25de when installing a package with salt.. does salt take the latest version?
14:27 cheus joined #salt
14:27 tux_ any idea how to address a resourcepool in vsphere?
14:28 pdayton joined #salt
14:33 racooper joined #salt
14:35 thawes joined #salt
14:38 babilen mike25de: It uses whatever version would be used by the underlying package manager.
14:38 babilen (as that is typically only a single version unless you deal with broken repositories you would get the latest one)
14:38 mpanetta joined #salt
14:39 mike25de ok babilen - thank you. In my centos repo.. i might have multiple versions of software.. i will have a copy of the centos repo locally.
14:40 babilen Is that normal for centos repositories?
14:40 oldmantaiter joined #salt
14:41 asdf____ joined #salt
14:41 mike25de babilen ... no... but we might need for some apps... multiple versions...
14:42 mike25de when we update the repo.. we need to keep the old versions.... in order to have a smooth transition. (maybe some servers need the old version of the app) - it has happened before that a new app crashed some other apps/servers
14:42 babilen mike25de: Well, having multiple versions in the same repository is a big no-no in Debianland, but I have no idea how that is in Centosland.
14:43 mike25de :) it's the same in centosland... but i have to figure out how to manage multiple versions.
14:44 babilen You would normally have dedicated repositories and/or packages (e.g. foo1, foo2 for version 1.* and 2.* respectively)
14:50 mohae joined #salt
14:51 dude051 joined #salt
14:55 jeremyr1 joined #salt
15:01 schlueter joined #salt
15:02 murrdoc joined #salt
15:02 schlueter1 joined #salt
15:04 housl joined #salt
15:06 cleme1mp joined #salt
15:08 rtuin joined #salt
15:10 TheoSLC joined #salt
15:13 andrew_v joined #salt
15:14 ndrei joined #salt
15:18 twellspring joined #salt
15:18 xf10e bye *
15:19 thawes joined #salt
15:21 JDog So, pip aside, I'm also tryign to install mysql on the box. I've got the mysql formula, but having difficulty using it. the gist is here https://gist.github.com/jontyneedham/eedf8cf0228db38c3eff
15:22 JDog I'm trying to install mysql client and server, and I also will want to set up databases etc, but I'm struggling with the yaml syntax as well as getting mysql.client not found error
15:27 _JZ_ joined #salt
15:27 kaptk2 joined #salt
15:29 babilen JDog: That's not how you would use it. You would simply use "- mysql.server", "- mysql.client" and "- mysql.python" in your top.sls. If you want to create databases you would have to target a suitable pillar to your minion as exemplifed in https://github.com/saltstack-formulas/mysql-formula/blob/master/pillar.example
15:30 babilen And if you want to manage databases you'd also have to target "mysql.database" to your minion in the states top.sls
15:30 babilen (you probably want to simply use "- mysql" for the server and then "- mysql.client" for the client and mysql.python whereever you need it)
15:30 JDiPierro joined #salt
15:32 aquinas joined #salt
15:33 hammerlun joined #salt
15:35 * babilen notices that JDog has quite a high latency ..
15:36 JDog Apologies -- lots of meetings going on.
15:36 bozenski joined #salt
15:37 JDog babilen: why can't I put them in a package like I've tried to as states?
15:38 babilen You could use them by using "- include: - mysql.server - mysql. ...." in a single SLS, but I fail to see what that buys you.
15:39 JDog So does include install the stuff for you?
15:39 babilen And note that mysql.server isn't a state, but a SLS file
15:39 miglioris joined #salt
15:39 babilen It does whatever it does if you target it directly.
15:39 JDog babilen: explain
15:41 ajmccluskey joined #salt
15:42 Ahlee I want to be able to match based on the presence of a directory on minions - thoughts on how to do this?  I originally tried a _grain, but it's not dynamic enough.  I tried an ext_pillar, but ext_pillar runs on the master, and I don't want to have to figure out ways to list remote directories from the master for windows/linux in python.  I'm leaning towards a _module that updates a data store, and having hte external pillar query that data store
15:42 Ahlee seems extremely hacky, error prone, and overly complex
15:43 otter768 joined #salt
15:44 rtuin_ joined #salt
15:45 babilen JDog: If you have file_roots/mysql/server{.sls,/init.sls} and some states in there and also target those to your minion via "- mysql.server" the states in there will be applied. That is equivalent to having a "file_roots/foo.sls" with "include: - mysql.server" in there
15:46 dutile joined #salt
15:46 babilen If there is a state in mysql.server that installs the mysql server then a server will be installed (which is the case for this formula)
15:46 JDog Ok.
15:48 JDog Seems to have been slightly more successful. THe other issue I'm having is downloading packages using pip -- I can do it on hte box itself via command line using the previously pasted command, but most are missing when doing it via salt-stack.
15:49 JDog the gist is here https://gist.github.com/jontyneedham/eedf8cf0228db38c3eff
15:49 ramsfield joined #salt
15:52 babilen please use pip.installed: the pip: - installed style should be considered "old" and "baaad"
15:52 sanipasi joined #salt
15:53 JDog I'm assuming that won't actually affect the functionality though?
15:55 JDog It doesn't anyway.
15:55 conyers joined #salt
15:57 redzaku joined #salt
15:57 redzaku joined #salt
15:57 pdayton joined #salt
15:58 TheoSLC joined #salt
15:58 chupp joined #salt
15:59 martoss joined #salt
16:00 pdayton joined #salt
16:01 ajmccluskey I was looking at the ssh_known_hosts state and the ssh module last night. Turns out the ssh_known_hosts state is available for Windows minions, but the ssh module is unavailable.
16:01 ajmccluskey __virtual__ in ssh module does check for Windows
16:01 ajmccluskey is this a bug given that the ssh_known_hosts state relies on the ssh module?
16:02 aqua^mac joined #salt
16:02 delrosari joined #salt
16:02 ajmccluskey The fact that the ssh module isn't loaded on Windows doesn't seem to matter then the ssh_known_hosts state is using it though - still runs code in the ssh module... until there's a KeyError exception at least
16:03 Firewalll joined #salt
16:04 filla joined #salt
16:05 kermit joined #salt
16:06 lothiraldan joined #salt
16:07 darxmurf bye all ! have a good week-end !
16:07 sicurella joined #salt
16:07 che-arne joined #salt
16:08 Ahlee ajmccluskey: sounds like a bug.  Doesn't sound like a common use case, so likely hasn't been discovered before
16:09 ajmccluskey Ahlee: cool. Thought I may as well check here before raising an issue. Cheers.
16:10 otter768 joined #salt
16:10 ziech joined #salt
16:10 ndrei joined #salt
16:11 wendall911 joined #salt
16:12 implicitnewt joined #salt
16:12 phx if i have a state with the py renderrer, can i somehow just run it and check the output without calling any actual actions?
16:13 hickox joined #salt
16:14 JDiPierro phx: This might be what you're looking for? http://docs.saltstack.com/en/latest/ref/states/testing.html
16:14 phx almost
16:14 phx basically i want to see the raw output of the py state
16:15 phx test mode involves a run on the minion. what i'm after is, whether it's syntactically correct, does the right thing, and so on
16:16 JDiPierro phx: This sounds like it'll do that: http://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.show_sls
16:17 legalley joined #salt
16:17 phx JDiPierro, thanks! could you please tell me what you've been googling for/how you found it?
16:18 JDiPierro I knew about show_highstate from reading through the docs in the past so I figured there had to be a way to do it for a single SLS. So I just happened to know go into the state module docs and look through those :P
16:19 conan_the_destro joined #salt
16:19 phx :)
16:21 martoss joined #salt
16:23 peters-tx joined #salt
16:23 implicitnewt joined #salt
16:23 hasues joined #salt
16:24 hasues left #salt
16:26 malinoff joined #salt
16:26 iggy Ahlee: I'm guessing you want to match in the top file based on it, so something like {% if salt['file.directory_exists']('/foo') %} in the state file won't do?
16:27 tligda joined #salt
16:28 phx and is there a way to create an empty entry for a host in top.sls? that's still valid ofc
16:28 phx something like a placeholder
16:29 iggy so long as you can get the yaml right
16:29 Ahlee iggy: hrm.  Well, In this case, the presense of the directory means "this software is installed", and I want to be able to query a list of "who has this software"
16:30 Ahlee i suppose I could just get a list of hosts on first pass, and then target on a second pass
16:30 implicitnewt I've got an issue trying to setup multiple environments on my salt server.  I have a base environment and another beside it to start.  My top file  is '*' and a single sls to install screen.  My env2 top file is 'env2*' and a single sls to for a couple managed files.  If I call salt '*' state.highstate they are handled correctly, but if I call salt '*' state.sls config env=env2, all hosts receive the managed files even though the
16:30 implicitnewt don't match env2* on their minion ID.  Does the '*' on the salt call override the id designation in the top.sls file?  If so is there a way to stop that?  I want to have environments to logically separate things but also to help avoid things inadvertently getting pushed out like this.
16:30 iggy salt --out=terse '*' file.directory_exists /foo | wc -l ?
16:30 yomilk joined #salt
16:31 phx and this ``{'base': {'*': ['repos.epel']}}'' in py should be equal to ``base:\n  '*':\n    - repos.epel'' in yaml, right?
16:31 iggy hmm, if your state has the if dir_exists, just target everything
16:32 phx oh right, it works
16:32 phx i just misunderstood the output
16:32 iggy implicitnewt: that is expected yes
16:33 iggy we have states that aren't anywhere in the top file (special code deploy type stuff), how else would you get those to run (without constantly adding/removing things from the top file
16:33 Ahlee iggy: hrm.  Yeah, that gets me if a specific directory is there on linux (windows bug in file.directory_exists, it looks like)
16:33 implicitnewt iggy: is there a way to stop that from happening?
16:33 iggy Ahlee: probably fixed in the ensuing 2 years
16:34 iggy implicitnewt: no
16:34 redzaku joined #salt
16:34 Ahlee still need to find a way to solve hte "well what's there?" issue
16:34 iggy implicitnewt: find a different way to target rather than '*'
16:34 Ahlee that's more reporting problem though
16:35 phx i think i just fucking love the py renderrer.
16:36 implicitnewt iggy: I was hoping that would be solved by the separate environments.  I can target on IDs in the second environment but my thought was having the target 'env2* in the second environment top.sls would do that.
16:37 iggy no, see the example I mentioned earlier
16:37 schristensen joined #salt
16:38 schlueter joined #salt
16:39 StDiluted joined #salt
16:40 Ozack joined #salt
16:42 schlueter1 joined #salt
16:43 RedundancyD joined #salt
16:43 marc___ joined #salt
16:44 marc___ hi
16:44 marc___ anybody has experience to config slurm with salt?
16:45 marc___ or sombody knows somthing to help to deploy like geppeto at puppet ?
16:45 theologian joined #salt
16:47 iggy marc___: if you don't see anything on github (in formulas, etc.), it probably hasn't been done yet... doesn't mean it's not possible (and likely fairly easy)
16:48 jalbretsen joined #salt
16:50 marc___ ok I'm try to do a simple formula for slurm
16:51 marc___ but is not easy to work with vim
16:51 marc___ for this reason Im try to find somthing similar to geppeto
16:51 paulm- joined #salt
16:51 Kakwa joined #salt
16:52 iggy I don't know what geppeto is, so not really sure if there are similar things in salt
16:53 UtahDave joined #salt
16:54 jeremyr joined #salt
16:54 marc___ geppeto is a GUI based on eclipse, than helps to program
16:54 marc___ puppet manifest
16:55 Ahlee I use salt.vim
16:55 paulm- It seems I cannot apply both file.comment and file.uncomment to a file because I get the error: ID contains multiple state declarations of the same type
16:55 iggy I don't know of anything like that for salt, so you might want to stick with puppet for now
16:55 iggy paulm-: put them in different states
16:57 marc___ Im starting new project and I start from 0
16:58 marc___ I want to build all with salt, but my background is puppet
16:58 iggy so why switch?
16:59 marc___ becouse I prefer python and i like the slat arquitecture, I think is good tool for the new infraestructure
17:00 cpowell joined #salt
17:00 UtahDave marc___: have you done through the walkthrough on docs.saltstack.com?
17:00 marc___ yes, why?
17:01 pdayton joined #salt
17:05 ajmccluskey Just opened this issue RE previous comment on ssh module and ssh_known_hosts on Windows: https://github.com/saltstack/salt/issues/19573
17:11 Ryan_Lane joined #salt
17:11 schlueter joined #salt
17:13 karimb joined #salt
17:15 twellspring joined #salt
17:15 pdayton joined #salt
17:16 UtahDave marc___: sorry, I missed the first part of your conversation with iggy.
17:16 rtuin joined #salt
17:20 otter768 joined #salt
17:21 tligda joined #salt
17:23 KyleG joined #salt
17:23 KyleG joined #salt
17:24 ajmccluskey Anyone have git.latest working on Windows minions? No matter what I do it seems the target path (local path for cloned repo) gets mangled.
17:25 ajmccluskey My guess from the code is that the target path gets formatted with "{0!r}", which runs repr on the string and wraps it in extra quotes.
17:27 pdayton joined #salt
17:28 rtuin_ joined #salt
17:30 UtahDave ajmccluskey: could you open an issue on that on github?
17:30 mattbarto joined #salt
17:30 nickdew joined #salt
17:30 JDog Can someone explain how to use the functions listed in the salt modules in the sls files? I just can't see the link.
17:30 JlRd joined #salt
17:31 iggy JDog: you generally don't
17:32 JDog iggy: er?
17:32 pviktori_ joined #salt
17:32 iggy but you can do things like {% if salt['file.directory_exists']('/foo') %}
17:33 ajmccluskey UtahDave: Sure thing.
17:33 JDog And that would live in and sls file? I want to be able to automate the entire process of setting up a box and this is part of it. Is it more advisable to just use the python renderer?
17:33 desposo joined #salt
17:34 iggy JDog: what don't the state modules do that you need to use execution modules for?
17:34 arno joined #salt
17:35 mcclester joined #salt
17:35 JDog iggy: ok, you're ahead of me. The state modules are sls files and the execution modules are the python files for orchestration etc?
17:36 snave joined #salt
17:37 iggy no, state modules are salt.state.<foo>.<function>
17:38 pviktori joined #salt
17:38 iggy execution modules are salt.modules.<foo>.<function>
17:38 JDog What are modules for?
17:39 iggy they do most of the heavy lifting for the states and they are what you run on the command line
17:39 iggy i.e. salt '*' cmd.run uptime  is running the salt.modules.cmdmod.run function
17:40 JDog I don't want to run anything on the command line. So the modeuls are called by the states -- as per your former comment?
17:40 iggy you will eventually want to (trust me) and it's an important distinction either way
17:41 JDog I agree, there are things we want to do with that; however I do want to completely build a box up for a new dev automaticallly.
17:41 iggy so in your .sls file you've got a file.managed, that uses the salt.states.file.managed function (which behind the scenes uses a couple different functions from salt.modules.file)
17:42 JDog Ok. Thanks for that -- I've just noticed the time and that I'm late -- need to go.
17:42 JDog Thanks
17:42 hebz0rl_ joined #salt
17:42 I3olle joined #salt
17:45 otter768 joined #salt
17:49 shaggy_surfer joined #salt
17:49 robawt UtahDave: aloha! any word on 2014.7.1 this week?
17:49 robawt there was some rumors about it in a few github tickets
17:50 redzaku joined #salt
17:50 aqua^mac joined #salt
17:51 mgw joined #salt
17:51 aparsons joined #salt
17:53 pdayton joined #salt
17:53 UtahDave robawt: Yeah, I think it will be soon. QA team is hammering it right now
17:53 robawt sweeeet
17:54 robawt like today soon or next week or two soon? ;)
17:54 anybroad joined #salt
17:56 aparsons joined #salt
17:57 JDiPierro joined #salt
17:58 UtahDave robawt: It's looking like sometime next week. QA team is doing some manual testing today.
17:59 robawt sweet
17:59 robawt thanks UtahDave
17:59 UtahDave anytime, man!
18:02 murrdoc joined #salt
18:03 cleme1mp joined #salt
18:08 bregalad UtahDave is the man!
18:10 Corey 10:09:01 < bregalad> UtahDave is the man! <-- FINALLY, we figured out what UtahDave's mother's IRC nick is!
18:11 UtahDave lol
18:11 UtahDave thanks?
18:11 bregalad UtahDave: this is Justin, btw, sorry my freenode nick isn't that great
18:11 Tyrm joined #salt
18:12 tracphil_ joined #salt
18:12 UtahDave Ah, ok. cool
18:12 Corey bregalad: Which Justin?
18:13 UtahDave I'm assuming the Justin from our QA team
18:13 bregalad Corey: how many Justins do you know?
18:13 bregalad UtahDave: correct
18:13 tracphil_ Coming from Ansible and trying to figure out how I can exclude a host or group of hosts. Example: I want to setup ntp clients on all hosts except those designated ntp servrs.
18:13 Corey bregalad: A lot, as it turns out. :-) If you're @rothgar I owe you a drink.
18:14 Mso150 joined #salt
18:14 shrihari joined #salt
18:14 bregalad Corey: cool, sadly I'm not the owner of this drink debt
18:15 Corey bregalad: So sad!
18:15 shrihari Hi can i use #salt to deploy std ubuntu desktop ?
18:15 robawt shrihari: that's actually quite common
18:16 robawt salting your desktop is also a good exercise for new users since you know exactly what you are expecting as an end result
18:16 UtahDave tracphil_: how are you designating which clients are ntp servers?  grains?
18:17 shrihari My deployment has nothing to do with cloud/virtual/cluster stuff , just plain ubuntu dtop's..
18:17 murrdoc heh /etc/salt/minion.d/mines.conf has a fun file name
18:17 tracphil_ UtahDave: this is in theory in my head. I have been looking at Salt and it looks good. In Ansible you would just do something like '*!ntp-servers'. I haven't tried it in salt yet.
18:17 Corey shrihari: Are you talking about bare metal provisioning?
18:18 tracphil_ that would install the ntp  playbook on all servers except those in the ntp-server group
18:18 shrihari Yes  corey , for a school
18:18 wt joined #salt
18:19 robawt tracphil_: same thing, if you'
18:19 robawt re labeling with grains it's even easier
18:19 UtahDave tracphil_: if you set that as a "role" grain, you could do something like this with a compound match    salt -C '* NOT G@roles:ntp-server'  test.ping
18:19 UtahDave http://docs.saltstack.com/en/latest/topics/targeting/compound.html
18:19 tracphil_ oh nice
18:21 tracphil_ UtahDave: Thanks a million for providing that URL. Now I am really excited to get this working :)
18:21 shaggy_surfer joined #salt
18:21 UtahDave you're welcome, tracphil_.  Let me know if you have any other questions. I'm usually in and out of this channel all day.
18:22 spookah joined #salt
18:22 tracphil_ UtahDave: can you elaborate on what you mean by "relabeling with grains"?
18:23 ajw0100 joined #salt
18:23 UtahDave grains are like facts in puppet.  I'm not sure what they're called in Ansible
18:23 tracphil_ so they would be on the client then right?
18:23 UtahDave tracphil_: correct.  client side source of truth
18:23 tracphil_ they are called facts in Ansible as well.
18:23 UtahDave ah, cool
18:24 tracphil_ cool, thanks, I will look into that as well. Seems to be a better option
18:26 StDiluted Anyone using salt-cloud in VPC?
18:26 StDiluted having an issue where the instance spins up but it never gets further than that
18:26 StDiluted salt-cloud hangs at ‘Creating VM….'
18:27 bantone I wonder if VPC is so much different than rackspace's private cloud offering
18:27 aw110f joined #salt
18:27 nickdew I'm not sure about salt-cloud, but it sounds like an AWS api auth issue. (This is based on past experiences)
18:28 StDiluted salt-cloud works fine outside VPC
18:28 JDiPierro joined #salt
18:28 bantone good ole auth issues
18:28 StDiluted no hang
18:28 bantone has anyone tried it w/ rackspace?
18:28 StDiluted and it accesses the API because the instance gets launched
18:28 UtahDave StDiluted: does your salt-master have a route to the vpc?
18:28 forrest joined #salt
18:29 StDiluted UtahDave: I was wondering if that might be the problem. salt-cloud requires a way INTO the VPC, yeah?
18:29 StDiluted salt itself doesnt
18:29 StDiluted but the initial spin up does
18:29 UtahDave salt-cloud ssh's into the new vm to set up the salt-minion
18:29 StDiluted ah, right.
18:29 UtahDave so there has to be a route from the salt-master into the vpc
18:29 StDiluted hrm
18:30 StDiluted any way to get it to use a bastion host?
18:30 UtahDave I ran into this same thing recently with an enterprise customer
18:30 UtahDave StDiluted: that idea has been tossed around but not implemented yet
18:30 StDiluted ah
18:30 StDiluted so I’d have to run the salt master inside the VPC in this case, it seems
18:30 bantone does salt-cloud just help an admin manage cloud servers better?
18:30 bantone i'm a bit new-ish to salt
18:31 StDiluted bantone: yeah, it spins up new instances and bootstraps the minion, accepts the keys, etc.
18:31 bantone but i manage physical servers
18:31 bantone but want to play with it in the cloud
18:31 bantone gotcha
18:31 lothiraldan joined #salt
18:31 bantone vs doing all that manually
18:31 StDiluted UtahDave: so what did the enterprise customer end up doing?
18:32 StDiluted ah maybe I need to enable classiclink
18:32 StDiluted that might solve this
18:33 Gareth ahoy hoy.
18:35 UtahDave hey, Gareth!
18:36 UtahDave StDiluted: the enterprise customer created a route for their salt-master to get into the vpc
18:36 murrdoc Gareth:  why does every server need to be in utc
18:36 murrdoc :D
18:36 UtahDave back in a minute
18:36 murrdoc (assuming u are gareth greenway and the massive segue u had to deal with in uuasc)
18:37 chiui joined #salt
18:38 Gareth murrdoc: haha
18:39 Gareth murrdoc: Yup. That's me :)
18:39 murrdoc good times
18:40 Gareth The UTC vs No UTC could be a talk / debate all on it's own, quite the inflammatory topic :)
18:40 schlueter joined #salt
18:40 Ryan_Lane joined #salt
18:42 lothiraldan joined #salt
18:43 murrdoc it is, but it seemed unnecessary segue , at least on the hangout
18:44 Gareth yeah. definitely distracted from the topic at hand.  I got some good feedback and some ideas for new additions, so that was good :)
18:44 markizano joined #salt
18:44 jimklo joined #salt
18:44 anybroad joined #salt
18:49 murrdoc one thing though, i feel like the schedule for test.ping should ship with all minion configs
18:49 murrdoc like an hourly or 2 hourly test.ping
18:50 mattbarto joined #salt
18:53 Gareth murrdoc: for what purpose?
18:54 murrdoc i tend to run a test.ping before running any salt command
18:54 murrdoc sorta like a roll call
18:57 Gareth ah I see
18:57 DarkByD3sign joined #salt
18:57 nobles joined #salt
19:00 nickdew joined #salt
19:03 jimklo joined #salt
19:03 mckenny joined #salt
19:05 Gareth ah. hm. interesting.  looks like you can specify a timezone using dateutil library.
19:06 ndrei joined #salt
19:09 rothmille joined #salt
19:09 StDiluted UtahDave: what is the ssh_gateway configuration in salt-cloud used for? Can that be used for a bastion host? (https://github.com/saltstack/salt/blob/develop/salt/cloud/clouds/ec2.py#L831)
19:10 StDiluted that appears to be what I need
19:12 heroth joined #salt
19:15 pineau joined #salt
19:18 nickdew joined #salt
19:19 anybroad_ joined #salt
19:20 mpanetta joined #salt
19:21 martoss joined #salt
19:22 sytsma joined #salt
19:26 nickdew Does anyone have a recommend Vim plugin for Jinja?
19:27 murrdoc syntastic + salt-vim
19:27 nickdew Does that handle auto indents?
19:27 murrdoc yup
19:28 nickdew Awesome! Thanks.
19:28 murrdoc well, i would acquire pathogen, then git clone in salt-vim and syntastic
19:28 laselle joined #salt
19:28 nickdew I use Vundle, but already have salt-vim.
19:29 murrdoc i think syntastic from scrooloose works with that
19:30 Gareth syntastic++
19:31 ikanobori joined #salt
19:32 yomilk_ joined #salt
19:35 zadock joined #salt
19:38 zadock joined #salt
19:38 alverest joined #salt
19:39 aqua^mac joined #salt
19:39 bhosmer joined #salt
19:40 Mso150 joined #salt
19:41 perfectsine joined #salt
19:41 cunliffe joined #salt
19:47 grieger joined #salt
19:47 UtahDave StDiluted: I had no idea that existed.  Is that working for you?
19:47 StDiluted anyone seen this error in salt-cloud: 6bfdf-4796078606%40sale.craigslist.org
19:47 StDiluted oops
19:47 StDiluted not that
19:47 StDiluted haha
19:47 StDiluted [ERROR ] There was a profile error: an integer is required
19:47 StDiluted UtahDave: it is!
19:47 StDiluted now I’m getting that error i just mentioned.
19:48 StDiluted so I’m thinking there’s a problem in my profile somewhere but not sure where
19:50 stawicki joined #salt
19:53 soderquis joined #salt
19:53 ajw0100 joined #salt
19:55 ajmccluskey joined #salt
19:56 otter768 joined #salt
19:58 decorte joined #salt
19:59 redzaku joined #salt
20:01 StDiluted UtahDave: willing to look at a gist and tell me where it might be erroring with that?
20:01 UtahDave StDiluted: sure!
20:02 hoglund joined #salt
20:02 rome_390 joined #salt
20:04 StDiluted UtahDave: https://gist.github.com/dginther/1ac0a2d5da09c3ab60a8
20:04 redzaku joined #salt
20:06 UtahDave StDiluted: can you add the error you're getting to that gist?
20:06 StDiluted yeah i was just replicating it
20:07 UtahDave StDiluted: also, make sure you're only using 2 spaces for each indentation level
20:07 schlueter joined #salt
20:07 StDiluted ok
20:07 StDiluted added a comment
20:08 StDiluted that includes the providers file as well?
20:09 TheoSLC I can't see a way to set windows registry data values with salt state modules.  Any clues/
20:10 nullptr TheoSLC: salt '*' reg.set_key HKEY_CURRENT_USER 'SOFTWARE\\Salt' 'version' '0.97' REG_DWORD
20:11 anybroad joined #salt
20:11 TheoSLC nullptr: okay. So I should use the execution module instead of the state module?
20:11 alexr_ joined #salt
20:11 UtahDave StDiluted: what version of salt?
20:11 StDiluted 2014.7
20:11 TheoSLC 2014.7.0
20:11 TheoSLC oops. wrong person.
20:11 TheoSLC now you know
20:11 eliasp TheoSLC: there's a Salt state: http://docs.saltstack.com/en/latest/ref/states/all/salt.states.reg.html
20:11 UtahDave :)
20:11 eliasp TheoSLC: no need to use the execution module
20:12 nullptr TheoSLC: no, i thought you were asking how to do it without using the state
20:12 nullptr reg.present in that case
20:12 TheoSLC eliasp: that state module doesn't include a option for data value
20:12 uimari joined #salt
20:13 StDiluted I’ll brb
20:13 nullptr TheoSLC: value is the data value, 'name' is the key
20:13 TheoSLC nullptr: I see.  I though the name was the key path.
20:16 bihl joined #salt
20:16 TheoSLC nullptr: in other words . I though it followed the same inputs as "reg add"
20:16 kbyrne joined #salt
20:16 cleme1mp joined #salt
20:17 drawks joined #salt
20:17 Kenzor joined #salt
20:18 hauslein joined #salt
20:19 rojem joined #salt
20:21 rap424 joined #salt
20:29 fiero joined #salt
20:29 P0bailey joined #salt
20:30 P0bailey joined #salt
20:31 schlueter joined #salt
20:33 rjc joined #salt
20:35 tatsak joined #salt
20:37 twellspring joined #salt
20:41 schlueter1 joined #salt
20:41 bastion2202 joined #salt
20:42 bastion2202 good afternoon. Is it possible to use cmd.run inside mine_functions
20:43 bastion2202 I saw an example in the doc here http://docs.saltstack.com/en/latest/topics/mine/
20:43 robawt bastion2202: can you provide an example in a pastebin?
20:44 bastion2202 @robawt sure https://paste.ee/p/PBQdn
20:45 bastion2202 I can use mine.get for the other functions
20:47 twellspring joined #salt
20:48 oherron joined #salt
20:54 heiple joined #salt
20:56 ajmccluskey joined #salt
20:57 penguin_dan joined #salt
20:59 tamblyn joined #salt
21:00 racooper bastion2202,  this isn't twitter...irc doesn't need @references for users.
21:01 Ch3LL_ joined #salt
21:01 Ch3LL_ so is there anything I could do if someone accidnetly ran 'salt-key -D'
21:02 Ch3LL_ and we don't have a backup
21:02 bastion2202 racooper sorry using hipchat too much I guess
21:03 StDiluted UtahDave: I’m back, no hurry though.
21:03 alexr_ joined #salt
21:07 aparsons joined #salt
21:08 blann joined #salt
21:09 spookah joined #salt
21:09 spookah joined #salt
21:10 ajmccluskey joined #salt
21:11 Mso150_f joined #salt
21:13 sheller joined #salt
21:13 eliasp Ch3LL_: just wait for the minions to report back in again and approve them one after another
21:14 iggy Ch3LL_: ^ or set open_mode temporarily
21:14 eliasp Ch3LL_: 'salt-key -L' should show you minions waiting for the keys to be accepted again
21:14 Ch3LL_ wouldn't we have to restart the minion service on each box
21:14 murrdoc nope
21:14 iggy (assuming that the rest of your system wouldn't be compromised by that)
21:14 eliasp Ch3LL_: I don't think so
21:14 Ch3LL_ some of them have re appeared byut not all
21:14 iggy they will eventually
21:15 iggy the default mine update time is 1hr iirc
21:15 Ch3LL_ hmmmm k.. i'm guessing that setting is in /etc/salt/master
21:15 iggy it's in the minion config iirc
21:15 ipmb joined #salt
21:16 murrdoc u can always run mine.update
21:16 murrdoc to force an update
21:16 iggy so if you haven't heard from everything in an hour, you might have to do something to manually fix the rest
21:16 iggy murrdoc: that's not going to do anything to the minions that haven't checked in yet
21:16 murrdoc yes
21:16 murrdoc iggy is right
21:16 azevedo joined #salt
21:17 ipmb hi all, I could use an extra set of eyeballs to debug an SLS compilation error :)
21:17 iggy I was merely mentioning the mine thing because it should definitely re-open the connection from the minion to the master
21:17 ipmb traceback: https://dpaste.de/aJ2j | sls: https://dpaste.de/M9GC
21:18 ipmb I'm trying to include that SLS from another SLS file
21:18 jimklo joined #salt
21:18 ipmb oh geez... I see it :P
21:18 ipmb using  {{ inside `set`
21:18 Ch3LL_ thanks guys i really appreciate it :)
21:19 StDiluted Anyone have a clue on this: https://gist.github.com/dginther/1ac0a2d5da09c3ab60a8
21:20 shuff joined #salt
21:21 bastion2202 joined #salt
21:26 iggy ipmb: did that fix it?
21:26 ipmb not completely, no
21:26 iggy because I've had people tell me that's perfectly legal
21:26 ipmb I found another place I was doing that
21:26 ipmb oh... interesting
21:27 pdayton joined #salt
21:28 iggy paste the "including" file
21:28 dubuisson joined #salt
21:28 jeremyr left #salt
21:28 aqua^mac joined #salt
21:29 Pixionus joined #salt
21:30 ipmb iggy: here's the relevant part https://dpaste.de/dVpk
21:30 Pixionus I'm having a bit of trouble installing salt on wheezy
21:30 ipmb web.sls include works fine
21:30 KyleG1 joined #salt
21:31 murrdoc interesting
21:31 Pixionus tells me that it depends on python-zmq but that it is not going to be installed
21:31 cannon joined #salt
21:31 ipmb iggy: it seems like it chokes on the first state definition in the include that starts with a '/'
21:32 Pixionus I thought Salt is built on wheezy and figured the apt-get would take care of everything
21:32 StDiluted UtahDave: Figured out my issue.
21:32 hal58th1 Can you do an apt-get -f install
21:33 iggy ipmb: include with context maybe?
21:33 kiorky joined #salt
21:33 ipmb no, actually, it's just the first state definition in the include
21:33 ipmb will try context
21:33 UtahDave Pixionus, yeah it should install all the dependencies for you. Did you add our debian repo?
21:33 UtahDave StDiluted: what was it?
21:33 Pixionus yeah I did
21:33 Pixionus and the key
21:33 StDiluted UtahDave: ssh_gateway_port is supposed to default to 22, but it doesn’t. It defaults to nil and then the SSH fails
21:34 hal58th1 Pixionus try an apt-get -f install and see if you have anything broken
21:34 pelter joined #salt
21:34 pjota Pixionus, what's the problem?
21:35 UtahDave StDiluted: interesting.  would you mind opening an issue on that?
21:35 Pixionus It's running on an arm based embedded device
21:35 StDiluted UtahDave: from the debug log: [DEBUG   ] Attempting connection to host 10.0.1.107 on port 22 via gateway x.x.x.x on port None
21:35 KyleG joined #salt
21:35 KyleG joined #salt
21:35 Pixionus I was left with an install procedure from my predecessor that manually wget's python zmq 13.1 and msgpack 0.3.0
21:36 iggy Pixionus: are you installing from the apt repo? backports?
21:36 Pixionus My concern is keeping up with important updates.
21:36 Pixionus from ftp.us.debian
21:36 StDiluted UtahDave: still investigating, but I will open a ticket once I figure out what actually makes it work to the end
21:37 UtahDave Pixionus: try adding debian.saltstack.com repo
21:37 lasecki joined #salt
21:37 Pixionus already did
21:37 Pixionus and wheezy-saltstack main
21:38 UtahDave maybe we haven't packaged up zmq and msgpack for arm
21:38 Pixionus deb http://debian.saltstack.com/debian wheezy-saltstack main
21:38 Pixionus That's what it looks like.
21:38 UtahDave Pixionus: could you open an issue on this on the Salt github issue tracker? I'll point our debian packager to the issue
21:38 Pixionus ok.  thanks
21:38 murrdoc https://launchpad.net/~chris-lea/+archive/ubuntu/zeromq  ?
21:39 murrdoc or not
21:39 StDiluted UtahDave: it looks like the command that it’s trying to execute through the gateway is failing to run because of a bad argument to nc
21:40 StDiluted UtahDave: 'nc -z -w5 -q0 10.0.1.248 22' nc: invalid option -- 'q'
21:42 Pixionus Thanks all.   We do have a work around but for a couple of reasons we would like to avoid using it in future server builds.  Didn't mean to ignore suggestions while I was checking things and responding to UD
21:42 ipmb iggy: I think it was the indent in the macro definition
21:43 ipmb hmm, maybe no
21:43 salassi joined #salt
21:43 rome_390 joined #salt
21:44 kiorky joined #salt
21:45 beneggett joined #salt
21:46 thawes joined #salt
21:46 StDiluted I can’t find a version of netcat that takes a -q argument either
21:47 twellspring joined #salt
21:49 hasues joined #salt
21:49 hasues left #salt
21:50 gothix joined #salt
21:50 FRANK_T joined #salt
21:51 thawes joined #salt
21:52 thawes joined #salt
21:53 bastion2202 joined #salt
21:54 cobakobodob joined #salt
21:54 johtso joined #salt
21:55 bastion2202 joined #salt
21:56 StDiluted did github just doe?
21:56 StDiluted die?
21:57 StDiluted nm, maybe my connection.
21:57 otter768 joined #salt
21:57 thawes joined #salt
21:57 StDiluted UtahDave: I filed an issue. Any idea where that netcat command is coming from so I could change it and test?
21:58 UtahDave StDiluted: I have no idea.  Does that command work if you remove the q option?
21:58 thawes joined #salt
21:58 StDiluted it works but gives no output
21:58 StDiluted wqhich i assume is right because it’s just trying to open a pipe
22:00 iggy can you call orchestrate from the scheduler (it's a salt.runner.* function)? Or can it only be salt.module.* functions?
22:01 thawes joined #salt
22:02 eykd joined #salt
22:02 shaggy_surfer joined #salt
22:04 badon joined #salt
22:04 eykd Is there a way to “dry run” either a state.highstate or state.sls run, that is load and compile, but don’t execute?
22:04 vbabiy joined #salt
22:05 robawt eykd: --test=True is supposed to do that, but has longrunning issues like if your state creates a user, and a file depends on the user, the state will show failure because the user doesn't exist, even though it's going to be created
22:05 eykd robawn: Oh fun. :)
22:06 robawt there's some cool methods like kitche-ci's salt plugin, but i haven't worked with it with Salt, just chef
22:06 eykd I’m mostly looking for a way to check that I’ve got my includes in order and there won’t be any compilation errors, w/o executing everything.
22:06 UtahDave eykd: start with  adding   test=True
22:06 UtahDave salt \* state.highstate test=True
22:06 robawt ditto what UtahDave said
22:07 eykd Does that work w/ salt-call as well? I’m running masterless on a vagrant VM atm.
22:07 UtahDave yep
22:07 schlueter joined #salt
22:07 eykd Cool, thanks.
22:08 conan_the_destro joined #salt
22:08 Singularo joined #salt
22:08 sgregor__ joined #salt
22:08 eykd OK, that takes ~40 seconds instead of 5 minutes. A real improvement. :)
22:10 zarcos joined #salt
22:11 zarcos Does anyone already have a good way to use a minion to make sure that their salt-master is up and running? Our salt master is critical infrastructure (of course) and I want to make sure I am notified if it stops working. It seems to make sense to use a minion to do this.
22:12 twiedenbein /buffer 27
22:13 robawt twiedenbein: +1 for being a weechat user ;)
22:13 twiedenbein :D
22:17 bastion2202 UtahDave is it possible to use cmd.run inside mine_functions in 2014.7 ?
22:18 UtahDave Hm. I'm not 100% sure, but I think you can use any execution module in the mine_functions
22:20 KyleG joined #salt
22:20 KyleG joined #salt
22:20 bastion2202 UtahDave I tried with this : https://paste.ee/p/PBQdn no luck to get it using salt-call * mine.get cmd.run
22:20 tomh- joined #salt
22:20 TheoSLC Is there a state module with a .wait that will stop/end the state from continuing to run?
22:22 jimklo joined #salt
22:24 aparsons joined #salt
22:25 oldmantaiter joined #salt
22:28 stevednd bastion2202: did you either wait long enough for the mine to be updated, or did you restart the minions in question?
22:29 bastion2202 stevednd I ran mine.update on all servers
22:30 stevednd ssh in and start one of your minions with -l debug  and see what comes up when it tries to start
22:30 stevednd it should give some indication it's populating the mine values and if something is failing
22:30 jimklo joined #salt
22:30 stevednd I just did it with cmd.run: ['uname -a']
22:30 stevednd also, you might want to take advantage of naming your mine function calls. It became available in 2014.7
22:31 otter768 joined #salt
22:32 StDiluted man, using ssh_gateway in salt-cloud is BROKEN
22:33 bastion2202 stevednd tx. so it worked for in inside the mine ?
22:34 stevednd special_name: {mine_function: cmd.run, cmd: 'echo "hello"'}
22:34 stevednd I typically force a minion restart when I update mine functions
22:35 stevednd in the past it just seemed like mine.update wouldn't always work
22:36 bastion2202 stevednd restart of the minion did the trick. not good :(
22:37 bastion2202 I do not want to restart the salt-minion every time. Especially if we have mine.update and mine_interval
22:37 bastion2202 stevednd but tx a lot
22:38 stevednd np. I never spent the time looking into it because for me the restart wasn't a problem
22:38 stevednd it would be nice if mine.update worked reliably though
22:39 hal58th joined #salt
22:40 stevednd maybe basepi or whiteinge can chime in on this if they're around
22:40 * basepi hides
22:40 basepi Sorry, what?
22:40 stevednd mine.update doesn't seem to reliably update mine contents
22:40 basepi That's strange. Since a specific version or ever?
22:41 stevednd in my usage I always restart the minion when I update the mine functions
22:41 stevednd since ever for me
22:41 bastion2202 basepi to get cmd.run functions we have to restated the salt-minion and not just do a mine.update
22:41 stevednd bastion2202 just experienced the same thing
22:41 basepi Where are the mine functions specified?
22:41 stevednd for me /etc/salt/minion.d/mine_functions.conf
22:41 bastion2202 basepi stevednd  it is the 1st time that a mine_function needs a restart for me
22:41 spookah joined #salt
22:42 bastion2202 basepi and for me I am using pillar to delpoy mine_functions
22:42 bastion2202 basepi my mine pilllar sls file : https://paste.ee/p/PBQdn
22:42 UtahDave left #salt
22:43 lumtnman joined #salt
22:44 bastion2202 basepi I tried today with the cmd.run and it is the 1st time that I have to restart the service to be able to get the data from the mine using mine.get
22:45 stevednd my issues with it were all the way back with early 2014.1. I couldn't tell you the exact circumstances, just that restarting the minion was the only consistently 100% reliable way to get mine updated
22:46 stevednd I just had to call it good enough and move on
22:46 kermit joined #salt
22:52 istram joined #salt
22:52 basepi OK, just wanted to make sure it wasn't minion config defined
22:52 basepi Is there an open issue?
22:53 nickdew joined #salt
22:53 bastion2202 joined #salt
22:53 stevednd I'm not sure. I typically assume I'm just doing something dumb unless I'm 100% sure it's a bug
22:54 stevednd and it was a while ago, so I haven't looked
22:54 StDiluted sigh, this is really frustrating me like crazy
22:54 stevednd does it should like a bug, or is it possible something is being done wrong?
22:56 stevednd https://github.com/saltstack/salt/issues/11501
22:57 stevednd that's maybe related
22:57 stevednd https://github.com/saltstack/salt/issues/11501#issuecomment-51362526
22:57 stevednd from that comment on specifically
22:57 StDiluted it shouldnt be this hard to deploy via a bastion/gateway host
22:57 stevednd I never used pillar based mine functions, so whatever I have going on is different
22:58 bastion2202 stevednd wow tx for the bug url
22:58 sjlu joined #salt
23:01 sgregory_ joined #salt
23:02 sgregory_ joined #salt
23:03 basepi Ya, pillar should definitely not require a restart I think
23:03 basepi For mine
23:04 Mso150_f joined #salt
23:05 bastion2202 basepi  I am using the mine for several weeks and it is the 1st time that I have to restart the minion to get the function to run.
23:11 iggy fwiw, I've also noticed mine.update not working
23:12 iggy I usually just find somehting else to do and wait for our refresh_interval ;)
23:17 aqua^mac joined #salt
23:17 basepi So if you wait long enough, it syncs properly? Just mine.update?
23:17 TheoSLC joined #salt
23:17 basepi Would one of you mind making an issue? This is something we should look into.
23:17 hal58th1 joined #salt
23:19 tracphil joined #salt
23:23 aparsons joined #salt
23:24 ckao joined #salt
23:24 alexr_ joined #salt
23:29 iggy mine.update doesn't work, waiting does
23:29 iggy I just started following that other issue
23:30 iggy although now that I look at it, I guess it is slightly different
23:34 agend joined #salt
23:42 _`_ joined #salt
23:42 _`_ left #salt
23:46 cads joined #salt
23:47 shaggy_surfer joined #salt
23:50 cleme1mp joined #salt
23:59 StDiluted YES
23:59 StDiluted fixed the gateway code
23:59 StDiluted and made it work

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