Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-07-13

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

All times shown according to UTC.

Time Nick Message
00:03 flowstate joined #salt
00:28 DEger joined #salt
00:36 mohae joined #salt
00:38 infrmnt1 joined #salt
00:51 squishypebble1 joined #salt
00:59 justanotheruser joined #salt
01:00 _JZ_ joined #salt
01:01 Nahual joined #salt
01:02 flowstate joined #salt
01:04 kevinquinnyo1 joined #salt
01:04 iceyao joined #salt
01:22 racooper joined #salt
01:24 catpigger joined #salt
01:28 ageorgop joined #salt
01:31 _JZ_ joined #salt
01:32 MTecknology Is it typical for projects to create a branch named v<version> when they release a new version and then run minor updates from that and work the next release on head?
01:33 hemebond I've seen branches created for release versions.
01:33 hemebond I think tags are better.
01:35 ageorgop joined #salt
01:40 etangle joined #salt
01:46 etangle How can I call a salt state from minion
01:46 hemebond etangle: salt-call
01:46 hemebond I think.
01:46 etangle I provision a new server, and want salt-master to setup everything i.e. apache, mysql, php etc...
01:47 hemebond Then you want reactors and/or orchestration.
01:47 hemebond Or just manually run highstate from the master.
01:48 etangle I think reactors may work here... which may call api from salt-master to start the process of setting up this server, right ?
01:49 etangle I mean salt-minion will call a process on salt-master to start setting up server on this new minion
01:49 hemebond Reactors listen for events from minions (like, "I've started" or "I've just joined") and run states, states which can call highstate for you.
01:49 hemebond There is no calling, no, just events.
01:49 etangle Can u refer me to any such example
01:49 hemebond https://docs.saltstack.com/en/latest/topics/reactor/
01:59 DEger joined #salt
02:00 colegatron_origi joined #salt
02:02 flowstate joined #salt
02:06 rem5 joined #salt
02:06 evle joined #salt
02:11 patarr joined #salt
02:14 kevinquinnyo1 joined #salt
02:15 edrocks joined #salt
02:15 Nahual left #salt
02:36 iggy https://docs.saltstack.com/en/latest/ref/states/startup.html
02:46 hemebond etangle: iggy to the rescue ^
02:47 DEger_ joined #salt
02:48 DEger joined #salt
02:57 JPT joined #salt
02:59 DEger_ joined #salt
03:04 flowstate joined #salt
03:05 brent_ joined #salt
03:09 sagerdearia joined #salt
03:13 DEger joined #salt
03:14 DEger_ joined #salt
03:15 DEger joined #salt
03:17 bantone joined #salt
03:17 treaki__ joined #salt
03:32 onlyanegg joined #salt
03:32 DEger joined #salt
03:35 patarr joined #salt
03:43 onlyanegg joined #salt
03:47 hasues joined #salt
03:55 rem5 joined #salt
04:00 ajw0100 joined #salt
04:01 fxhp joined #salt
04:01 flowstate joined #salt
04:07 hasues left #salt
04:09 jab416171 joined #salt
04:12 jsatfs joined #salt
04:13 DEger joined #salt
04:18 XenophonF anyone else running into package conflicts involving zeromq on rhel/centos?
04:19 XenophonF this is driving me crazy
04:19 XenophonF https://gist.github.com/xenophonf/054d6fb957e319195fc61c9a0aba8cd1
04:23 subsignal joined #salt
04:25 jhauser joined #salt
04:33 XenophonF did an updated and now i'm getting the error S3 Error! Do you have any files in your S3 bucket?
04:33 XenophonF WTF?
04:37 jsatfs left #salt
04:39 cyborg-one joined #salt
04:39 hasues joined #salt
04:40 hasues left #salt
04:43 XenophonF so the S3 one is a bug in 2016.3.1 :(
04:43 XenophonF https://github.com/saltstack/salt/issues/34074
04:43 saltstackbot [#34074][MERGED] Unable to use S3 file backend with 2016.3.1 on Ubuntu 14.04 or 16.04 | Description of Issue/Question...
04:46 ruxu joined #salt
04:46 rdas joined #salt
04:48 XenophonF i am beginning to regret switching to saltstack's yum repo :(
04:49 hemebond Hmm. Generally they are more up to date.
04:49 hemebond But I don't know what the YUM repos are like.
04:49 XenophonF yeah but 2016.3.1 is broken for me
04:49 hemebond The Debian repos are okay. But (I think) I've switched to PIP.
04:49 XenophonF i need to downgrade to 2016.3.0 or manually patch my installs
04:50 XenophonF plus there are package conflicts with epel :(
04:50 XenophonF it sucks
04:50 XenophonF i'm going to downgrade my master and hope for the best
05:02 flowstate joined #salt
05:08 edrocks joined #salt
05:16 lionel joined #salt
05:27 cliluw joined #salt
05:32 hasues joined #salt
05:32 hasues left #salt
05:34 DEger joined #salt
05:36 irctc425 joined #salt
05:36 irctc425 Hey guys. any salt experts here?
05:36 irctc425 need some help
05:36 hemebond Maybe, but I'm here too.
05:37 hemebond Ask your question or state your problem and someone will try and help.
05:37 hemebond If anyone knows.
05:41 irctc425 I wanted to know if I use salt environment with 'file_roots:' and create a seperate environment specifically for salt-ssh only. Then if I create a custom module under '/srv/salt/_module' would I have to do something special so that when I try to run this module it recognizes the environment
05:41 hemebond I would say it depends how you setup your file_roots.
05:43 irctc425 its something like this.
05:43 irctc425 file_roots:   base:     - /srv/salt     - /srv/formulas   webserver:     - /srv/web   saltssh:     - /srv/saltssh
05:43 irctc425 how do I
05:43 hemebond My guess is the custom module would only be available to base
05:43 irctc425 make it pretty ?
05:43 irctc425 yes
05:44 irctc425 I tried putting it under /srv/saltssh
05:44 irctc425 but when i do a sync_all nothing changes
05:45 irctc425 how should I go about it ?
05:46 hemebond Hmm. Lemme Google real quick like.
05:47 irctc425 I tried.
05:47 hemebond https://github.com/saltstack/salt/issues/8964
05:47 saltstackbot [#8964][MERGED] salt-ssh does not work with custom modules | It seems that custom modules do not work with salt-ssh and saltutil.sync_modules does nothing....
05:48 hemebond Are you able to test salt-ssh with base environment?
05:48 hemebond Have you started the master just in case?
05:48 hemebond Cleared the salt-ssh shim on the minion?
05:48 keimlink joined #salt
05:52 irctc425 salt-ssh is working fine as a seperate environment too. I was able to install a few packages on the target machine. I did start the master. let me do the shim thing.
05:52 hemebond Sure, but what about the modules?
05:53 hemebond Do they work if you just use salt-ssh and the base environment?
05:54 irctc425 let me try
05:54 POJO joined #salt
05:55 irctc425 Yes its working
05:56 irctc425 I created a custom module that prints the comma seperated list of users on the minion. It works with salt-ssh
05:56 hemebond So you've got /srv/saltssh/_modules/ and restarted the master
05:56 hemebond Then run a sync_all
05:56 irctc425 yes
05:56 hemebond But salt-ssh still can't use those custom modules.
05:56 irctc425 only one specific moduke, that uses 'saltenv'
05:57 hemebond Oh. Other custom modules work?
05:57 irctc425 other simple custom module is working fine.
05:57 irctc425 yes. it works
05:57 hemebond Oh okay.
05:58 hemebond Any errors in the logs?
05:58 hemebond Run it in debug mode?
05:58 irctc425 The response I get is this;
05:58 irctc425 ssh-minion-02:     - No matching salt environment for environment 'saltssh' found     - No matching sls found for 'install_minion' in env 'saltssh'
06:00 hemebond uh
06:00 hemebond But you have /var/saltssh/install_minion.sls?
06:01 irctc425 yes
06:01 irctc425 I do
06:01 irctc425 its actually /srv/saltssh/install_minion
06:02 irctc425 in it init.sls
06:02 subsignal joined #salt
06:05 colttt joined #salt
06:05 DEger joined #salt
06:06 hemebond salt-ssh minion saltutil.sync_all saltenv=saltssh refresh=True
06:06 hemebond What does that do? Error?
06:07 hemebond Oh, True is the default anyway.
06:07 ruxu joined #salt
06:07 ruxu joined #salt
06:10 irctc425 this `salt-ssh 'ssh*' saltutil.sync_all saltenv=saltssh` dosent do anything. no changes
06:10 mephx joined #salt
06:10 hemebond No message in the logs either?
06:10 hemebond All hunky dory?
06:13 irctc425 root@master:/srv/salt# salt-ssh 'ssh*' install_minion.new_minion_ssh -l debug [DEBUG   ] Reading configuration from /etc/salt/master [DEBUG   ] Using cached minion ID from /etc/salt/minion_id: master [DEBUG   ] Configuration file path: /etc/salt/master [DEBUG   ] LazyLoaded flat.targets [DEBUG   ] LazyLoaded jinja.render [DEBUG   ] LazyLoaded yaml.render [DEBUG   ] Jinja search path: ['/var/cache/salt/master/files/base'] [DEBUG   ] Re
06:13 * iggy seriously considers sending a PR saying environments should be used with extreme caution
06:13 irctc425 is there any way to share logs as a file with you here ? this dosent look pretty.
06:13 hemebond Some sort of pastebin
06:13 hemebond http://paste.debian.net/
06:14 hemebond I haven't had a problem with environments really.
06:14 hemebond But I use minions and I'm really careful to isolate them.
06:15 irctc425 alright. here is the log
06:15 irctc425 http://pastebin.com/5fCWxmB4
06:17 hemebond irctc425: Aren't you supposed to specify the environment with your command?
06:17 hemebond salt-ssh 'ssh*' install_minion.new_minion_ssh saltenv=saltssh -l debug
06:18 irctc425 I have done that within the module.
06:18 irctc425 let me show you the module code.
06:18 hemebond But doesn't salt-ssh need to know which environment to use?
06:18 hemebond Specifying saltenv on the CLI passes it to salt-ssh, no?
06:19 irctc425 paste.debian.net/780811
06:19 irctc425 http://paste.debian.net/780811
06:19 irctc425 Its mentioned in the code.
06:20 irctc425 the environment
06:21 hemebond What about using minion_opts in the roster>
06:21 hemebond ?
06:23 irctc425 let me try that
06:23 hemebond Have you also tried specifying saltenv on the command line?
06:24 hemebond I mean, it needs to know about the environment to find the module, no?
06:25 irctc425 while running from the command line it works fine
06:25 irctc425 I mean using the state.apply install_minion
06:26 irctc425 at that time if I specify the saltenv=saltssh it runs just fine
06:26 kshlm joined #salt
06:29 irctc425 When i specify saltenv=saltssh while doing this `salt-ssh 'ssh*' install_minion.new_minion_ssh saltenv=saltssh -l debug`
06:29 irctc425 it says;
06:29 irctc425 ssh-minion-02:     ----------     retcode:         1     stderr:         The following keyword arguments are not valid: saltenv=saltssh     stdout:
06:32 hemebond Yeah, Googling seems to suggest you can't specify a saltenv with salt-ssh, but minion_opts in the roster works?
06:33 hemebond I'm surprised your module doesn't work when it's in base.
06:33 irctc425 what should I put under minion_opts ?
06:33 hemebond You can put "environment" in there to specify a specific environment for targeting.
06:33 hemebond But it'll apply every time.
06:33 kawa2014 joined #salt
06:37 irctc425 roster also didnt help.
06:37 irctc425 tell me something
06:38 irctc425 when I do a saltutil.sync_all I get output about all the minions that are already registered with the master
06:38 irctc425 but since this machine `ss-minion-02` is not already registered it does not show up
06:39 irctc425 does this mean when I do a sync_all, all my custom modules from master goes to salt minions ?
06:39 hemebond Yes.
06:40 hemebond Whichever minions you target for the sync.
06:41 irctc425 this means my 'ssh-minion-02' does not have the custom module that I am actually trying to run.
06:41 irctc425 first I should make sure the module shows up while I do sync_all
06:43 irctc425 if I create a new `/srv/saltssh/_module` folder to keep my custom modules, would I have to make some changes in the configuration file ?
06:43 hemebond I don't believe so.
06:43 hemebond I'm not that familiar with salt-ssh; I always run minions.
06:43 hemebond So I'm not entirely sure how it pulls over modules.
06:43 hemebond I would have assumed on every run.
06:44 hemebond Which is why I suggested clearing the shim off the target.
06:44 irctc425 so what do you actually do to setup new minions ?
06:44 irctc425 what I am trying to do is basically this http://stackoverflow.com/questions/38326979/automating-salt-minion-installation
06:52 DEger joined #salt
06:52 hemebond Oh. I have the Debian seed file install the minion for me, then I just accept the key.
06:52 hemebond Unless I'm setting something up in AWS, then I use salt-cloud to do it.
06:53 babilen ^ exactly
06:53 hemebond The seed just uses salt-bootstrap.
06:53 hemebond As does salt-cloud.
06:58 irctc425 Alright. Thanks.
06:59 irctc425 But do you think what I have asked in the stackoverflow question would be a good way to automate the minion installation process ?
07:01 flowstate joined #salt
07:03 manji joined #salt
07:06 fracklen joined #salt
07:06 ronnix joined #salt
07:07 hemebond Hmm. Why not just put the state into base without putting it into a top file.
07:07 fracklen joined #salt
07:07 hemebond Create your key file and then push it to the minion.
07:07 hemebond *minion key file
07:08 ninjada_ joined #salt
07:08 KingJ joined #salt
07:09 irctc425 without using any environment ?
07:09 hemebond Yeah
07:09 irctc425 alright. Will try that.
07:10 irctc425 Thank you very much.
07:10 irctc425 @hemebond Thank you.
07:10 hemebond When I used Vagrant I would push the minion key to the VM.
07:10 hemebond So it was already accepted and ready.
07:11 edrocks joined #salt
07:12 irctc425 I am just testing with vagrant. Ultimately it will be AWS and bare metal boxes.
07:12 rdas joined #salt
07:13 hemebond Right. I either use PXE booting with seeding or salt-cloud.
07:13 hemebond I use PXE boot because I don't have full access to that platform.
07:14 hemebond And it means I can use the same states locally for testing and in other environments (as long as I stick with Debian :-)
07:14 keys joined #salt
07:14 felskrone joined #salt
07:19 Rumbles joined #salt
07:20 irctc425 left #salt
07:21 nagri joined #salt
07:23 tuxick salt status.version shows me "Redhat 4.x.x" for Centos 6 and 7, why not the centos version?
07:23 DEger joined #salt
07:23 fredvd joined #salt
07:24 Electron^- joined #salt
07:27 babilen tuxick: What does /etc/os-release contain?
07:27 iceyao joined #salt
07:27 hemebond Yeah, it's some sort of kernel line.
07:28 Qlawy When I update sls files in one of file_roots do I need to restart master?
07:28 hemebond Qlawy: no
07:29 Qlawy why this ... thing, does not see my changes in top.sls :/
07:29 babilen Where do you keep your top.sls?
07:30 Qlawy I have added /home/ubuntu/states as file_roots and it is there: /home/ubuntu/states/top.sls
07:30 Qlawy maybe there is other problem
07:30 hemebond Ah
07:30 hemebond If you've added a file_root, then yes, you have to restart your master.
07:31 Qlawy I created such file: http://wklej.org/hash/0b5c91c0310/
07:31 Qlawy no, its "old" file_roots :)
07:31 TyrfingMjolnir joined #salt
07:31 Qlawy tried to do state.apply aaand... Comment: No Top file or external nodes data matches found.
07:31 Qlawy :(
07:31 hemebond Can you show us your file_roots?
07:31 tuxick babilen: salt-run manage.status
07:31 tuxick damn
07:32 tuxick how did that get in buffer
07:32 Qlawy hemebond: http://wklej.org/hash/ddc8541474b/
07:32 Markus23 joined #salt
07:32 tuxick anyway, os-release contains the information i'm expecting to see
07:32 Qlawy in /srv/salt I have winrepo only
07:32 tuxick NAME="CentOS Linux"
07:32 tuxick VERSION="7 (Core)"
07:32 tuxick etc
07:32 hemebond Qlawy: And you've checked the grain?
07:33 hemebond From the minion itself?
07:33 hemebond Wait...
07:33 hemebond Isn't pkg.refresh_db an execution module?
07:33 Qlawy no idea... im experimenting ;)
07:33 hemebond Oh
07:33 Qlawy and yes, grain fits
07:34 hemebond There is a difference between execution modules and state modules.
07:34 hemebond top.sls is for applying states.
07:34 Qlawy I can ping this minion targeting by grain
07:34 hemebond So instead of pkg.refresh_db you'd have mystate
07:34 Qlawy hmm, still a lot to learn
07:34 hemebond and a file /home/ubuntu/states/mystate.sls
07:35 hemebond In which you put the states you want to apply.
07:35 Qlawy all I need (in this case) is to refresh packages db (windows)
07:35 hemebond Then you just need to call that on the command line.
07:36 hemebond salt 'targeting' pkg.refresh_db
07:36 keimlink joined #salt
07:36 hemebond In your case I think it'll be something like:
07:36 hemebond salt -G 'os_family:windows' pkg.refresh_db
07:37 Qlawy naah, I would like to do it with reactor
07:38 hemebond Then you'd want the state module that runs execution modules.
07:38 Qlawy ok, will try :)
07:39 hemebond https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html#module-salt.states.module
07:41 ninjada joined #salt
07:42 Qlawy great! works perfect! :D thank you
07:46 rdas joined #salt
07:53 cetex left #salt
07:56 tuxick turns out i need grains.item instead
07:57 tuxick but salt --state-output=terse not working as expected
07:57 tuxick "If terse is used, then the output is greatly simplified and shown in only one line"
07:57 tuxick NOT
07:58 GreatSnoopy joined #salt
07:58 DEger joined #salt
08:00 mackripeum joined #salt
08:01 ninjada joined #salt
08:01 flowstate joined #salt
08:03 mackripeum joined #salt
08:03 hemebond That's what it does for me.
08:03 hemebond What is the setting that only shows changes?
08:04 mackripeum joined #salt
08:05 Qlawy Hmm, one more question
08:05 Qlawy I have gitfs and file_roots
08:06 Qlawy I have top.sls in gitfs and different top.sls in file_roots
08:06 Qlawy as far as I understand it they should be merged
08:06 Qlawy but they dont... one from gitfs is visible on minion
08:06 hemebond You can put a top.sls into gitfs? I thought gitfs was used for formulas and states.
08:07 hemebond The master branch in gitfs maps to base environment. So they're maybe overriding. Dunno.
08:07 armyriad joined #salt
08:07 Qlawy hmm, ok ;)
08:08 hemebond top files from different environments will be merged.
08:08 hemebond I have an environment for each deployment and I explicitly limit each one to prevent them from applying to environments they're not supposed to.
08:08 deniszh joined #salt
08:09 hemebond *restrict each one
08:09 hemebond Using Jinja and explicit targeting.
08:15 DEger joined #salt
08:15 Rumbles joined #salt
08:15 smcquay joined #salt
08:22 lero joined #salt
08:23 Markus23 Dear FOSS developers! Please fully fill out our survey at http://elektra.limequery.org/625192 and a donation will go to FOSS projects. The survey is carefully crafted and helps research! Thank you! If you have any questions you can ask me.
08:24 babilen ... spamming all channels, eh?
08:25 s_kunk joined #salt
08:25 ninjada joined #salt
08:27 auzty joined #salt
08:27 lero joined #salt
08:29 armyriad joined #salt
08:32 smcquay joined #salt
08:33 Rumbles joined #salt
08:39 goudale joined #salt
08:42 patarr joined #salt
08:43 jhauser joined #salt
08:43 DX2 joined #salt
08:45 fannet_ joined #salt
08:46 DEger joined #salt
08:48 goldielox joined #salt
08:49 u joined #salt
08:50 goldielox how do I run a module function with salt-call --local?
08:50 goldielox salt-call --local module.run ?
08:54 goldielox I've got it now.
09:02 flowstate joined #salt
09:04 felskrone joined #salt
09:04 debian112 left #salt
09:10 iceyao_ joined #salt
09:12 manji joined #salt
09:13 edrocks joined #salt
09:14 N-Mi joined #salt
09:28 manji joined #salt
09:32 DEger joined #salt
09:37 garphy joined #salt
09:48 Armadillo joined #salt
09:50 stokbaek Hey, I am trying to get salt.git to clone into a folder that is empty. I am telling it to clone with the owner of the folder but I keep getting a permission denied on the clone. Anyone know why this is happening?
09:56 tuxick why doesn't grain.items list items in the order i pass them?
09:56 tuxick wouldn't that make more sense?
09:57 hemebond tuxick: Aren't they alphabetical?
09:57 hemebond Or is it an ordered dict...
09:57 tuxick no, not alphabetical
09:57 manji joined #salt
09:58 tuxick some predefined order i guess
09:58 tuxick anyway, since i found no way to get output in single line per minion i ended up playing with python
09:59 hemebond single line?
09:59 tuxick shame --out=json doesn't provide a proper json array/set
09:59 tuxick yes, salt '*' grains.item  os osrelease group
09:59 tuxick gives multiple lines per node
10:00 tuxick for reporting purposes it'd be quite handy to have that on single line
10:00 hemebond --out=text
10:00 hemebond ?
10:00 tuxick that doesn't exist, it's txt, but i was expecting --out=terse to do what i expect
10:01 onlyanegg joined #salt
10:01 hemebond Works for me.
10:01 hemebond salt '*.xen.local' grains.item os osrelease group --out=text
10:01 hemebond pry02.xen.local: {'osrelease': '8.5', 'group': '', 'os': 'Debian'}
10:01 tuxick right, --out=txt does the job
10:01 tuxick thanks :)
10:02 tuxick wasn't expecting that
10:02 flowstate joined #salt
10:04 DEger joined #salt
10:05 renaissancedev joined #salt
10:06 _mel_ joined #salt
10:15 renaissancedev joined #salt
10:18 shiriru joined #salt
10:33 kshlm joined #salt
10:34 manji joined #salt
10:39 mbrgm joined #salt
10:39 mbrgm hi! does someone have some experience with the .x509 modules?
10:42 manji joined #salt
10:43 tho joined #salt
10:46 flowstate joined #salt
10:49 manji joined #salt
10:50 DEger joined #salt
10:51 armyriad joined #salt
10:58 ivanjaros joined #salt
11:03 catpig joined #salt
11:05 irctc736 joined #salt
11:06 irctc736 Hey guys. Just want to ask is `salt-cloud`idempotent ?
11:06 hemebond irctc736: I believe it is.
11:06 hemebond Though it's mostly for creating the VMs.
11:07 irctc736 i tried running salt-cloud -m /etc/salt/map-file.
11:07 hemebond I think--and best to check the documentation obviously--that it will create any machine listed that doesn't exist.
11:07 irctc736 on the first go everything was fine
11:08 irctc736 but on the second go it tried to create everything again and re-register the keys. which got denied.
11:08 hemebond Hmm, that is odd.
11:08 irctc736 and minions stopped responding to pings too
11:08 hemebond What provider?
11:08 irctc736 the target machines were vagrant boxes.
11:08 armyriad joined #salt
11:11 hemebond I wonder if salt-cloud was unable to get the list of existing VMs.
11:11 irctc736 can I confirm it from master side ?
11:11 irctc736 with some command ?
11:12 hemebond You could use salt-cloud to list existing machines.
11:12 kshlm joined #salt
11:13 hemebond Is Vagrant actually a provider?
11:13 hemebond Doesn't Vagrant use something else to create the VMs?
11:14 irctc736 I am not sure about that.
11:14 irctc736 i was just testing.
11:14 hemebond What do your VMs run in?
11:14 hemebond VirtualBox?
11:14 irctc736 yes
11:14 hemebond Right okay.
11:14 hemebond I was going to test that myself but never got it working.
11:14 hemebond Or it was too much effort.
11:15 hemebond Having a read now to see if there's a way to query.
11:15 DEger joined #salt
11:16 edrocks joined #salt
11:16 hemebond salt-cloud -m /path/to/cloud.map -Q
11:16 hemebond "To display the status of all VMs specified in the map file:"
11:16 armyriad joined #salt
11:17 irctc736 It returns `Absent`
11:17 irctc736 my-saltify-config:     ----------     saltify:         ----------         minion-01:             Absent         minion-02:             Absent
11:17 hemebond Is that after you deleted and created them from scratch?
11:17 hemebond To a "working" state?
11:18 irctc736 No. Minions are actually Up and working and responding to ping
11:18 irctc736 but the Query status is Absent
11:18 hemebond Okay so salt-cloud can't query your provider.
11:18 hemebond In this case virtualbox.
11:18 irctc736 God Bless me :'(
11:18 hemebond It
11:18 hemebond It's something I never bothered to get working.
11:19 hemebond I think I was going to have to compile something so I gave up and used AWS instead.
11:20 irctc736 I was using  provider: saltify
11:21 irctc736 It worked on vagrant.
11:21 hemebond Oooh, cheers, I'll look into that.
11:21 irctc736 Thank you
11:23 irctc554_ joined #salt
11:24 hemebond Did you try out http://eon01.com/blog/using-saltstack-to-automate-vagrant-provisioning/ ?
11:24 hemebond Sorry, ignore that.
11:24 hemebond Nothing to do with salt-cloud.
11:26 hemebond Hmm, it looks like saltify is just for deploying Salt to existing VMs.
11:27 hemebond Not for creating and managing the VMs.
11:27 hemebond Good to know about though.
11:32 ikarpov joined #salt
11:36 armyriad joined #salt
11:39 ninjada joined #salt
11:41 hemebond irctc736: I can't get salt-cloud to use the virtualbox provider.
11:42 irctc736 No Issue mate.
11:42 hemebond I've installed the vboxapi SDK but it still can't use it.
11:42 hemebond This is where I gave up last time.
11:42 irctc736 you already helped a lot
11:43 hemebond Hope you can find something that works for you.
11:43 irctc736 one more question.
11:44 irctc736 when I use salt-cloud to install minions
11:44 irctc736 which salt-minion version does it install by default ?
11:44 irctc736 if I dont specify `-u`
11:44 hemebond By default I think it installs the default stable from the repo for your minion OS.
11:45 hemebond salt-cloud uses salt-bootstrap to install the minion.
11:45 hemebond Remember salt-cloud is for managing the cloud itself.
11:45 hemebond saltify just happens to use salt-cloud to install the minion on existing machines (VM or otherwise)
11:45 mbrgm left #salt
11:46 hemebond You can specify the minion version in the profile for the minion.
11:46 hemebond But the default is whatever salt-bootstrap does which I believe is like "apt-get install salt-minion"
11:46 hemebond (on a Debian minion)
11:47 DEger joined #salt
11:47 irctc736 alright. Thanks.
11:52 renaissancedev joined #salt
11:57 numkem joined #salt
11:58 kaushal_ joined #salt
12:03 flowstate joined #salt
12:03 DEger joined #salt
12:07 amcorreia joined #salt
12:08 garphy joined #salt
12:08 ninjada_ joined #salt
12:19 DammitJim joined #salt
12:26 manji joined #salt
12:32 rburkholder joined #salt
12:33 squishypebble joined #salt
12:35 DEger joined #salt
12:36 gh34 joined #salt
12:37 manji joined #salt
12:39 hemebond Argh, virtualbox provider never gets loaded or checked by salt.
12:40 hemebond That's why it doesn't work for me.
12:43 kbaikov joined #salt
12:50 rem5 joined #salt
12:50 edrocks joined #salt
12:50 impi joined #salt
12:51 MadHatter42 joined #salt
12:51 manji joined #salt
12:53 kbaikov joined #salt
12:55 subsignal joined #salt
12:55 lariv joined #salt
12:55 subsignal joined #salt
12:57 subsigna_ joined #salt
12:57 cyborg-one joined #salt
12:58 squishypebble1 joined #salt
12:59 ninjada joined #salt
13:01 flowstate joined #salt
13:01 irctc273 joined #salt
13:02 nagri Hi
13:02 nagri How do I specify salt minion version while spinning up salt-minion from salt-cloud ?
13:03 kshlm joined #salt
13:03 edrocks joined #salt
13:04 emaninpa joined #salt
13:05 hemebond Oh wow, I got virtualbox working with salt-cloud.
13:05 hemebond What a mission.
13:05 nagri really ? :D
13:05 hemebond nagri: In the profile.
13:06 Rumbles joined #salt
13:06 hemebond script_args: git v2016.3.0rc2
13:06 hemebond That tells bootstrap to install from the git tag v2016.3.0rc2
13:06 DEger joined #salt
13:06 nagri and script ?
13:07 hemebond See the salt-bootstrap docs for info.
13:07 hemebond script?
13:07 badon joined #salt
13:08 nagri http://paste.debian.net/780866
13:08 Armadillo Hi! Is it possible to let file watch follow symlinks? I want to reload nginx only if there are changes in sites.enabled, but also in the symlinked files
13:08 nagri would this work ? http://paste.debian.net/780866
13:08 hemebond nagri: I didn't specify the script.
13:09 nagri ok.
13:09 nagri let me try without script
13:09 hemebond nagri: run "salt-cloud -u" to pull down the latest bootstrap script.
13:10 nagri the whole setup is 2 days old.
13:10 nagri but I'll still do it.
13:10 hemebond nagri: Yeah but when I installed there was no bootstrap script at all.
13:10 hemebond Not sure if your version has that bug fixed or not.
13:11 hemebond Armadillo: watch watches a state, not a file, no?
13:11 nagri Thanks man.
13:11 fracklen Armadillo, do you use salt to make the symlinks and the files? You could just watch the original file?
13:11 racooper joined #salt
13:12 treaki__ joined #salt
13:12 Armadillo well currently I watch both directories, but changes in sites-available doesn't necessarily mean there are really changes, because some files don't need to be symlinked to sites-enabled
13:12 Armadillo just wanted to avoid unnecessary reloads of the webserver
13:12 hemebond Armadillo: watch works on states, not files or directories, as far as I understand it.
13:13 hemebond Just like other requisites.
13:13 Armadillo hemebond thanks, I think so too. But I wanted to be sure :)
13:14 kbaikov joined #salt
13:16 treaki__ joined #salt
13:17 SWA in salt-cloud it seems when deploy: True with a custom script it still pushes minion keys and accept these on the master.. where can i find the script in charge of that?
13:17 nagri hemebod: can you show me your cloud.providers conf file please ?
13:20 hemebond nagri: http://paste.debian.net/780870/
13:21 treaki__ joined #salt
13:21 hemebond SWA: Is that not what deploy: True is supposed to do?
13:22 snaggleb_ joined #salt
13:23 DEger joined #salt
13:23 SWA hemebond: i actually want to check what it's supposed to do
13:23 hemebond SWA: So you don't want salt-cloud to install and accept the keys?
13:24 SWA hemebond: I do, but it seems the custom script is executed before
13:24 hemebond My understanding was the script is for installing the minion.
13:24 SWA my template already has salt-minion installed, but i can't start it at boot or it gets a "noname" ID
13:25 treaki__ joined #salt
13:25 SWA so i want the custom script to enable the minion and start it at the very end of the deploymnet
13:25 rem5 joined #salt
13:26 hemebond Does your VM have a hostname configured?
13:26 SWA no, the template doesn't
13:27 SWA i expect salt-cloud to set up the hostname, and then salt-minion to guess the hostname upon first start
13:27 hemebond Well if you set the hostname, or explicitly set the minion_id, then starting the salt-minion service should be enough, no?
13:27 hemebond salt-cloud does not setup hostname as far as I know.
13:28 hemebond It manages a VM through the provider.
13:28 SWA it does
13:28 hemebond It will set a minion_id.
13:28 hemebond Through the bootstrap script I think.
13:28 SWA i don't use bootstrap and /etc/hosts is set up properly
13:28 hemebond Ah okay.
13:29 hemebond Then salt-minion should use that as the minion_id.
13:29 hemebond or hostname -f I think.
13:29 SWA yeah, except my custom script is executed before the keys push
13:29 SWA so salt-minion complains the master hasn't accepted its keys
13:30 hemebond Sorry, I'm confused.
13:30 hemebond Oh.
13:30 SWA it's just the question of ordering i'm trying to figure ou
13:30 SWA t
13:30 flowstate joined #salt
13:31 hemebond start VM, run bootstrap, SSH onto VM and gives it keys, accept keys on master
13:31 iceyao joined #salt
13:31 hemebond Something like that I think.
13:32 SWA for some reason, i can't use bootstrap.. so my template have salt-minion installed and set up.. but not set to start at boot or i get the noname ID
13:32 SWA i just want to enable and start salt-minion at the very end of the deployment
13:32 hemebond What does salt-cloud do right now?
13:33 hemebond Fail because salt-minion isn't running?
13:34 SWA salt-cloud considers its job is done
13:34 SWA but the minion should start and I should follow immediately with a state.highstate
13:35 hemebond That's odd. Can it SSH onto the minion?
13:35 hemebond Any errors?
13:35 hemebond Anything in the debug output?
13:35 SWA yeah, all that is fine.. it just executes my custom script before pushing the pki keys
13:36 lero joined #salt
13:36 hemebond nagri: If you're trying to use my virtualbox config to get something working, it won't work; there was other stuff I had to do to get vboxapi working properly.
13:36 hemebond SWA: Yes, that's what it should do.
13:36 hemebond Your script is for installing the minion.
13:37 SWA well then i guess i want a post-script :)
13:37 hemebond Ah, well.
13:37 hemebond Does salt-cloud leave the salt-minion running?
13:38 SWA salt-minion never starts since it tries to start while it hasn't receive its keys
13:39 hemebond It should create its own keys, then I would assume salt-cloud replaces those keys and restarts the minion.
13:39 hemebond Unless salt-cloud tells salt-bootstrap not to start the minion.
13:39 DEger joined #salt
13:39 manji joined #salt
13:39 kevinquinnyo1 joined #salt
13:40 SWA bootstrap is a bit confusing.. you think i could just use it and tell it not to install anything and just start the minion when it's done?
13:41 SWA i can get it to skip installation but it never enables salt-cloud nor start it
13:41 hemebond -N  Do not install salt-minion
13:41 hemebond -X  Do not start daemons after installation
13:41 hemebond You only need -N there.
13:42 hemebond salt-cloud possibly passes some extra parameters.
13:42 SWA i'll try passing only -N
13:42 SWA always passed -C
13:43 hemebond I would have thought that would work.
13:43 DEger joined #salt
13:44 traph joined #salt
13:44 traph joined #salt
13:44 hemebond Hmm. I'm thinking salt-cloud just does a regular bootstrap.
13:44 hemebond I'm wondering why you can't just start your minion in your custom bootstrap script.
13:45 nyx joined #salt
13:45 hemebond I would expect salt-cloud to tidy up the salt-minion config and restart it.
13:46 subsignal joined #salt
13:47 tapoxi joined #salt
13:47 c4t3l I have a question on salt engines... I have set up multimaster salt and I am using a load balancer to connect to the front end (ssh access in this case).  I currently have the LB configured to do a simple tcp port check on 4505 and 4506, but my network team says that I need something more robust (like a status web page).  I'm thinking that an engine may be the solution for this but wanted to ask what other folks are doing.
13:48 SWA thanks hemebond i'll investigate further
13:48 hemebond SWA: be sure to run it in debug mode, you should see it generating the minion keys. good luck.
13:49 SWA hemebond: yeah, i run with "-l trace" :)
13:49 ravenx joined #salt
13:50 ravenx in my /srv/salt file:    I have project/ and within that i have project/init.sls and project/custom.sls
13:50 ravenx whiel I am able to run:  salt 'server1' state.sls project  (which runs the init.sls), I am unable to do:    salt 'server' state.sls project/custom.sls
13:50 ravenx any ideas of what i'm doiugn wrong?
13:51 Brew joined #salt
13:55 c4t3l in my setup the minions are configured to failover to the standby host at 30 second intervals.  I'm wondering how to handle the actual proccess checking from the master side.  it could be a simple "ps" lookup in a python script.  I just want to know if there is a better method to test running salt master than chcking ps table
13:56 hemebond left #salt
13:56 c4t3l From my reading I gather that the salt engine acts as a "supervisor" and is responsible for starting the application if it determines that it died.  Is this assumption correct?
14:00 c4t3l @ravenx salt is designed to look for init.sls.  It must exist.  Can you include your custom.sls within your init?
14:02 ravenx c4t3l: thanks for the tip.  i did do taht.
14:02 edrocks joined #salt
14:03 CTaylor joined #salt
14:03 ravenx c4t3l: i also created a subfolder in there, called custom/  and put it in there
14:03 kshlm joined #salt
14:03 flowstate joined #salt
14:05 colegatron_origi joined #salt
14:06 Tanta joined #salt
14:06 c4t3l ravenx: check out https://docs.saltstack.com/en/latest/ref/states/include.html.  It might help
14:07 ravenx thanks
14:07 ravenx i opted to move this out of my main init.sls is because it gets run quite often and i dont need to run 90% of the stuff
14:07 c4t3l if include doesnt execute in the proper order you may want to check out requisites
14:07 c4t3l ah ok
14:09 c4t3l another option is to utilize pillars for enabling/disabling parts of a state... But this really depends on how you are calling the state (remote execution vs scheduled highstate or orchestration)
14:10 c4t3l for example:  you have a default minion state that has default config settings for all minions... You could have it set to run on a schedule so that it maintains configuration.  You can also run it from cli and pass it a pillar argument to update to newest version of salt minion.
14:11 c4t3l I use this very setup in production and it works well
14:11 ravenx Ji am doing remote execution
14:11 ravenx my devs aren't ready for scheduled highstate
14:11 ravenx lol
14:11 c4t3l hehe
14:11 ravenx i think i did something like that, by utilizing pillars for enabling/disableing parts of a state
14:12 ravenx you mean using grains to check for certain aspects right?
14:13 ajv joined #salt
14:13 c4t3l not exaclty.  in my case, you would have to explicitly send a specific pillar value (salt 'host' state.apply minion pillar='{"update": "True"}'
14:13 ravenx AH
14:13 c4t3l my state has an if conditional to check for that pillar key/value
14:13 ravenx i did NOT think of that
14:13 ravenx that's pretty sweet.
14:14 c4t3l I like it a lot :)
14:14 ravenx it kinda acts like a command line swtich:    command --update=True
14:14 ravenx fucking clever!
14:14 c4t3l exactly!
14:14 c4t3l thanks
14:14 ravenx :)
14:14 ravenx bntw what is the difference between orchestration and scheduled hs?
14:16 impi joined #salt
14:17 c4t3l it gives you the ability to run states on different hosts in an orderly fashion.  can be used to failover webserver to standby, then update primary webserver, then switchback
14:17 c4t3l that type of thing
14:17 c4t3l but its all called from the perspective of the master
14:17 c4t3l so it can 'see' where the state execution is relative to the minions
14:18 perfectsine joined #salt
14:18 rem5 joined #salt
14:20 gableroux joined #salt
14:20 ravenx aah gotcha
14:20 armin oh wow, a perfect sine wave.
14:20 armin how'd you build your frequency generator?
14:20 nethershaw joined #salt
14:20 armin :O
14:21 c4t3l using salt? :P
14:21 manji joined #salt
14:22 armin still reading about salt...
14:23 armin i still believe there's some point where it doesn't make sense to try to implement ALL in salt, when something is really better put into a shell-script that salt executes.
14:23 armin however i'm trying to actually define the point where it starts to not make sense anymore for me.
14:24 c4t3l the stateful attribute for cmd state is very powerful
14:25 c4t3l if you go the shell script route, use that functionality and you won't be disabpointed
14:25 c4t3l s/disabpointed/let down/
14:26 boreal joined #salt
14:26 armin well from my understanding, defining states is the one thing, defining the way that leads to that state is the other.
14:26 armin i also disagree with the term of "executing a state".
14:27 armin i mean you might be able to *apply* a state. but saying "executing a state" seems totally wrong to me...
14:27 manji joined #salt
14:28 c4t3l this is one of the instances when human language fails... there's a fair bit of ambiguity
14:29 boreal hi there. looking for some help. i tried the usual channels and haven't found a solution.
14:29 boreal i'm need to get the IP address of the minion during a salt run
14:29 c4t3l you *could* do everything you want with shell scripts and salt calls, but where do you draw the line?
14:29 boreal i've tried this {{ salt['network.interface_ip']('eth0') }}
14:29 boreal but that give me the IP of the master
14:30 rem5 joined #salt
14:30 boreal c4t3l: not sure if that comment was directed at me, but yes, i could just use a shell command to get the IP. just wondering if there's a saltier way to do it
14:30 AndreasLutro boreal: you're probably doing it in a pillar sls, which are rendered on the master. it'll work if you use it in a state sls, which is rendered on the minion. otherwise you have to use grains
14:31 boreal i see. ok. i attempted to figure it out with grains but failed. any hints?
14:31 AndreasLutro salt 'name-of-minions' grains.items
14:31 AndreasLutro will show you all available grains
14:31 c4t3l boreal: its all good.  my comment was directed towards armin :)
14:32 AndreasLutro {{ grains.foo.bar }} to access them
14:32 boreal AndreasLutro: k, i'll give it a try. thanks
14:32 boreal c4t3l: :)
14:32 Cottser joined #salt
14:34 zer0def joined #salt
14:37 ivanjaros joined #salt
14:39 boreal followup question: if i use {{ grains.ip4_interfaces.eth0 }} in my pillar sls won't i end up with the master's IP again?
14:39 boreal how do i specify the minion?
14:40 bowhunter joined #salt
14:40 Cottser joined #salt
14:41 boreal oh my, it works :)
14:41 grantjm joined #salt
14:41 hasues joined #salt
14:42 TOoSmOotH joined #salt
14:49 hasues left #salt
14:49 rem5 joined #salt
14:49 boreal sorta. it wraps the IP. ['10.10.0.4']
14:50 fracklen boreal: eth0 could have multiple ips... {{ grains.ip4_inferfaces.eth0[0] }}
14:50 boreal oops, right
14:52 boreal sweet. thank you, fracklen
14:54 fracklen boreal: Normally, I would use pillars for data that you can't look up dynamically. The minions own ip is not such. I'd look that up in the states that need it - as AndreasLutro suggested :)
14:55 tapoxi joined #salt
14:56 beardedeagle joined #salt
14:57 teryx510 joined #salt
15:05 whitenoise joined #salt
15:06 Cottser joined #salt
15:09 mikecmpbll joined #salt
15:11 cyborg-one joined #salt
15:15 krymzon joined #salt
15:19 edrocks joined #salt
15:20 _JZ_ joined #salt
15:21 dfinn joined #salt
15:22 Cottser joined #salt
15:29 Cottser joined #salt
15:30 treaki joined #salt
15:34 gimpy2938 joined #salt
15:34 gimpy2938 Is there a way to match on nodegroups in an SLS file?
15:46 Jaremy joined #salt
15:47 Jaremy Morning all, I am working on custom _modules for our saltstack. I have added the _modules to the master file setting the /srv/salt/_modules directory. When I sync the modules nothing is sent out. So I tried adding the _modules to a top file with no luck in syncing them either. Any thoughts on a step I am missing.
15:49 tvinson gimpy2938: https://docs.saltstack.com/en/latest/topics/targeting/nodegroups.html#using-nodegroups-in-sls-files
15:52 gimpy2938 tvinson: thanks ... hate that syntax but is what it is
15:52 tapoxi joined #salt
15:54 Jaremy Nevermind I answered my own question, I did not have its base dir in my top file correctly.
15:56 tvinson gimpy2938: you wouldn't need to use pillar.get if you're getting a value that's always going to be present/set
15:57 onlyanegg joined #salt
15:59 DEger joined #salt
16:01 colegatron_origi joined #salt
16:02 gimpy2938 tvinson: what do you mean?
16:03 Cottser joined #salt
16:04 Cottser joined #salt
16:05 Cottser_ joined #salt
16:05 Cottser joined #salt
16:07 pid1_ joined #salt
16:08 POJO joined #salt
16:08 POJO joined #salt
16:11 Cottser joined #salt
16:11 aw110f joined #salt
16:16 subsignal joined #salt
16:17 Llmiseyhaa Hrm.  So I've got a formula for installing java... is it bad form to require: java.install from my formula to install solrcloud?
16:18 brent_ joined #salt
16:18 Llmiseyhaa (that is to create cross-formula dependancies)
16:19 aharvey joined #salt
16:20 woodtablet joined #salt
16:23 fannet joined #salt
16:27 stomith joined #salt
16:28 VSpike This is possibly not specifically a Salt question, but I have two virtual Windows hosts at one site which seem to have a hard time communicating with the master
16:28 flowstate joined #salt
16:28 VSpike https://bpaste.net/show/8d7391004efc shows command output and log
16:28 VSpike I've seen this before with things like asymmetric routing causing TCP connections to be killed, but I'm pretty sure that's not the case here
16:28 joeto joined #salt
16:28 VSpike Also, a ssh connection from the minion back to the master stays up with no problem
16:29 VSpike What else can cause this? One thing that occurred to me .. it's possible the person who made these cloned VMs. Is there an internal key or id that both salt minions could share causing them to collide with each other?
16:30 FroMaster joined #salt
16:33 nZac joined #salt
16:36 VSpike test.ping and test.versions works
16:36 VSpike so does pillar.items
16:36 VSpike but my state doesn't
16:38 garphy joined #salt
16:40 gimpy2938 so I have a state which joins a machine to a Kerberos realm and I need the master to pull a file from the minion (its keytab) to a place in the master's file_roots.  I found cp.push but it doesn't seem to be what I need.  Any ideas?
16:41 nyx joined #salt
16:41 ageorgop joined #salt
16:42 gimpy2938 VSpike: minions have keys and IDs but only the latter needs to be unique ... if you cloned machines check the ID is not set the same on both (if you set ID in your minion config)
16:43 aw110f joined #salt
16:45 onlyanegg joined #salt
16:45 Lionel_Debroux joined #salt
16:45 Cottser joined #salt
16:49 Cottser joined #salt
16:51 kawa2014 joined #salt
16:58 impi joined #salt
17:11 ajv joined #salt
17:15 SpX joined #salt
17:16 jhauser_ joined #salt
17:17 stack I would like to use salt to ship configurations for webapps, I would also like to handle the case where those apps are deleted so I need to manage the config and file deletions (for example remove config from nginx/sites-enable, db and associated user, uwsgi conf) , what is the recommended way to do that?
17:17 Llmiseyhaa gimpy2938: MinionFS plus cp.push actually sounds like it should do what you want.
17:17 Llmiseyhaa You just need to ensure MinionFS is configured in your master config and use an orchestrate runner to execute the cp.push on your master
17:18 babilen stack: You would essentially have to write two states where one is the inverse of the other (pkg.{installed,removed}, file.{managed,absent}, ...)
17:18 babilen stack: Not possible to define the inverse for everything though
17:18 gimpy2938 Llmiseyhaa: what's an "orchestrate runner"?
17:19 mikecmpbll joined #salt
17:20 Llmiseyhaa gimpy2938: https://docs.saltstack.com/en/latest/topics/orchestrate/orchestrate_runner.html#orchestrate-runner
17:22 onlyanegg joined #salt
17:28 joeto left #salt
17:31 Edgan joined #salt
17:34 onlyanegg joined #salt
17:36 s_kunk joined #salt
17:38 aw110f joined #salt
17:41 ronnix joined #salt
17:45 fracklen joined #salt
17:47 iggy stack: pillar data containing a map of filesystem paths and an enable: True/False... if it's true, file.managed, if it's false file.absent
17:48 KajiMaster joined #salt
17:49 MajObviousman hmm, can I tell from querying grains if a physical system has one or two processors?
17:49 MajObviousman num_cpus is just lumping total number of cores together, I assume
17:49 MajObviousman also, will it list if the proc is hyperthreaded and has it turned on?
17:51 tapoxi joined #salt
17:52 iggy MajObviousman: you want to know about physical sockets? no
18:07 nZac joined #salt
18:07 Brew joined #salt
18:11 tapoxi hi everyone, having trouble using gitfs. it's giving me the error "Exception caught while initializing gitfs remote 'https://github.com/salt-formulas/users-formula.git': value must be a string"
18:11 tapoxi looks like a string to me...
18:11 tapoxi er saltstack-formulas
18:11 tapoxi sorry
18:12 babilen Could you paste your configuration ?
18:14 aharvey joined #salt
18:14 tapoxi babilen http://pastebin.com/FsrhbycH
18:15 onlyanegg I have naming convention for my servers like <role><#>.<environment>.<location>.<domain>. I'll have a pillar sls for each <environment>. I want each minion to get it's own environment's pillar without
18:16 onlyanegg ... a whole bunch of '.*prod.*':; match: pcre;  prod
18:16 onlyanegg sorry, that's confusing notation...
18:16 shadoxx So...it's not terribly clear in the documentation I'm reading. If I want to setup a file_roots, where is that located?
18:17 tapoxi shadoxx /etc/salt/master, you can make it a separate file in /etc/salt/master.d/
18:17 shadoxx oh, it's a directive inside /etc/salt/master, not its own file?
18:17 dyasny joined #salt
18:17 Jaremy Building custom _modules when I import one function from another file I am receiving this error: NameError: global name '__grains__' is not defined. The function I am calling grabs a minions id, does a few things and returns the finished product that another function is using to set hostnames and route53.
18:18 tapoxi shadoxx yes, it's in master but you can also split out the sections into individual files if you want, just keep them in master.d
18:18 shadoxx hah! look at that. thanks tapoxi.
18:18 shadoxx tapoxi: so i can have an actual file 'file_roots' located in master.d/ and it'll know to load that directive?
18:18 nZac joined #salt
18:19 onlyanegg you can configure the location of your file_root in /etc/salt/master
18:19 onlyanegg by default it's at /srv/salt
18:19 onlyanegg sing notation...
18:19 onlyanegg 11:16 < shadoxx> So...it's not terribly clear in the documentation I'm reading. If I want to setup a file_roots, where is that located?
18:19 onlyanegg 11:17 < tapoxi> shadoxx /etc/salt/master, you can make it a separate file in /etc/salt/master.d/
18:20 tapoxi shadoxx yes
18:20 babilen tapoxi: Indentation is wrong (line 4 and 10) and you don't want the "root: users" in there I guess. Which git provider are you using?
18:20 onlyanegg whoops
18:20 tapoxi babilen that's actually just pastebin's stupid highlighting those lines aren't indented. using pygit2
18:20 shadoxx tapoxi: that's pretty cool. and really useful to know. taking over an environment...figuring out how it was setup.
18:21 babilen tapoxi: Well, yet another reason to not use that horrible website then. One of http://refheap.com, http://paste.debian.net, https://gist.github.com, http://sprunge.us, … might be better
18:21 tapoxi babilen I added the root directive because if I do a git pull from that formula it's under a 'users' subdir
18:22 shadoxx babilen: hastebin. :D
18:22 babilen I also don't use gitfs with salt-ssh nor pygit
18:22 babilen tapoxi: Yes, the state is "users" (which calls "users/init.sls"
18:22 babilen )
18:22 tapoxi babilen http://hastebin.com/ikikefepor.sm
18:22 babilen Debug output would also come in handy
18:23 tapoxi sure, whats the debug flag
18:23 babilen "-ldebug"
18:23 tapoxi ty
18:24 shadoxx tapoxi: if you've never used hastebin before, you can actually change the last part of the url to .py, .rb, .php, etc, and it'll syntax highlight based on that url
18:24 Jaremy Does anyone know if you can import custom module functions into other custom modules that contain special variables such as 'opts' 'grains' or 'pillars'. Only thing so far I can find talks about the timing of the loaders for modules that could cause problems with this.
18:25 tapoxi babilen one second it worked with the flag on...
18:26 tapoxi now its just working
18:26 tapoxi this is bizarre
18:27 keys the gitfs rage is real tho
18:27 tapoxi hahahah
18:27 tapoxi does it have a habit of doing this kind of shit?
18:27 Jaremy gitfs with S3 was a good time as well.
18:27 keys I've had nightmare dealing with it
18:27 blw0rm joined #salt
18:29 babilen gitpython works pretty well
18:29 tapoxi yeah I was planning on using it for formulas but I might just write some cron job to pull my fork to rootfs
18:30 babilen I also *really* wouldn't pull directly from github
18:31 pryorda joined #salt
18:31 keys ?
18:31 pryorda do includes have to go at the top
18:31 pryorda or can they be in the middle/
18:32 pryorda ?
18:33 gimpy2938 trying to use node groups in an sls and it doesn't seem to work, does it only support certain ways of listed minions, e.g. doesn't work with regex?  https://gist.github.com/jwhite530/5cb639fcfefde9cf2c26a33dc964bfc7
18:34 MTecknology ... what is a salt road?
18:34 ajw0100 joined #salt
18:34 wryfi_ does anyone here have any opinions or guidance about the three different netapi modules? (https://docs.saltstack.com/en/latest/ref/netapi/all/index.html)
18:35 wryfi_ is one of them more broadly used/supported than the others?
18:42 iggy wryfi: cherrypy (being the main upstream developed one) is probably the most documented/used/compatible one
18:43 iggy tornado is probably the most featureful
18:43 wryfi and i would expect tornado to be most performant, too?
18:43 wryfi (not sure that it really matters)
18:44 wryfi thanks for pointing out that cherrypy is the "official" upstream one, that's not clear in the docs
18:44 iggy yeah... I kind of doubt anyone has bothered to benchmark that
18:44 iggy the api part of anything in salt is going to be such a small part of the overall run time
18:44 wryfi iggy: do you know if they all support salt-cloud?
18:44 iggy they should all support any states/modules/runners/etc in salt
18:44 iggy if not, open issues
18:45 wryfi sweet, thanks
18:46 * wryfi will start with cherrypy
18:46 iggy I wouldn't say cherrypy would be called "official" but it was written by salt devs (and I believe it was the first one, but that predates salt-api being merged into salt proper)
18:46 wryfi what is salt-api?
18:46 wryfi (or *was*)
18:46 iggy it was the name of the project where the netapi stuff started
18:47 iggy (it's also the name most people still use to discuss the whole netapi ecosystem)
18:49 tkojames joined #salt
18:52 aharvey joined #salt
18:57 Jaremy joined #salt
18:57 gngsk joined #salt
18:58 Jaremy cherrypi has worked well for us once we got it setup. SSL took some toying around but it works really well for remote deployments now.
18:59 gngsk How can I tell salt which local python installation to use? I have both python2.6 and python2.7 on an Amazon Linux AMI and I'd like salt to use python2.7 but it seems to have defaulted to python2.6
18:59 iggy gngsk: how did you install salt?
19:00 amcorreia joined #salt
19:01 nyx joined #salt
19:03 gngsk salt-bootstrap, is it possible to specify which python version to use with that?
19:04 rem5 joined #salt
19:05 gngsk specifically: yum clean expire-cache && wget -O - https://bootstrap.saltstack.com/develop | sh -s -- -XMA 127.0.0.1 git 2015.5.5
19:06 keimlink joined #salt
19:12 iggy I would guess it uses whatever /usr/bin/python points to
19:13 iggy at the very least all the scripts are going to
19:13 iggy maybe asking in an Amazon linux specific place would give you some hints too
19:34 gngsk Salt seems to use /usr/bin/python2 which, on Amazon Linux, is symlinked to /usr/bin/python2.6. Pointing it to python2.7 before calling salt-bootstrap probably does the trick. But, I need to use Ubuntu for other reasons so I'm not even going to test it!
19:46 Eugene Amazon Linux is a bit crazy
19:50 XenophonF anyone else running into package conflicts involving zeromq on rhel/centos?
19:50 XenophonF https://gist.github.com/xenophonf/054d6fb957e319195fc61c9a0aba8cd1
19:50 XenophonF that's with salt installed from the saltstack repo, not epel
19:51 aharvey This happened to me the other day - recalling what occurred
19:51 Eugene Yup, it's still happening. There's an Isuse for it
19:51 iggy XenophonF: did you check issues? (yes, there have been multiple reports... don't know if anyone has bothered to let the actual devs know or if they just complain in here)
19:51 Eugene https://github.com/saltstack/salt/issues/34575
19:51 saltstackbot [#34575][OPEN] zeromq 4.1.4-5.el7 from EPEL causes issues with python-zmq-14.7.0-1.el7.x86_64 from saltstack repo | Description of Issue/Question...
19:52 Eugene It's a packaging problem; the saltstack repo needs to get rebuilt
19:52 aharvey ah there we are - thanks Eugene
19:52 Eugene You can excludepkgs=zeromq in epel.repo for now
19:56 Eugene Note that you should be able to install salt-minion still, assuming you haven't installed the el7 zeromq package yet
19:57 Eugene It's just subsequent updates that will fail; --skip-broken works
19:59 mapu joined #salt
20:03 XenophonF thanks
20:03 XenophonF i am going to downgrade to the version in epel, i think
20:03 XenophonF 2016.3.1 has a bug in s3fs that they've patched and closed the issue on, but haven't done a subsequent bugfix release :(
20:03 XenophonF and they don't have old versions in their repo :(
20:04 Eugene I really need to get around to setting up an epel mirror
20:05 * |_[O_O]_| waves @ Eugene
20:05 |_[O_O]_| i. see. you.
20:05 * |_[O_O]_|
20:05 Eugene ヾ(⌐■_■)ノ♪
20:06 XenophonF thanks iggy and Eugene
20:07 XenophonF i need to get all of my minions running the same release
20:07 XenophonF 2015.5.10 doesn't have any horrible security bugs, does it?
20:08 XenophonF the epel package depends on zeromq3 :-/
20:12 XenophonF also, i've been trying to use mysql-formula to provision a database server on CentOS 7, but the mysql.server SLS doesn't apply a working config
20:12 XenophonF centos uses mariadb with different defaults than fedora, but the formula appears to be set up to use mysql
20:15 XenophonF so is anyone using mysql-formula to manage mariadb database servers on centos?
20:16 XenophonF b/c i'd love to see a working config
20:21 MTecknology Heh... is there a "prefix" option for configs? Like... instead of "extension_modules: /etc/sensu/salt/salt-check/extmods" having "extension_modules: {{cachedir}}/extmods"?
20:22 ninjada joined #salt
20:24 numkem joined #salt
20:28 ninjada joined #salt
20:30 tkojames So I am using salt cloud and having issues creating a VM. It was working in the past but now when i try to run salt-cloud -p profile name vm name. I get the following error Profile is not defined. Not Sure why this occurring. Any Ideas?
20:31 aasirc joined #salt
20:32 _JZ__ joined #salt
20:33 pcdummy joined #salt
20:33 pcdummy joined #salt
20:37 Rumbles joined #salt
20:43 iggy tkojames: try with `-l debug` and see if you see anything
20:44 iggy there was also a change at one point to change one of the config keys
20:50 _JZ_ joined #salt
20:52 manji joined #salt
20:59 KingJ joined #salt
21:00 badon left #salt
21:06 tkojames Now iam getting this error, "salt-cloud: error: Error while processing <bound method SaltCloud.process_config_dir of <salt.cloud.cli.SaltCloud object at 0x33f6d50>>: Traceback (most recent call last):   File "/usr/lib/python2.7/site-packages/salt/utils/parsers.py", line 199, in parse_args" plus a bunch more similar to that
21:06 tkojames python issues maybe
21:06 tkojames ?
21:06 briansteffens joined #salt
21:06 iggy I would guess config file issue
21:06 perfectsine joined #salt
21:07 Rumbles joined #salt
21:07 deniszh joined #salt
21:08 tkojames Think it would be my provider file? I have not changed that file or my profile file and they worked fine in the past. Or a different config file?
21:08 tkojames thanks for the help btw!
21:08 iggy I would guess one of the salt-cloud files
21:11 ronnix joined #salt
21:21 catpig joined #salt
21:33 Rumbles joined #salt
21:35 rem5 joined #salt
21:38 hemebond joined #salt
21:38 futuredale joined #salt
21:39 badon joined #salt
21:46 hyegeek joined #salt
21:47 rem5 joined #salt
21:52 lero joined #salt
21:53 windowsminionssu joined #salt
21:53 windowsminionssu Hey, anybody know how to properly troubleshoot a windows minion?  I'm new to using them, and about 1/5 of my commands come back with no response, including test.ping
22:02 flowstate joined #salt
22:02 aphor joined #salt
22:06 gladiatr joined #salt
22:07 aphor anyone use salt.states.cloud.volume_attached with ec2 driver?
22:15 sinh joined #salt
22:24 debian112 joined #salt
22:30 yomateo joined #salt
22:30 aphor :(
22:31 hemebond windowsminionssu: Tried running your commands with a longer timeout?
22:32 sagerdearia joined #salt
22:34 Jaremy when a minion runs a custom _module, does that run as the user the minion runs as? Also, how does that know which python to select 2.6 vs 3.5.
22:34 colegatron_origi joined #salt
22:34 aphor Jaremy: yes, and salt prefers Python 2.
22:35 subsignal joined #salt
22:37 Jaremy Thank you, I will go ahead and write them again in pure python 2.
22:38 iggy or make them work in both for the day when salt actually works fully on py3
22:39 iggy (it's close)
22:39 Jaremy I long for that day. Sweet! Most things I have written so far are usable in both.
22:40 iggy fwiw, upstream salt relies heavily on six
22:41 iggy in fact it ships with a copy salt.ext.six
22:41 Jaremy Ah, thank you for that information.
22:44 DEger joined #salt
22:55 squishypebble joined #salt
23:01 nyx joined #salt
23:01 flowstate joined #salt
23:07 woodtablet left #salt
23:20 DEger_ joined #salt
23:20 jalaziz joined #salt
23:26 Rumbles joined #salt
23:27 DEger_ joined #salt
23:27 flowstate joined #salt
23:31 DEger joined #salt
23:37 subsignal joined #salt
23:42 amcorreia joined #salt
23:42 ALLmightySPIFF joined #salt
23:45 flowstate joined #salt
23:47 rem5 joined #salt
23:49 kevinquinnyo1 joined #salt
23:50 DEger_ joined #salt

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