Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-09-21

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

All times shown according to UTC.

Time Nick Message
00:10 aparsons joined #salt
00:20 otter768 joined #salt
00:22 aristedes1 joined #salt
00:22 aristedes1 left #salt
00:23 pravka joined #salt
00:23 edrocks joined #salt
00:35 teebes joined #salt
00:37 toastedpenguin joined #salt
00:37 Furao joined #salt
00:38 aristedes joined #salt
00:39 aristedes left #salt
00:40 pravka joined #salt
00:46 Akhter joined #salt
00:47 ajw0100 joined #salt
00:52 Furao_ joined #salt
01:02 rubendv joined #salt
01:04 edrocks joined #salt
01:04 Akhter joined #salt
01:10 traph joined #salt
01:13 PeterO_ joined #salt
01:14 otter768 joined #salt
01:15 otter768 joined #salt
01:25 Akhter joined #salt
01:33 Akhter joined #salt
01:36 catpigger joined #salt
01:38 Bryson joined #salt
01:40 Akhter joined #salt
01:45 PeterO_ joined #salt
01:47 Akhter joined #salt
01:52 teebes joined #salt
01:58 cberndt joined #salt
02:05 Akhter joined #salt
02:26 PeterO_ joined #salt
02:27 DammitJim joined #salt
02:28 DammitJim can I use a source directory from a samba mount for a file.recurse?
02:29 edrocks joined #salt
02:32 hasues left #salt
02:32 edrocks_ joined #salt
02:33 Furao joined #salt
02:36 DammitJim joined #salt
02:37 kusams joined #salt
02:38 Akhter joined #salt
02:39 quasiben joined #salt
02:54 SheetiS joined #salt
03:02 hasues joined #salt
03:02 hasues left #salt
03:03 Akhter joined #salt
03:04 clintberry joined #salt
03:04 Akhter joined #salt
03:05 orion203 joined #salt
03:08 Furao joined #salt
03:08 aristedes joined #salt
03:08 aristedes left #salt
03:17 rdxc joined #salt
03:23 Furao joined #salt
03:24 pdayton joined #salt
03:25 favadi joined #salt
03:26 Akhter joined #salt
03:30 voxxit joined #salt
03:33 evle joined #salt
03:36 Akhter joined #salt
03:36 Furao joined #salt
03:38 Nathan joined #salt
03:41 Nathan noob to salt, what is the best way run a Windows command line (or PowerShell) statement from salt State/Formula ?
03:41 Nathan This is for a Windows salt-minion of course
03:44 Furao joined #salt
03:47 Nathan Ahh, may be answering my own question. salt.states.cmd ? Not sure if that is fully Windows compatible?
03:49 larsfronius joined #salt
03:50 subsignal joined #salt
03:54 Akhter joined #salt
03:57 Furao joined #salt
03:58 stanchan joined #salt
04:00 mosen Nathan: should be
04:01 mosen Nathan: you could try cmd.run execution module
04:01 mosen Nathan: Not sure about powershell module
04:05 Furao joined #salt
04:06 Nathan Thanks
04:18 Akhter joined #salt
04:19 clintberry joined #salt
04:20 pdayton joined #salt
04:31 pdayton joined #salt
04:36 PeterO_ joined #salt
04:41 Furao_ joined #salt
04:45 Furao joined #salt
05:02 rdas joined #salt
05:05 ageorgop joined #salt
05:12 Furao_ joined #salt
05:18 Furao joined #salt
05:21 otter768 joined #salt
05:33 Furao joined #salt
05:45 malinoff joined #salt
05:45 Furao joined #salt
05:47 anmol joined #salt
05:54 jbrnds joined #salt
05:55 subsignal joined #salt
05:59 colttt joined #salt
06:04 Furao joined #salt
06:09 Furao joined #salt
06:11 svinota joined #salt
06:17 jbrnds joined #salt
06:20 pcdummy joined #salt
06:20 jbrnds2 joined #salt
06:21 dopesong joined #salt
06:24 Furao joined #salt
06:28 GrantS joined #salt
06:28 GrantS Hello
06:29 GrantS I am trying to use a builtin module I get the following
06:29 GrantS Module 'gnomedesktop' is not available.
06:31 GrantS Any clues? tried saltutil.sync_modules and saltutil.sync_all
06:33 Furao it’s gnomedesktop.$funcname
06:33 elsmo joined #salt
06:34 Furao ah I know
06:34 Furao https://github.com/saltstack/salt/blob/develop/salt/modules/gnomedesktop.py#L18
06:34 Furao you need python lib gi
06:36 GrantS ahhh
06:37 GrantS just saw that running sys.list_modules didn't list it
06:40 GrantS do you have a home page etc for this module?
06:41 Furao homepage?
06:45 KermitTheFragger joined #salt
06:45 GrantS I just trying to track down the files deployed, source files etc so I can find the rpm for Centos6
06:49 Furao joined #salt
06:51 linjan joined #salt
06:51 OliverMT for large long running states (like a fresh provision of the box), it often just runs for a long time, then exits with no information
06:51 OliverMT is that a known issue?=
06:51 OliverMT re-running the state works most of the time
07:03 lb1a joined #salt
07:06 eseyman joined #salt
07:06 17WAAO3ME joined #salt
07:07 hemebond joined #salt
07:07 hemebond Can someone please point me to some info on what Wheel is? I've read what I've found but still not sure.
07:08 hemebond (and it keeps popping up in the documentation)
07:08 katyucha joined #salt
07:09 GrantS @GrantS looks like this is provided in package pygobject3-base in Centos7
07:11 GrantS @hemebond Wheel is a user group that is used traditionally to group privilledged users
07:12 aristedes1 joined #salt
07:13 hemebond Oh, it's a POSIX group thing?
07:19 GrantS @hemebond eg some OS's only allow users in the wheel group to su to root by default
07:20 hemebond Thank you very much.
07:21 GrantS np
07:22 otter768 joined #salt
07:28 GrantS @GrantS looks like module does not support centos6
07:30 whytewolf OliverMT: when it is running for a long time than exists without output it basicly went into a background process. [salt is async] use the job management tools to find out what is happening in the background https://docs.saltstack.com/en/latest/topics/jobs/index.html
07:30 OliverMT the job does not finish
07:31 OliverMT I have to run it again for it to run
07:33 whytewolf that sounds like you have something hanging up the process line. use the job tools to find past jobs and see what they returned
07:36 CeBe joined #salt
07:37 favadi joined #salt
07:37 thalleralexander joined #salt
07:37 kawa2014 joined #salt
07:46 GreatSnoopy joined #salt
07:47 denys joined #salt
07:52 Furao joined #salt
07:52 chiui joined #salt
07:53 krymzon joined #salt
07:54 mattiasr joined #salt
07:55 _Kev_ OliverMT - if you're running interactively you could also try increasing the timeout : salt -t : to make salt wait longer for the return from minions
08:02 rdxc joined #salt
08:02 Grokzen joined #salt
08:06 Furao joined #salt
08:08 keimlink joined #salt
08:11 Furao joined #salt
08:11 CeBe1 joined #salt
08:13 thalleralexander joined #salt
08:13 ziro` joined #salt
08:16 Configio joined #salt
08:19 losh joined #salt
08:20 s_kunk joined #salt
08:21 traph joined #salt
08:29 Xevian joined #salt
08:34 kawa2014 joined #salt
08:35 elsmo joined #salt
08:36 larsfronius joined #salt
08:38 TyrfingMjolnir joined #salt
08:45 cyborg-one joined #salt
08:56 nchauvet joined #salt
09:01 mikepea joined #salt
09:02 goki joined #salt
09:04 supermike__ joined #salt
09:04 rubendv joined #salt
09:04 rubendv joined #salt
09:06 evle1 joined #salt
09:07 twodayslate joined #salt
09:08 akitada joined #salt
09:08 ITChap joined #salt
09:08 ITChap Hi
09:09 ITChap With the new git_pillar in 2015.8.0 what is the way to map a branch to base ?
09:09 ITChap just - env: base ?
09:10 Rebus nice, the docker guys not only fucked up the create/start api hostconfig, but they also dont bother to fix their documentation and rather just deprecate the feature for the star API in the future... which is why the dockerng module is currently broken >:-(
09:10 abele joined #salt
09:11 ITChap I get something like https://bpaste.net/show/3249668a3d1d
09:11 ITChap anybody has any idea ?
09:13 favadi joined #salt
09:14 impi joined #salt
09:14 ITChap I am using gitpython
09:15 CaptTofu joined #salt
09:17 JordanRinke joined #salt
09:17 doriftoshoes joined #salt
09:19 imanc joined #salt
09:20 mattiasr joined #salt
09:23 otter768 joined #salt
09:24 malinoff joined #salt
09:25 rubendv joined #salt
09:25 rubendv joined #salt
09:44 monkey661 joined #salt
09:54 svinota joined #salt
10:03 Ztyx joined #salt
10:04 Ztyx joined #salt
10:04 Ztyx Hey, is there any state or module function that would allow me to wait for an HTTP endpoint to be up and returning HTTP 200?
10:05 Ztyx I'm essentially looking for a polling salt.states.http.query, but with a maximum retries value (or timeout)
10:19 laax joined #salt
10:20 fredvd joined #salt
10:20 Furao joined #salt
10:23 Twiglet I don't think there is, you could use a cmd.run to call a script which does that though
10:24 pbrooko joined #salt
10:24 monkey66 joined #salt
10:24 dopesong_ joined #salt
10:25 hemebond ITChap: Are you using 2015.8?
10:28 zerthimon joined #salt
10:32 Twiglet ITChap: - git: branchname:base git.server.com:saltrepo
10:32 Twiglet should work
10:38 Twiglet oh wait my bad, they've changed thing in 2015.8 and I didn't rtfm, my bad
10:38 Ztyx Twiglet: Aight. Thanks, though!
10:40 hemebond Zytox: Reactors
10:44 malinoff joined #salt
10:50 Twiglet Can you use reactors in states?
10:50 hemebond As far as I know you can use reactors to apply states.
10:54 Twiglet Well yeah but thet's not the same thing at all ;)
10:54 Ztyx left #salt
10:54 hemebond I'm not sure what you're trying to achieve.
10:55 hemebond If you apply a state, it configures something for you. Not sure how different that is.
10:55 elsmo joined #salt
10:56 elsmo Morning all
10:57 elsmo I'm getting an error in the  timezone state - when trying to create the symlink it complains OSError: [Errno 17] File exists
10:57 elsmo Does the state not already handle unlinking of that file beforehand?
10:57 elsmo Does the state not already handle unlinking of that file beforehand? Version 2015.5.3 (Lithium)
11:00 aristedes joined #salt
11:04 giantlock joined #salt
11:05 aristedes left #salt
11:09 Furao joined #salt
11:14 quasiben joined #salt
11:15 malinoff joined #salt
11:23 hemebond I thought the "base" environment worked like a fallback. Is that not the case?
11:24 otter768 joined #salt
11:26 breakingmatter joined #salt
11:31 XenophonF joined #salt
11:33 anmol Is there a reload option in salt? I mean I am looking for asking the salt-master to reread its configuration when a dynamic change is made to its config file
11:36 pbrooko joined #salt
11:40 evle1 joined #salt
11:43 XenophonF anmol: there are several
11:44 XenophonF anmol: to do what you ask, you can make a service.running state watch the file state that changes the salt-master config file
11:45 XenophonF anmol: have a look at https://github.com/saltstack-formulas/salt-formula/tree/master/salt/master.sls for an example
11:46 elsmo Is there information about the availablity of salt packages on diffenrent platforms, and the policy of packing it? I use the saltstack debian wheezy repo, but the latest is 2015.5.3 - will 2015.8.0 be packaged soon?
11:56 anmol XenophonF: I don't want the salt to be restarted I just want it to reread the conf file.I see that the link that you gave me cleans the old conf files and I assume it restarts salt
11:56 mr_const joined #salt
11:56 ferbla joined #salt
11:58 XenophonF anmol: i don't see a reload option in the salt-master docs. perhaps you can HUP it and get it to re-read its configs, but i've only ever restarted the daemon after making config changes
11:58 anmol XenophonF: my question exactly is can we use "- reload: True" as in https://docs.saltstack.com/en/latest/ref/states/all/salt.states.service.html
11:59 XenophonF anmol: "reload: True" only works on the minion
12:02 TooLmaN joined #salt
12:02 XenophonF elsmo: you'll need to ask the debian wheezy maintainers
12:03 ITChap speaking of reload how do you guys handle case like postgresql where some settings require reload and other restart ?
12:03 ITChap do you add two service states ?
12:03 elsmo XenophonF: I'n not using the debian repos, I'm using the saltstack ones-  http://debian.saltstack.com/debian/
12:03 hemebond ITChap: I don't like to restart services automatically.
12:04 XenophonF ITChap: i tend to just restart the service, as it makes the states simpler to write and (later) easier to understand
12:04 XenophonF elsmo: dunno what their policy is, then
12:05 XenophonF ITChap: iirc the apache-formula has an example of what you want
12:06 XenophonF https://github.com/saltstack-formulas/apache-formula/blob/master/apache/init.sls#L10
12:07 ITChap ok I see
12:07 ITChap so you just hook on the one you want with a listen_in
12:21 tmclaugh[work] joined #salt
12:22 ITChap the best practice and formula documentation pages are really great
12:22 ITChap we need more like this
12:22 ITChap about best practices
12:22 phw joined #salt
12:23 subsignal joined #salt
12:23 ITChap for example when using large configuration files like postgres one.
12:23 ITChap do you store a template of the whole file
12:24 ITChap or do you do changes line by line on the config file installed by your package ?
12:24 phw Are the files residing in /srv/salt automatically deployed to the client? I want to deploy a quite large amoutn of files with 'file.recurse' - but want to avoid the salt directory on the minions filling up the disks
12:25 subsignal joined #salt
12:29 dyasny joined #salt
12:31 chiui joined #salt
12:37 dthom91 joined #salt
12:41 CeBe joined #salt
12:41 thalleralexander joined #salt
12:43 dthom91 joined #salt
12:43 subsignal joined #salt
12:44 JDiPierro joined #salt
12:46 numkem joined #salt
12:51 kawa2014 joined #salt
12:54 rocket joined #salt
12:57 subsignal joined #salt
12:59 impi joined #salt
13:02 zerthimon joined #salt
13:03 cpowell joined #salt
13:03 thalleralexander joined #salt
13:04 Twiglet phw: Files only get sent to the minion when called
13:06 pratikmallya joined #salt
13:07 murrdoc joined #salt
13:07 phw Twiglet: nice, thank you very much for the information!
13:08 phw Twiglet: oh, but the files are cached nontheless on the client - so deploying 2 gb via salt is a bad idea - right?
13:08 pratikma_ joined #salt
13:10 giantlock joined #salt
13:12 Twiglet I believe they will get cached, not 100% sure
13:12 Twiglet that is a whole load of files!
13:13 phw well it is several versions of boost - including precompiled versions
13:14 jdesilet joined #salt
13:14 Twiglet Would that not be better to package that up? Assuming you're using git (or similar) they really don't handle binaries well
13:15 Twiglet or you could stick it in S3 or similar and use file.managed to download them
13:15 phw Twiglet: does saltsack support download via http?
13:16 phw Twiglet: hmmmm ithink in general it is a bad idea to validate it file by file as it has a ton of files
13:16 Twiglet yeah you can user file.managed then "source: http://domain.com/file"
13:16 Twiglet use*
13:16 phw does that recurse over the webserver then?
13:17 phw or do you think about deploying an installer that then can be used?
13:17 Twiglet I don't think it would, so you'd have a lot of single statements
13:17 Twiglet Personally I'd look at packaging it then installing it as a package
13:17 phw yeah, once instance is around 33000 files
13:17 Twiglet https://github.com/jordansissel/fpm < FPM is great for simply making packages
13:17 Twiglet sweet jesus
13:18 phw i love fpm, does it support windows?
13:18 Twiglet oh
13:18 Twiglet that I don't know,
13:18 phw Twiglet: hahaha, now you know what my prolem really is :D
13:18 Twiglet I believe there is a file.archive or something
13:18 Twiglet https://docs.saltstack.com/en/latest/ref/states/all/salt.states.archive.html
13:18 phw Twiglet: on linux is just created an rpm, put it into my custom repo and rolled it out via saltstack - 5 minutes and i am good.
13:18 Twiglet could zip it up then download that
13:19 phw Twiglet: yeah, that means i need to install an unzipping tool first (which i could do with saltstack again)
13:20 Twiglet Can't windows do zips naitively these days?
13:20 Twiglet (i've not touched it in a long time)
13:20 phw nope, still no native unzipping via commandline
13:20 Twiglet ouch
13:20 phw yup
13:20 Twiglet well installing something to unzip would be a small price to pay in my book
13:21 phw yeah, i think i'll got that route to install a tiny unzipper and then - depending if the target directory exists or not - extract it
13:21 phw what do you think about that route?
13:21 Twiglet Probably what I would do
13:22 Steven- joined #salt
13:22 bhosmer joined #salt
13:22 pravka joined #salt
13:22 bhosmer joined #salt
13:25 racooper joined #salt
13:25 otter768 joined #salt
13:25 larsfronius joined #salt
13:26 I joined #salt
13:29 mapu joined #salt
13:31 teryx510 joined #salt
13:32 dthom91 joined #salt
13:36 protoz joined #salt
13:36 anotherZero joined #salt
13:38 Deevolution joined #salt
13:38 tanta_g joined #salt
13:52 seatan joined #salt
13:52 bluenemo joined #salt
13:54 subsigna_ joined #salt
14:00 cresten joined #salt
14:02 PeterO__ joined #salt
14:03 kawa2014 joined #salt
14:04 pdayton joined #salt
14:05 cresten joined #salt
14:05 evocore joined #salt
14:05 andrew_v joined #salt
14:08 berserk joined #salt
14:08 zmalone joined #salt
14:08 ageorgop joined #salt
14:08 pbrooko joined #salt
14:11 thalleralexander joined #salt
14:13 Akhter joined #salt
14:17 hasues joined #salt
14:21 _JZ_ joined #salt
14:21 zwi joined #salt
14:22 pbrooko_ joined #salt
14:23 anmol joined #salt
14:30 Fiber^ joined #salt
14:32 thalleralexander joined #salt
14:34 teebes joined #salt
14:36 felskrone joined #salt
14:37 PeterO_ joined #salt
14:38 evle joined #salt
14:40 kusams joined #salt
14:48 jalbretsen joined #salt
14:49 mapu joined #salt
14:49 nocturn joined #salt
14:50 blartftt joined #salt
14:51 blartftt how do i go about putting a pkg.upgrade command into an SLS file?
14:51 blartftt to achieve the goal of running a "yum -y upgrade" command on the minion
14:51 polishdub joined #salt
14:52 dthom91 joined #salt
14:53 openfly can a cmd.script target be a jinja file?
14:53 openfly blartftt cmd.run ?
14:54 felskrone i do a lot of regex-matching in my top.sls files for pillar. is it possible to use that top.sls-like matching in pillar-files that are usually just included in my top.sls?
14:54 felskrone blartftt: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.module.html#salt.states.module.run
14:55 openfly every time i see the word jinja I imagine a clan of red headed befreckled ninjas...
14:55 phw hahaha
14:55 Corey joined #salt
14:57 babilen blartftt: pkg.latest or pkg.uptodate (cf. https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html)
14:57 chamunks joined #salt
14:57 hasues left #salt
14:57 blartftt <openfly>: thanks for the suggestion, however i was hoping to do it natively with saltstack as described in the doco (https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.yumpkg.html). however I am not sure how to use this module within an SLS file...
14:58 openfly blartftt i'll be honest, i've had trouble re-running states.
14:58 openfly also ordered executions out of states is difficult with requisites
14:58 georgemarshall joined #salt
14:59 openfly so I am not sure what the best most salt forward way is to approach it
14:59 blartftt felskrone: thanks for that tip, however Im unsure of the syntax for using this in an SLS file. i think i have the syntax wrong: https://gist.github.com/anonymous/177c7af1590f412fbf76
14:59 openfly i do find myself using cmd.run and cmd.script a lot more though
14:59 hoonetorg joined #salt
15:03 blartftt i can run the command "salt '*' pkg.upgrade" directly. but how do i transpose that into an SLS file? i only started using salt about 3 hours ago and must be missing something obvious...
15:03 pbrooko joined #salt
15:04 openfly check out requires / requires_in , watch / watch_in , and especially listen / listen_in
15:04 clintberry joined #salt
15:04 openfly also check out include
15:04 openfly include can import a yaml target file as a state.
15:05 openfly and then you can call - sls:  as a flag on all of the above
15:05 openfly probelm I've had is, that only works once in the state file
15:05 openfly then it just... stops.
15:05 openfly also with requires / watch it screws up order of execution
15:05 blartftt does requires_in run before the action?
15:05 openfly in theory
15:05 openfly the FIRST time it runs it will
15:06 felskrone blartftt: reload your gist
15:06 openfly but if you have a loop or some extra logic after that first run it iwll not
15:06 thalleralexander joined #salt
15:06 felskrone the first line should be the identifier for your state
15:07 felskrone after that you define what should by run, in this case its a module.run, but can also be file.managed, pkg.installed, etc.
15:07 felskrone by = be
15:07 perfectsine joined #salt
15:08 * whytewolf sighs. pkg.uptodate actualy does the same thing as pkg.upgrade does. no need for module.run
15:08 whytewolf https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.uptodate
15:08 felskrone lots of ways lead to rome
15:08 blartftt felskrone: ahh that did it! thankyou! so every action/state needs to have an identifier? in this case the identifier could be anything (such as "my_upgrades")?
15:08 openfly which is a problem.
15:09 whytewolf yes, but things like module.run should be avoided if there is already a state module that does it. since the return on them acts differently
15:09 whytewolf module.run always runs. and pkg.uptodate actually checks if it needs to update first
15:09 mrosedale joined #salt
15:10 mohae joined #salt
15:10 openfly lots of roads leading to rome, none to Thurii, 2 heading to Antium end up in Carthage, and there's several roads that randomly select a city for you depending on what luggage you have.
15:10 mrosedale Hello. I'm new to salt, but I seem to be having an issue that only impacts centos 7 boxes. Here is teh error.
15:10 mrosedale TypeError encountered executing saltutil.sync_grains: get_pillar() got an unexpected keyword argument 'pillarenv'
15:11 phw mrosedale: did you recently update? i had that and it was gone after restarting the client service
15:11 dthom91 joined #salt
15:11 mrosedale It was updated recently.
15:11 mrosedale Let me try that and see if that gets better results.
15:12 openfly anyways... anyone know, if i use cmd.script and target a file on salt://  can I target a jinja file?
15:12 gotlot joined #salt
15:13 felskrone well, no one doing any regex-pillar matching in included pillar files? i cant believe all of you are doing all the matching just in your top.sls's :-)
15:13 whytewolf openfly: not directly [since it doesn't seem to have a template option] however it can run local scripts IIRC so you can put a script in place with a file.managed
15:13 openfly ugly but might work
15:14 mrosedale phw: restarting worked. So that is nice. Thanks for the help
15:14 openfly what's the preferred method for passing temporary auth credentials to a script with salt?
15:14 whytewolf wait, i read to fast. cmd.script DOES have a template option so yes you can do it directly
15:14 openfly in an obfuscated way?
15:14 Ztyx1 joined #salt
15:14 Ztyx1 left #salt
15:14 openfly whytewolf oh neat
15:14 blartftt thanks whytewolf for your suggestion, i have updated my file now and it now hopefully should act "Idempotently". updated gist: https://gist.github.com/anonymous/0e5195d1aa25875f02d5
15:14 openfly i'll try that then
15:15 openfly y'know... salt states remind me a lot of Makefiles.
15:15 openfly i can feel the same parts of my head hurting.
15:15 phw mrosedale: you are very welcome!
15:15 whytewolf well you are free to use the python renderer ;)
15:16 phw mrosedale:  i manage a couple of centos machines myself and run into the same thing recently :)
15:17 pratikmallya joined #salt
15:18 cresten joined #salt
15:18 blartftt ok next question! how do i use a require statement to refer to another state within an SLS file? :)
15:20 tkharju joined #salt
15:20 chamunks joined #salt
15:21 openfly you can do that with a '  - sls:' flag
15:21 openfly after you include the external yaml
15:21 openfly but i think you'll quickly discover the usefulness of that is SEVERLY limited
15:22 blartftt ahh sorry i should clarify, i meant how would i use it to refer to a state with the same file? to enforce order of execution. or is just the order it is typed within the file sufficient?
15:24 jba_ joined #salt
15:24 jba_ joined #salt
15:24 openfly that's not a simple discussion
15:25 openfly I have a stackoverflow open on something tangentially related:  http://stackoverflow.com/questions/32656152/in-saltstack-how-do-i-conditionally-and-iteratively-jinja-apply-an-include
15:25 openfly but check out the answer in there that was posted by Ryan Lane
15:25 openfly it gets into some of the order of execution stuff i think you are interested in.
15:26 otter768 joined #salt
15:26 blartftt cool, i will look into it. thanks for your assistance!
15:29 RandyT joined #salt
15:29 DammitJim joined #salt
15:30 DammitJim I set my tomcat6 service to watch for changes in a folder
15:30 pratikma_ joined #salt
15:30 DammitJim does that get reflected on the output when one runs a state or is that only visible in the logs?
15:30 DammitJim I just want to know that the service is getting restarted
15:31 openfly should be reflected
15:31 DammitJim hhhmmm... and there is nothing special about watching a folder, right?
15:31 openfly if it's restarting it should be seen as a change
15:31 DammitJim I did <foldername>/*
15:31 openfly i have a delay on my tomcat restart
15:31 openfly you can verify by time execution if you do the same
15:31 openfly as well
15:32 DammitJim oh
15:32 drawsmcgraw joined #salt
15:32 s_kunk joined #salt
15:32 DammitJim do I need to re-run the state for the service so that it "knows?"
15:32 iggy you can't just watch a random folder
15:32 drawsmcgraw So.... this returns a 404 -> https://repo.saltstack.com/yum/rhel/repodata/repomd.xml
15:33 drawsmcgraw Apologies if it's been covered before. First time I'm trying out the new repos and I'm on a CentOS 7 box
15:33 iggy you watch other states
15:33 DammitJim iggy, I'm watching: - file: /var/lib/tomcat6/webapps/*
15:33 TyrfingMjolnir joined #salt
15:33 openfly not sure if that works...
15:34 DammitJim oh
15:34 DammitJim then how do I monitor a folder?
15:34 DammitJim iggy, did you say one can watch other states?
15:34 murrdoc what creates /etc/salt/minion_id
15:34 iggy you watch other states (i.e. a file.managed or a file.recurse etc.)
15:34 iggy murrdoc: the minion on first start (if it doesn't exist)
15:35 murrdoc sucks
15:35 pbrooko joined #salt
15:35 iggy I _think_ it doesn't create it if id is set in the minion config
15:37 murrdoc u are thinking bootstrap ?
15:37 murrdoc or package ?
15:37 breakingmatter joined #salt
15:38 Akhter_ joined #salt
15:39 iggy it's in the salt code
15:40 * openfly adds bounty to stackoverflow
15:44 murrdoc cant find
15:44 tanta_g joined #salt
15:45 felskrone1 joined #salt
15:46 adelcast joined #salt
15:46 hoonetorg hi which system pillars are available (not ext_pillars), i remember there were multiple, but I can't find in the docs
15:46 DammitJim joined #salt
15:46 hoonetorg ?
15:47 kawa2014 joined #salt
15:48 DammitJim maybe I missed putting: service.running:
15:49 JDiPierro joined #salt
15:49 malinoff joined #salt
15:50 cwyse joined #salt
15:52 iggy murrdoc: https://github.com/saltstack/salt/blob/develop/salt/config/__init__.py#L2657
15:52 iggy that help?
15:53 murrdoc iggy:  send pull to turn this off ?
15:53 murrdoc please
15:54 iggy for us or upstream?
15:54 murrdoc us
15:54 lexter joined #salt
15:54 iggy okay
15:54 iggy guess I should send something upstream to document that too
15:57 dopesong joined #salt
16:03 petersson joined #salt
16:03 malinoff joined #salt
16:04 xDamox joined #salt
16:04 stephen144 joined #salt
16:05 aristedes joined #salt
16:06 gotlot whats a good way to bootstrap a minion?  for example, if I have a pillar file that uses a custom grain it will fail to render until that grain is set, but trying to run the state to set that grain fails, because the pillar fails to render.
16:07 openfly you might be able to do something with orchestration runner.. not sure that's the right way to be doing that though
16:07 gotlot whats an alternative?
16:07 openfly offhand not sure.
16:08 openfly maybe a state that JUST sets the grain
16:08 gotlot thats all  this state does
16:08 Bryson joined #salt
16:08 Deevolution Anyone ever have a salt function call sync_all prior to executing itself?
16:08 gotlot it doesnt depend on the pillar that is failing at all
16:09 openfly gotlot i'm confused by what you mean
16:10 openfly maybe put a gist together?
16:10 gotlot ok
16:10 snarfy joined #salt
16:10 iggy Deevolution: depending on what it is, it may or may not help (i.e. a minion won't necessarily reload everything when told to)
16:12 toastedpenguin joined #salt
16:16 Deevolution iggy:  Fair enough.  Trying to make an execution module more robust in some circumstances.
16:17 petersson would the execution module to each minion profile apply our could there be exection profiles based on the operatinng system?
16:17 petersson good morning sunshine
16:17 gotlot openfly: https://gist.github.com/anonymous/478c457be90308e101a8   this is rough
16:18 breakingmatter joined #salt
16:18 dthom91 joined #salt
16:22 seatan joined #salt
16:22 gotlot i assumed if they grain wasnt set already, that the default would be used.  But the pillar fails anyway
16:26 colonD joined #salt
16:26 RandyT joined #salt
16:27 petersson there is no error message for the pillar failing
16:28 RedundancyD joined #salt
16:29 gotlot_ joined #salt
16:29 forrest joined #salt
16:29 mapu joined #salt
16:32 evocore left #salt
16:32 aparsons joined #salt
16:34 pravka joined #salt
16:34 nicksloan would salt be agreeable to a boto_secgroup.rule_present and boto_secgroup.rule_absent?
16:35 murrdoc yes
16:35 nicksloan It would be really helpful for me to create the groups first and add some rules later.
16:36 katyucha_ joined #salt
16:37 nicksloan I suspected as much. If no one else has "claimed" it, I might tackle that myself.
16:37 katyucha_ joined #salt
16:38 Gareth o/
16:39 Ahlee Gareth: I got you covered, \o
16:39 murrdoc \o/
16:40 writtenoff joined #salt
16:45 jodv joined #salt
16:45 whytewolf \m/   -.-   \m/
16:47 malinoff joined #salt
16:48 davisj drawsmcgraw: s/rhel/rhel6/
16:48 malinoff joined #salt
16:48 drawsmcgraw davisj: Or 'rhel7' for CentOS 7 ?
16:49 drawsmcgraw Also, thanks. I copied that from the docs, though (I think?)
16:49 ajw0100 joined #salt
16:50 Akhter joined #salt
16:50 mariusvldr joined #salt
16:51 malinoff joined #salt
16:52 davisj drawsmcgraw: yup, they have rhel{5,6,7} covered.
16:52 drawsmcgraw Okay thanks. I'll have to double-check the docs. I could swear I copied it straight from there but it's possible I didn't read the directions :/
16:53 mariusvldr hi folks , i'm new on salt and I have probably a dump question .  I'm trying to install a tomcat and deploy a war into it via salt
16:53 davisj hmm. I didn't read the docs, just poked around http://repo.saltstack.com/
16:54 mariusvldr I have created a base environment , with a top.sls file which contain to states : -tomcat and -deploy
16:55 mariusvldr after that I have the tomcat.sls file  and deploy.sls files doing the necessary steps for the instalation and war deployment
16:55 notnotpeter joined #salt
16:55 mariusvldr the problem is that when I run state.higstate I get something like :     No matching sls found for 'deploy' in env 'base'
16:55 Ztyx joined #salt
16:56 mariusvldr could you please put me on the right way here ?
16:56 tanta_g that would correspond to /srv/salt/deploy.sls in a default setup
16:56 tanta_g or /srv/salt/deploy/init.sls
16:58 mariusvldr just to see if I correctly understood  I need to have in the salt folder (equivalent of base for me) : /deploy/init.sls   , /tomcat/init.sls  and the top.sls files  ?
17:00 penguin_dan joined #salt
17:02 dthom91 joined #salt
17:02 cpowell_ joined #salt
17:03 berserk joined #salt
17:03 Ztyx joined #salt
17:05 berserk joined #salt
17:05 mariusvldr found my mistake , stupid one
17:05 mariusvldr thank you !
17:06 murrdoc stay stupid my friend
17:06 murrdoc i mean
17:07 murrdoc stay salt-y my friend
17:07 Fiber^ joined #salt
17:08 malinoff_ joined #salt
17:12 malinoff_ joined #salt
17:17 gotlot_ the grains.present function is very unreliable, does anyone else even use it?
17:17 ageorgop joined #salt
17:18 petersson impressive. is there a tool for all three salt,puppet,ansible to deploy a war file?
17:18 petersson a maanger of maangers
17:19 fyb3r joined #salt
17:19 petersson you know there are multiple automation tools enterprise infrastructure. admit it. relization is very difficult.
17:19 petersson especially if its work related
17:19 cresten joined #salt
17:19 XenophonF petersson: you can use a salt file.managed state to push the war file to a server, and then use a service.running state to restart tomcat or jboss or jetty or whatever (and have that service state only fire when the file changes); the same is true of puppet and ansible, but i don't know how to use those
17:20 fyb3r so, still having issues getting pillars working properly.    https://gist.github.com/fyb3r/c2e832e17ad61b648dcf    can anyone explain that to me? even after restarting both minion and master, and refreshing the pillar manually.   the minion's pillar.raw has the True result (which is correct)
17:20 petersson an addiontal container (abstract) for the next tool would be good too
17:20 petersson to ensure addiontal 1-2 years support
17:20 petersson its always the same
17:21 petersson watson, would finally make this interesting 80/20. 80% salt, 20% brains -
17:21 XenophonF petersson: i'm not really following you
17:22 petersson i know
17:23 XenophonF fyb3r: what does `salt d0509978c46c pillar.get connectus` return?
17:24 fyb3r False
17:24 aw110f joined #salt
17:24 XenophonF fyb3r: so what's the name of the file that sets `connectus` to True?
17:24 fyb3r its an ext_pillar
17:25 cpattonj joined #salt
17:25 XenophonF fyb3r: you'll need to include a lot more detail than just that
17:25 fyb3r lol momen, ill get gists of the files
17:25 fyb3r moment*
17:26 petersson auto generation of strategy working for the FED it would have been helpful to have a standard systems managmenet protocol for salt,puppet,ansible
17:26 petersson to create these automatically
17:26 petersson http://goo.gl/yzfmnT
17:26 cpattonj How do you restart a service for a file deletion involving file.absent? I've tried watch and require but neither detect the change from file.absent because the result is "None" when a file is set for deletion.
17:26 petersson https://fedpaymentsimprovement.org/wp-content/uploads/strategies-improving-us-payment-system.pdf
17:26 fyb3r here is the ext_pillar: https://gist.github.com/fyb3r/3a41576d839c98cbe365
17:26 petersson its the brains
17:26 petersson the brains not the plumbing
17:26 cpattonj I've also tried onchanges
17:26 petersson again and and and again
17:27 otter768 joined #salt
17:27 fyb3r here is the master config: https://gist.github.com/fyb3r/157f1ed8682af039de10
17:27 XenophonF basepi: petersson might be a bot
17:27 XenophonF basepi: i definitely think it's spamming the channel - those links look suspicious
17:27 petersson well until 20% brains is bought
17:27 petersson this is rediculous for 2015
17:27 petersson was kicked by basepi: petersson
17:27 cpattonj yay
17:27 basepi XenophonF: thanks.
17:28 XenophonF basepi: np - never thought that when it finally became possible to talk to AIs, that all they'd want to talk about were scams :(
17:28 basepi ha!
17:29 cpattonj anyone catch my question in between all the spam?
17:29 fyb3r im just stumped that the minion itself shows to have it loaded properly, but on the master pillar.raw always comes back with the incorrect result.   and I cannot run a salt -I 'connectus:True' test.ping either. Its getting no response back >_>
17:30 XenophonF fyb3r: clearly, something's wrong with your custom pillar, but to debug it, I think you're going to need to add some debug logging
17:30 teebes joined #salt
17:31 malinoff joined #salt
17:31 XenophonF best i can offer is to point you toward salt/grains/core.py for an example of how to add logging to your code
17:32 fyb3r ah boy.  >_> dunno where to begin lol. I figured maybe it was something in the behavior of executing an execution module within a pillar
17:32 XenophonF fyb3r: here's how i added logging to a custom execution module that I wrote - https://github.com/irtnog/active-directory-formula/commit/ecab868ac79522c3927dcf831ab59e1ed10f4b77
17:33 XenophonF fyb3r: are you expecting the pgrep command to get executed on your minions?
17:33 fyb3r im just trying to get the master to execute pgrep on each minion by using the minion_id that is passed to ext_pillar()
17:34 fyb3r so that when I call -I connectus:True  I can use that as a dynamic way of finding which minion is running that service
17:34 druonysus joined #salt
17:34 druonysus joined #salt
17:34 XenophonF fyb3r: take a look at salt mine
17:36 fyb3r -.-  i knew i should of read more on these.   this looks like its what im after
17:36 fyb3r cheers Xeno :)
17:36 XenophonF fyb3r: ah good glad that will work for you
17:39 cpattonj Is it even possible to watch file.absent to invoke a service iff the file is removed?
17:41 mapu joined #salt
17:42 szhem joined #salt
17:42 stanchan joined #salt
17:44 root joined #salt
17:46 XenophonF cpattonj: why wouldn't it be? salt.states.file.absent returns changes data like any other state.
17:46 baweaver joined #salt
17:48 PI-Lloyd joined #salt
17:53 bhosmer_ joined #salt
17:55 druonysus joined #salt
17:55 druonysus joined #salt
17:56 viq joined #salt
17:59 cpattonj Xenophonf: I'm showing changes as empty when a file is set for removal actually
18:00 baweaver joined #salt
18:01 baweaver joined #salt
18:02 kusams joined #salt
18:03 flyx I have a cmd.run state which creates some files. those are specified with "- creates: ...". in another state, I require those files with "- require:  - file: ...", but it says it doesn't find the requisite.
18:03 knite joined #salt
18:03 cresten joined #salt
18:03 flyx what am I doing wrong?
18:04 denys joined #salt
18:04 knite I have a salt master that's not on the public internet, and I have some VMs which are. the master can reach the VMs via ssh, but the VMs can't reach the master until they've been joined to our VPN and configured.
18:05 knite because the master can reach the VMs, is there any way to do the initial setup with salt?
18:05 perfectsine joined #salt
18:06 indispeq Hello! In the salt presence reactor, is there a polling interval for checking whether minions have connected or disconnected?
18:06 indispeq or does it get triggered immediately as a minion appears?
18:06 stanchan joined #salt
18:07 indispeq I am spawning 18 minions and having them auto-register and then execute a highstate and a DNS update when they appear in presence/new, but it's taking forever. Is this because reactor is single-threaded?
18:07 ajw0100 joined #salt
18:07 larsfronius joined #salt
18:09 FOCer joined #salt
18:09 FOCer left #salt
18:11 elsmo joined #salt
18:12 GreatSnoopy joined #salt
18:12 davisj knite: check out salt-ssh and/or saltbootstrap.sh
18:13 bhosmer joined #salt
18:14 dthom91 joined #salt
18:14 knite davisj: isn't bootstrap for, well, just downloading and installing salt?
18:16 knite but salt-ssh looks like exactly what I want!
18:17 flyx my config looks like this: https://gist.github.com/flyx/7dbb3d3d5df9c7249982
18:20 krymzon joined #salt
18:21 dthom91 joined #salt
18:24 hal58th joined #salt
18:25 whytewolf flyx: require and watch use [function]: [state id] as what the watch, they don't watch real world items only items that are state states.
18:26 hal58th Does anyone have an ETA on the 2015.5.5 package for ubuntu?
18:27 flyx whytewolf: so I have to require the cmd state… thanks
18:28 whytewolf flyx: yes. I would give it an easyer id to require. and then use - name for the actual command
18:28 druonysus joined #salt
18:32 sirex joined #salt
18:34 cyborg-one joined #salt
18:34 KyleG joined #salt
18:34 KyleG joined #salt
18:34 MeltedLux joined #salt
18:37 gotlot_ im about to give up on salt, i dont understand how i am supposed to use grains/pillars when stuff like this happens https://gist.github.com/anonymous/6f6dd0c175325d169212
18:40 tanta_g it works fine gotlot_
18:41 hal58th You have a test.sls pillar file with a value inside it?
18:41 tanta_g looks like that is expecting a tuple with a key:value pair
18:42 gotlot joined #salt
18:44 druonysuse joined #salt
18:48 cpattonj Can anyone point me in the direction of restarting a service if a file is deleted as a result of file.absent?
18:48 kusams joined #salt
18:57 mariusvldr hello , I'm trying to deploy a war directly from artifactory  with artifactory.downloaded, but when run my state  I get "Minion did not return. [No response]"
18:57 mariusvldr the same minion work with test.ping
18:57 zmalone If you have a long operation, the minion won't return prior to the timeout
18:58 mariusvldr it have to download a 3 MB war ... should not be too long , any way to bypass that timeout ?
18:58 zmalone https://docs.saltstack.com/en/latest/topics/troubleshooting/master.html#salt-master-doesn-t-return-anything-while-running-jobs
18:59 zmalone the minion could very well have finished successfully, but the message queue publication model means that after a given amount of time, the master stops looking for the completion message in the queue
19:01 Aleks3Y joined #salt
19:01 mariusvldr thank you , I'll have a look , the minion doesn't complete the job ...
19:02 notnotpeter joined #salt
19:03 Eureka703 joined #salt
19:09 whytewolf gotlot: try salt-call -l debug saltutils.refresh_pillar
19:09 ajw0100_ joined #salt
19:10 whytewolf on the minion
19:10 timoguin joined #salt
19:11 berserk joined #salt
19:11 gotlot whytewolf: its a windows minion, and it says salt-call isnt there
19:14 thalleralexander joined #salt
19:14 PeterO_ joined #salt
19:14 whytewolf salt-call should still be there somewhere.
19:15 dthom91 joined #salt
19:15 knite so I'm learning about pillars and having a minor issue. I have a pillar with the key resolver and sub-key nameservers, and verified by running pillar.items. but my salt isn't working: searchpaths: {{ pillar.get('resolver:searchpaths', [grains.get('domain'),]) }} with search {% for searchpath in searchpaths %}{{ searchpath }} {% endfor %} in my file template.
19:16 gotlot i found it in C:/salt ,  but saltutils.refresh_pillar is not available
19:17 whytewolf sorry my bad. put plural when it shouldn't be saltutil.refresh_pillar
19:17 jalbretsen joined #salt
19:18 gotlot ok that ran
19:18 whytewolf any errors?
19:18 tanta_g you have the syntax wrong knife, it's salt['pillar.get']('search:keys:here')
19:18 gotlot no errors
19:19 knite tanta_g: I've seen that form before in some of the docs. when should I use that syntax and when can/should I use pillar.get directly? the pillar.get version didn't error, so I assumed it was fine.
19:19 whytewolf okay, try the pillar.item again
19:19 tanta_g I think pillar.get is only for the CLI invocation
19:20 whytewolf tanta_g: all execution modules can be called through the salt[module.function'] route
19:20 bastiandg joined #salt
19:20 tanta_g within Jinja it's either pillar['key1']['subkey1'] or salt['pillar.get']('key1:subkey1')
19:21 knite tanta_g: hm...but in the same state, I have another use of pillar.get which works: nameservers: {{ pillar.get('resolver:nameservers', ['8.8.8.8','8.8.4.4']) }}
19:21 knite actually, I suppose I know it doesn't work, because it's using the default nameservers, ha.
19:22 whytewolf knite: thats only working on a technicalicity. it should be salt['pillar.get']()
19:22 gotlot i think i need to explain from the start.  I am trying to set some grains like 'init' that gets set on the first highstate run, subsequent highstates would use a different bunch of states if init:true
19:23 rm_jorge joined #salt
19:24 tanta_g then you could do something like {% set init = salt['grains.get']('init', False) %} and later evaluate something like {% if init %}
19:24 Ztyx joined #salt
19:24 tanta_g that's probably not the best style but it's how I usually handle cases like that
19:24 whytewolf gotlot: ahhh for that kind of bootstrapping i either use reactors or orchestration
19:25 knite hm...or set a default in the {% set ... %} and then just use it with {{}}.
19:25 knite that sounds like it might be the most readable. front load the pillar reads at the top of the file.
19:25 tanta_g yeah, I like that pattern
19:25 knite #salt approved, or bad idea?
19:25 gotlot well the problem is, init gets set to true, but salt doesnt notice or something.  in my top.sls i have a section for it init:true, but that never runs
19:26 whytewolf gotlot it won't notice on the same run
19:26 gotlot subsequent runs too
19:27 otter768 joined #salt
19:28 whytewolf then something else is going on cause I have a working setup that relys on exactly what you are talking about. I set a grain using a orchestration [not a highstate cause like i said it doesn't work on the same run] then have pillar pointed to the grain for a lot of different setups. [except for security stuff. like passwords, cause you can't count on grains being secure']
19:28 gotlot https://gist.github.com/anonymous/b3263dcc5cae7bb249ea
19:29 gotlot see im getting very strange behavior
19:30 protoz joined #salt
19:32 whytewolf sorry, bbl have to actualy do my day job for once
19:32 tmclaugh[work] joined #salt
19:33 pentabular joined #salt
19:35 DanyC joined #salt
19:38 thalleralexander joined #salt
19:42 * dingo stares at whytewolf while he works
19:42 zmalone I got curious about 2015.5.5 on Ubuntu, because it is starting to worry me, and I found https://github.com/saltstack/salt/issues/27159
19:42 zmalone I know it comes up daily in #salt at this point
19:43 zmalone That doesn't really cover 2015.5.5, but maybe that'll just get skipped as an ubuntu version
19:44 dingo i don't speak for anybody, but i would assume prior versions would be skipped
19:44 dingo by the comment there, especially the last one
19:44 * dingo resumes staring
19:44 zmalone That leaves the last 2015.5.5 version as unavailable, and I think 2015.8 has some major changes.
19:45 murrdoc yeah doesnt look like joe healy is gonna make 2015.5
19:45 murrdoc .5
19:49 theologian joined #salt
19:50 zmalone Does anyone in here pay for Enterprise? Outside of the web ui, what do you get? It's a little unclear from the marketing site.
19:50 pentabular joined #salt
19:51 zmalone The place I work runs into a lot of Salt bugs, and we'd be willing to pay to get things fixed in an expedited way, if that's part of the enterprise offering, but we don't need a webui at this point.
19:53 ageorgop joined #salt
19:54 DammitJim zmalone, I spoke with someone at the enterprise solution and they would address the bugs if found
19:54 khaije|mentat joined #salt
19:55 protoz joined #salt
19:55 DanyC DammitJim: they will address it and provide a patch or will say "fixed but wait for next release" ?
19:55 zmalone Thanks, I'll follow up offline with the sales group.
19:55 DammitJim Do you need a contact?
19:55 DammitJim I don't use them, but they were very nice explaining things to me
19:57 DanyC DammitJim: the reason i asked is because if the enterprise offer provide a patch should a bug be found w/o waiting for a formal release - i.e 6 months - then is defiantly worth it looking into it
19:58 kusams_ joined #salt
19:58 DammitJim yeah, I'm pretty sure they said they would fix the bug
20:00 druonysus joined #salt
20:00 protoz joined #salt
20:03 dthom91 joined #salt
20:04 protoz joined #salt
20:04 Ahlee We got expidited support and bug fixes. Our issues were prioritized, addressed, and patches supplied
20:05 DanyC Ahlee: thx for sharing the info, good to know
20:05 Ahlee git diffs as that was the format I requested
20:05 kant joined #salt
20:06 xDamox joined #salt
20:06 protoz joined #salt
20:07 felskrone joined #salt
20:08 keimlink joined #salt
20:09 RandyT joined #salt
20:09 kant hi
20:10 Grokzen joined #salt
20:11 kant I'm having trouble with pillar. I add an item in pillar's top.sls for a host which is basically "hostname.subdomain.domain.com", and try to assign to it some sls file. it works with another host which is just a hostname, but not with the one with dots in the hostname.
20:12 kant https://www.zerobin.net/?39a1891d499e3875#NHcQS7BnhLdXguJjfcBTk4INN+U68jdkOSn76VFl9eM=
20:13 kant the host is detected and works for remote execution, but I can't make it take the info in monitor.sls
20:14 XenophonF left #salt
20:15 protoz joined #salt
20:15 giantlock joined #salt
20:16 conan_the_destro joined #salt
20:17 relidy joined #salt
20:17 protoz joined #salt
20:20 protoz joined #salt
20:20 kidneb joined #salt
20:24 helgi joined #salt
20:27 pentabular joined #salt
20:33 khaije|mentat joined #salt
20:33 hal58th kant check its minion id with "sudo salt-call grains.item id" since that's what you are targeting against
20:35 svinota joined #salt
20:39 kant I checked, it's as I described
20:42 helgi joined #salt
20:43 yml joined #salt
20:44 pentabular joined #salt
20:45 tesaf joined #salt
20:45 MaZ- joined #salt
20:46 twork i'm using the 'users' pillar, and trying to extend the 'vsftpd' pillar to to create files named for a subset of users. trivially, i thought of adding a field in the vsftpd sls to the tune of, 'if users:vsftpd_config YES', then [create the file]. but... is it kosher to have states refer to other states that way?
20:47 protoz joined #salt
20:48 khaije|mentat I'm not sure I understand the idea of a formula... are people here able to make use of them as is?
20:48 twork correction: using te 'users' formula, 'vsftpd' formula.
20:48 twork khaije|mentat: i sure do!
20:48 kevin-wk kant: a dot in a reference refers to a subdirectory
20:49 kant yes, I know, but the dots here are part of the hostname
20:49 twork khaije|mentat: once i started to understand things better, the 'users' formula has been a lifesaver for me
20:49 kant not slashes in the path of a pillar SLS file
20:49 kevin-wk are you only using the dots in the targeting portion of the pillar sls?
20:49 kant yes
20:50 kevin-wk hmm odd
20:50 kant see my example: https://www.zerobin.net/?39a1891d499e3875#NHcQS7BnhLdXguJjfcBTk4INN+U68jdkOSn76VFl9eM=
20:50 kant it's not those exact names, but it's *very* similar
20:50 kevin-wk i learned the hard way about using hostnames/domains in pillar sls
20:50 kant the "- monitor" line for somehostname works
20:50 druonysus joined #salt
20:51 kant the information is saved into pillar
20:51 kant but not for otherhostname.subdomain.domain.com
20:51 twork khaije|mentat: one caveat, formulas inevitably make certain assumptions about how you set up a system; if they've guessed wrong in your case, you have to adjust. for instance at my site we have a lot of HOME's that aren't under /home.
20:51 kevin-wk check grains['id'] on that minion
20:51 kant already did
20:51 kevin-wk i guess someone already gave you that suggestion...
20:52 kevin-wk did you reload pillar?
20:53 kant salt * saltutil.refresh_pillar <--- did this
20:54 kevin-wk i'm grabbing here, but did you use a tab instead of spaces on the last line of your pillar top.sls?
20:55 w1gz left #salt
20:55 kant \*
20:55 kant nope, all spaces
20:56 baweaver joined #salt
20:56 kant gotta go home, I'll be back tomorrow
20:59 twork re. my own question further up about includes/depends between formulas: never mind, and forgive my brain fuzz.
21:00 druonysus joined #salt
21:03 khaije|mentat interesting to know two
21:03 khaije|mentat twork:
21:03 theologian joined #salt
21:03 adelcast joined #salt
21:05 traph joined #salt
21:05 dthom91 joined #salt
21:07 theologian joined #salt
21:07 pentabular joined #salt
21:08 cberndt joined #salt
21:08 Akhter joined #salt
21:09 larsfronius joined #salt
21:10 protoz joined #salt
21:16 perfectsine joined #salt
21:17 jodv joined #salt
21:18 khaije|mentat twork: when you add a formula, how do you include the formulas into your configuration... do you copy the files in, use a gitfs-root, or perhaps something else?
21:19 d_j_giles joined #salt
21:19 protoz joined #salt
21:21 protoz joined #salt
21:25 protoz joined #salt
21:25 jodv joined #salt
21:27 khaije|m` joined #salt
21:28 clintberry joined #salt
21:28 otter768 joined #salt
21:32 ajw0100 joined #salt
21:34 protoz joined #salt
21:35 zwi joined #salt
21:36 anotherZero joined #salt
21:36 knite am I using ext_pillar the Right Way? files in /srv/salt/pillar/hosts/<name>/<file>, files.sls in /srv/pillar looks like https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.file_tree.html, and /srv/pillar/top.sls sources that state?
21:36 knite er, mixed up a couple of paths, but you get the idea.
21:37 protoz joined #salt
21:38 protoz joined #salt
21:38 troyready joined #salt
21:38 adelcast joined #salt
21:40 knite because the output from pillar.items isn't what I expected...
21:40 protoz joined #salt
21:40 knite I get ext_pillar: |_: file_tree: root_dir. no idea what's up with the |_ key.
21:41 knite instead of the files: {} I was expecting.
21:42 protoz_ joined #salt
21:42 traph joined #salt
21:46 druonysus joined #salt
21:46 druonysus joined #salt
21:48 colonD joined #salt
21:50 druonysuse joined #salt
21:51 protoz joined #salt
21:51 daed joined #salt
21:55 pdayton1 joined #salt
21:56 protoz_ joined #salt
21:57 protoz joined #salt
21:58 teebes joined #salt
22:00 pdayton joined #salt
22:01 protoz joined #salt
22:03 baweaver joined #salt
22:07 Ac-town is there a best way to deal with two pillars with the same key in two different location? I'd like to merge them some how. ex: postgres: acls: - blah in one location with some more defined elsewhere
22:08 alainv joined #salt
22:09 pdayton joined #salt
22:11 pdayton joined #salt
22:12 ecdhe joined #salt
22:16 forrest Ac-town: the first pillar would be overwritten in that scenario
22:17 hal58th Ac-town https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-source-merging-strategy
22:17 forrest oh I'm thinking from command line, derp
22:17 forrest thanks hal58th
22:17 hal58th welcome
22:18 aristedes joined #salt
22:18 protoz joined #salt
22:18 aristedes left #salt
22:21 Ac-town thanks i'll take a look
22:21 khaije|m` left #salt
22:22 aparsons joined #salt
22:23 elektrix joined #salt
22:26 RandyT joined #salt
22:27 breakingmatter joined #salt
22:28 sgargan joined #salt
22:29 protoz joined #salt
22:33 jodv joined #salt
22:35 jodv joined #salt
22:37 nate_c joined #salt
22:40 trisell joined #salt
22:42 baweaver joined #salt
22:42 trisell So super simple question. I want to manage multiple vlans on a single eth interface. Over multiple hosts. How do I set one network settings file yet give static ips to each host?
22:42 jodv joined #salt
22:44 opensource_ninja joined #salt
22:44 jodv joined #salt
22:49 jodv joined #salt
22:50 pravka joined #salt
22:50 adelcast1 joined #salt
22:51 bfoxwell joined #salt
22:51 RandyT joined #salt
22:52 murrdoc https://repo.saltstack.com/#ubuntu
22:52 murrdoc is still 404
22:53 iggy didn't they say they weren't doing Ubuntu for now?
22:54 TaiSHi wut?
22:54 pentabular1 joined #salt
22:56 murrdoc wut ?
22:57 murrdoc basepi:  said ubuntu was soon ?
22:57 pratikmallya joined #salt
22:57 murrdoc need 2015.5.5 man
22:58 iggy do you? do you?
22:58 mapu joined #salt
22:58 TaiSHi murrdoc: stop begging
22:58 * TaiSHi whiplashes murrdoc
22:58 murrdoc we do
22:58 TaiSHi Now behave!
22:58 murrdoc i have clearance to goto 2015.5.3
22:59 murrdoc but joe only put .3 up there
23:04 RandyT joined #salt
23:07 bhosmer joined #salt
23:07 murrdoc base of pi has ignored me
23:07 murrdoc :(
23:08 TaiSHi lol
23:08 kevinquinnyo joined #salt
23:09 kevinquinnyo left #salt
23:10 iggy There really should be more than one person doing that stuff
23:10 iggy or large organizations should roll their own packages
23:13 whytewolf it really should be a automated process. when a new release is cut jenkins should just run a final test, on pass spit out the packages
23:14 iggy agreed
23:16 mosen joined #salt
23:18 knite joined #salt
23:20 Edgan I roll my own packages. Since I end up writing pull requests and they take time to get in
23:21 sgargan joined #salt
23:26 ocdmw joined #salt
23:26 ajw0100 joined #salt
23:29 baweaver joined #salt
23:29 otter768 joined #salt
23:35 mohae joined #salt
23:36 dthom91 joined #salt
23:38 JDiPierro joined #salt
23:40 bhosmer joined #salt
23:49 baweaver left #salt
23:52 zwi joined #salt
23:53 dthom91 joined #salt
23:56 aristedes joined #salt
23:57 aristedes left #salt
23:59 ajw0100_ joined #salt
23:59 pentabular joined #salt
23:59 Star_ joined #salt

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