Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2015-12-02

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

All times shown according to UTC.

Time Nick Message
00:01 PredatorVI Yeah, that's the problem.  The HTTP request returns '200' which is a success, but the BODY of the response should contain the entire output of the salt commands.  You must parse it to find the errors.  I've uploaded a GIST of my Groovy Salt Orchestration script here:  https://gist.github.com/PredatorVI/f7e76f37e886152ad0b6
00:02 PredatorVI I'm hoping there is a better way, but I doubt it.
00:03 PredatorVI I'm new to Groovy so the script is still a work in progress :)
00:03 PredatorVI They key bits start around line 74
00:04 PredatorVI Looping through the JSON nodes and looking for stateValues.result
00:10 libertyy ah, i see. I'm using the /hook, which doesn't seem to give back the response in the body. Will try using /run like you are using in your groovy script.
00:11 PredatorVI I  think that was/is for custom web hooks.  But I've not used it
00:12 PredatorVI *web hooks for the reactor system*
00:12 whytewolf webhooks fire off events. kind of like a fire and forget methodology, to get return data you would need to use a returner and a central place to put the logs so you can do a kind of look up afterwords
00:14 libertyy gotcha. makes more sense when put that way :-)
00:21 cyborg-one joined #salt
00:21 adendrag joined #salt
00:24 zmalone joined #salt
00:24 afics joined #salt
00:27 pbx_ joined #salt
00:38 thehaven joined #salt
00:38 zmalone joined #salt
00:39 RandyT joined #salt
00:41 clintberry joined #salt
00:44 otter768 joined #salt
00:51 bfoxwell joined #salt
00:56 oida joined #salt
01:06 shaggy_surfer joined #salt
01:14 baweaver joined #salt
01:16 kalessin joined #salt
01:17 denys joined #salt
01:17 breakingmatter joined #salt
01:22 aw110f joined #salt
01:26 amcorreia joined #salt
01:31 tristianc joined #salt
01:34 larsfronius joined #salt
01:35 burp joined #salt
01:37 clintberry joined #salt
01:40 markm_ joined #salt
01:44 clintber_ joined #salt
01:45 tkharju joined #salt
01:56 Edgan joined #salt
02:06 justanotheruser joined #salt
02:16 zmalone joined #salt
02:17 drawsmcgraw left #salt
02:17 catpigger joined #salt
02:18 breakingmatter joined #salt
02:22 jaybocc2 joined #salt
02:23 burp joined #salt
02:25 yidhra_ joined #salt
02:30 jaybocc2 joined #salt
02:31 hal58th joined #salt
02:38 shaggy_surfer joined #salt
02:45 zmalone joined #salt
02:45 otter768 joined #salt
02:47 beardedeagle joined #salt
02:49 jaybocc2 joined #salt
02:50 hightekvagabond joined #salt
02:51 beardedeagle joined #salt
02:51 quasiben joined #salt
02:53 falenn joined #salt
02:59 TyrfingMjolnir joined #salt
03:00 evle joined #salt
03:01 racooper joined #salt
03:02 kawa2014 joined #salt
03:06 ageorgop joined #salt
03:13 otter768 joined #salt
03:14 MindDrive joined #salt
03:14 brianfeister joined #salt
03:21 favadi joined #salt
03:22 solidsnack joined #salt
03:24 colegatron joined #salt
03:28 solidsnack joined #salt
03:35 TyrfingMjolnir joined #salt
03:42 synical joined #salt
03:46 snarfy joined #salt
03:47 malinoff joined #salt
03:56 solidsnack joined #salt
04:05 brianfeister joined #salt
04:05 beardedeagle huh, master_alive_interval appears twice in the minion conf
04:06 Bryson joined #salt
04:12 falenn joined #salt
04:20 breakingmatter joined #salt
04:21 ramteid joined #salt
04:25 joehh joined #salt
04:27 zmalone joined #salt
04:29 otter768 joined #salt
04:55 danlsgiga joined #salt
04:56 anmolb joined #salt
04:57 malinoff joined #salt
04:57 danlsgiga Hey guys... Quick question... Is the cmd_full_return fully supported in the Python Client? I'm asking this because I didn't find it any references of it in the documentation
04:58 danlsgiga Using the cmd function seems to return a null or empty dict
05:05 kshlm joined #salt
05:08 falenn joined #salt
05:11 rdas joined #salt
05:19 av_ joined #salt
05:35 larsfronius joined #salt
05:36 oida joined #salt
05:46 cyborg-one joined #salt
05:49 jaybocc2 joined #salt
05:56 jaybocc2 joined #salt
05:58 clintberry joined #salt
06:03 MasterNayru joined #salt
06:04 brianfeister joined #salt
06:05 solidsnack joined #salt
06:08 solidsnack joined #salt
06:16 multiscan joined #salt
06:20 breakingmatter joined #salt
06:23 burp joined #salt
06:31 jxm_ joined #salt
06:33 anmolb joined #salt
06:33 keimlink joined #salt
06:36 favadi joined #salt
06:51 impi joined #salt
06:51 otter768 joined #salt
06:53 multiscan joined #salt
06:58 solidsnack joined #salt
07:10 AndreasLutro joined #salt
07:10 traph joined #salt
07:12 felskrone joined #salt
07:13 solidsnack joined #salt
07:24 rotbeard joined #salt
07:24 colegatron Hi. I am using the ppa:saltstack/salt and I get installed 2015.5.3. I've tried to use ppa:saltstack/salt2015-8 but it does not exists
07:25 colegatron there is any reason to do not get installed 2.8.x using saltstack/salt ppa? Are they not a stable enough versions?
07:32 burp joined #salt
07:36 burp s
07:44 colegatron Hi. I am using the ppa:saltstack/salt and I get installed 2015.5.3. I've tried to use ppa:saltstack/salt2015-8 but it does not exists. there is any reason to do not get installed 2.8.x using saltstack/salt ppa? Are they (2.8.x) not stable enough versions?
07:48 solidsnack joined #salt
07:51 hightekvagabond joined #salt
07:52 AndreasLutro colegatron: saltstack stopped using the ppa since 2015.8, see https://docs.saltstack.com/en/latest/topics/installation/ubuntu.html
07:53 brianfeister joined #salt
07:56 irctc471 joined #salt
08:01 irctc471 Hi Guys
08:02 irctc471 I am trying to create a template file using jinjja
08:02 irctc471 I mean file.managed with template : jinjja
08:02 irctc471 I have added some data to my grains
08:03 irctc471 I am able to  get  {{ grains['sudoers'] }}
08:03 irctc471 for accessing salt-call grains.get sudoers:User_Aliases  , how do I add syntax
08:04 irctc471 {{ grains['sudoers:User_Aliases'] }} this one is not working
08:08 jaybocc2 joined #salt
08:08 aw110f joined #salt
08:08 AndreasLutro salt['grains.get']('sudoers:user_aliases')
08:11 aw110f_ joined #salt
08:15 impi joined #salt
08:16 brianfeister joined #salt
08:17 colegatron AndreasLutro, ok. I thought were two alternative ways to do it with the same result. I'll go through wget/sources.list way. tnx
08:19 eseyman joined #salt
08:19 AndreasLutro joined #salt
08:22 breakingmatter joined #salt
08:23 jaybocc2 joined #salt
08:34 zerthimon joined #salt
08:41 linjan joined #salt
08:45 Guest47941 joined #salt
08:52 wildfire joined #salt
08:52 linjan joined #salt
08:52 otter768 joined #salt
09:03 s_kunk joined #salt
09:03 s_kunk joined #salt
09:04 multiscan joined #salt
09:08 irctc471 AndreasLutro: https://gist.github.com/seenae/6106895a752a2058e22c how can I write jinjja loop on this data structure
09:08 thalleralexander joined #salt
09:10 irctc471 AndreasLutro: this is the output I am getting from grains.get['abc:123']
09:17 jamesp9 joined #salt
09:19 GreatSnoopy joined #salt
09:20 keimlink joined #salt
09:23 viq_ joined #salt
09:25 markm joined #salt
09:29 slav0nic joined #salt
09:29 zerthimon joined #salt
09:30 blue0ctober joined #salt
09:31 joyrida08 joined #salt
09:31 quarcu hi all
09:32 colegatron joined #salt
09:32 quarcu does anyone have a multi-stage salt environment example ?
09:32 cmek joined #salt
09:34 chiui joined #salt
09:34 Deevolution joined #salt
09:34 rotbeard joined #salt
09:34 larsfronius joined #salt
09:35 Vaelatern joined #salt
09:35 jhauser joined #salt
09:37 oida joined #salt
09:37 kshlm joined #salt
09:37 larsfron_ joined #salt
09:39 sk_0 joined #salt
09:39 AlberTUX1 joined #salt
09:41 totzky joined #salt
09:41 AlberTUX1 anyone online for a question?
09:43 traph joined #salt
09:44 irctc471 any one plz help with jinjja template on https://gist.github.com/seenae/6106895a752a2058e22c
09:44 solidsnack joined #salt
09:45 AlberTUX1 @irctc471: what's the issue?
09:47 oida joined #salt
09:47 quarcu irctc471: you seem to have weird indentation
09:49 irctc471 Actually I just gave an example of data structure , I have the data in pillar and rendering fine
09:50 quarcu kk, so what is the issue ?
09:51 solidsnack joined #salt
09:52 AlberTUX1 so here goes my question: i want to pass the minion id to the minion via pillar, if that makes sense.
09:52 Rkp irctc471: not sure what the issue is but if you have one you might want to check out saltstack's use of yaml https://docs.saltstack.com/en/latest/topics/yaml/ : "Salt requires that the indentation for each level consists of exactly two spaces."
09:53 Rkp AlberTUX1: why via pillar? can't you access the grain directly?
09:53 Rkp grains['id'] maybe?
09:53 Vaelatern joined #salt
09:53 AlberTUX1 @Rkp as i understand the grain can be changed minion side
09:55 Rkp or I guess you could also get the grain and store it in the pillar but I'm not sure what purpose it would serve (and it would be recomputed when pillar data is refreshed anyway)
09:56 AlberTUX1 so if i used a grains['id'] in the state file and the grain was changed before salt run, would the state still run?
09:56 AlberTUX1 or would it fail authenticating to the master and fail to apply the state?
09:57 AlberTUX1 if i set the grain in pillar it will fail for sure before getting the pillar data
10:00 Rkp uhhh, I assume that if the minion id and therefore the value of the grain changes you'll have to add the key again on the master anyway
10:01 Rkp I don't understand what your concern is exactly regarding use of this value? what are you trying to ensure?
10:03 Rkp we use grains['id'] sometimes to match specific behaviours inside state files to certain hosts, or to set up some conf files on servers, it's not necessarily very pretty or generic but can't say I ever had issues regarding it
10:09 linjan joined #salt
10:16 slav0nic joined #salt
10:18 fredvd joined #salt
10:19 zer0def just a quick question on schedulers, before i start poking at them - am i assuming correctly that results of jobs scheduled on the minion will be available for review via the jobs runner?
10:20 zer0def that is, when i don't specify an alternative returner
10:20 jamesp9 joined #salt
10:25 burp joined #salt
10:26 chiui joined #salt
10:26 linjan joined #salt
10:29 giantlock joined #salt
10:35 jaybocc2 joined #salt
10:43 KingJ joined #salt
10:47 Nazzy joined #salt
10:50 jaybocc2 joined #salt
10:53 kawa2014 joined #salt
10:53 otter768 joined #salt
11:05 deus_ex joined #salt
11:11 amcorreia joined #salt
11:11 ericof joined #salt
11:13 deus_ex joined #salt
11:15 larsfronius joined #salt
11:17 deus_ex joined #salt
11:19 sa_ joined #salt
11:22 wildfire joined #salt
11:25 sa_ left #salt
11:26 ponpanderer joined #salt
11:30 malinoff_ joined #salt
11:32 bluenemo joined #salt
11:35 ashmckenzie joined #salt
11:48 salt-noob joined #salt
11:56 salt-noob on my orchestration.. i generate some configuration files using file.managed and storing it in /srv/files, using the command cmd.run, i did a manual highstate on my target minion, however, the file.recurse command in the minion however it does not seems to detect the new configuration changes... any idea?
11:58 AndreasLutro joined #salt
12:08 XenophonF joined #salt
12:09 XenophonF has anyone else created VPCs (and their corresponding subnets) via the boto_* states?
12:09 justanotheruser joined #salt
12:10 XenophonF i can't get boto_vpc.subnet_present to create subnets in different availability zones
12:10 XenophonF https://gist.github.com/xenophonf/9df813c93aad4584f85f
12:10 XenophonF the output of show_sls makes me think i'm sending the correct arguments to the state
12:11 XenophonF but ultimately, the `availability_zone` argument gets ignored, and the subnet gets provisioned into an AZ chosen apparently at random
12:14 Eureka703 joined #salt
12:18 anmolb joined #salt
12:24 breakingmatter joined #salt
12:37 oida joined #salt
12:43 breakingmatter joined #salt
12:45 falenn joined #salt
12:49 multiscan joined #salt
12:54 otter768 joined #salt
12:59 chiui joined #salt
13:02 jaybocc2 joined #salt
13:04 multiscan joined #salt
13:05 ajw0100 joined #salt
13:12 teryx510 joined #salt
13:14 AndreasLutro joined #salt
13:17 jaybocc2 joined #salt
13:26 multiscan joined #salt
13:26 rynmrtn joined #salt
13:28 multiscan joined #salt
13:31 multiscan joined #salt
13:35 multiscan joined #salt
13:41 tmclaugh[work] joined #salt
13:47 babilen Do you have any tricks on how to easily change the master IP ? I don't want to have to restart thousands of minions manually just because the master is away for a little while and I'd also like to roll out the minion config changes via salt.
13:47 oida joined #salt
13:48 babilen I don't mind configuring two addresses beforehand, changing the minion config, but the question is on how to deal with the master reboot and unavailability during that time
13:50 XenophonF DNS A records with short TTLs
13:52 babilen Won't the minions still be unhappy if they can't reach the master anymore?
13:58 babilen And who do I have to buy a beer to get into Saltstack Enterprise pre testing, basepi ?
13:59 subsignal joined #salt
14:01 Norrland babilen: there is a setting to tell the minions to reconnect for a given amount of time if I don't remember wrong.
14:02 babilen Norrland: Ah, yeah .. I could raise recon_max ...
14:02 babilen I might also want to set recon_randomize
14:02 Norrland yup
14:03 chiui joined #salt
14:04 babilen Do you happen to know if there is a way to export the current list of minions in salt-key as salt-ssh roster?
14:04 wildfire joined #salt
14:04 babilen I know that there is a cached roster, but I'd love to have this explicitly
14:05 Tanta joined #salt
14:07 XenophonF outside of some script-fu, no
14:08 babilen that's okay @:-)
14:08 XenophonF sorry babilen wish i could be of more help
14:08 XenophonF gah looks like boto_secgroup can't manage the default security group of a VPC :(
14:10 XenophonF and do i understand it correctly, that boto.ec2.connection.authorize_security_group() cannot manage ICMP rules that reference specific ICMP types/codes?
14:10 XenophonF i realize that's not salt's fault...
14:13 Zytox joined #salt
14:14 multiscan joined #salt
14:17 bhosmer joined #salt
14:18 quasiben joined #salt
14:24 KermitTheFragger joined #salt
14:24 totzky joined #salt
14:24 johtso joined #salt
14:24 evle joined #salt
14:24 winsalt joined #salt
14:25 nahamu joined #salt
14:27 amcorreia joined #salt
14:30 racooper joined #salt
14:31 impi joined #salt
14:31 protoz joined #salt
14:32 dyasny joined #salt
14:35 TooLmaN joined #salt
14:40 kawa2014 joined #salt
14:41 numkem joined #salt
14:47 quasiben1 joined #salt
14:47 zmalone joined #salt
14:50 XenophonF the docs say they're for version 2015.8.1, but they're actually for 2015.8.3
14:51 felskrone joined #salt
14:52 zmalone XenophonF: I don't work for Saltstack, but I think they branch their docs along with their source.  2015.8 is a single branch, so since 2015.8.3 is supposed to be the latest, it's presented.
14:52 zmalone Unfortunately, 2015.8.2 and 2015.8.3 are not yet formally released, so you are looking at a work in progress
14:53 zmalone In theory, the .1, .2, .3 releases should just be bug fixes though.
14:55 otter768 joined #salt
14:56 XenophonF looks like i'm wanting to use functionality that's new in 2015.8.2 (namely, the vpc_name argument in boto_secgroup states)
14:56 XenophonF but my eyes totally ignored the "new in 2015.8.2" tag in the documentation
14:56 kawa2014 joined #salt
15:01 Brew joined #salt
15:07 XenophonF i'm unhappy with the quality of saltstack's release engineering on rhel/centos
15:09 XenophonF they aren't getting updated packages into EPEL, and they've apparently abandoned their COPRs
15:09 multiscan joined #salt
15:10 whytewolf EPEL was never done by saltstack.
15:10 _JZ_ joined #salt
15:10 whytewolf it was third party
15:10 XenophonF ah
15:10 zmalone They have similar issues on other platforms, I think the "third parties" all left for some reason.
15:10 whytewolf I think the third parties were all the same person
15:11 XenophonF i guess i'm ok with saltstack releasing via their own repos, but i'd like those to track the current release a lot more closely
15:12 zmalone 2015.8.2 and 2015.8.3 are not released
15:12 whytewolf repo.saltstack.com is at current release
15:12 zmalone I believe 2015.8.1 is still the formal release
15:12 XenophonF ah
15:12 XenophonF that's confusing
15:12 danlsgiga joined #salt
15:12 zmalone Yeah, I'm eager for 2015.8.2|3 too
15:12 XenophonF i see the 2015.8.2 and .3 tags in git, and the docs refer to those releases
15:12 XenophonF hence my confusion
15:12 XenophonF my apologies
15:13 XenophonF the freebsd port (also 3rd party maintainer) is at 2015.8.2, too
15:13 zmalone I think .8.2 had problems, so it was killed when it was the equivalent of a "release candidate"
15:13 zmalone orchestration is broken in .8.2
15:13 XenophonF tocha
15:13 XenophonF gotcha
15:14 quarcu chaps, you got some github example on multi-stage deployment ?
15:14 zmalone but because most work is done publicly on github, and the docs are (presumably) auto generated from that, you get point releases from the future showing up as the current stable release
15:14 quarcu i've seen official doc approach but does not seem right for me
15:16 danlsgiga Hey guys... Quick question... Is the cmd_full_return fully supported in the Python Client? I'm asking this because I didn't find it any references of it in the documentation
15:16 danlsgiga Using the cmd function seems to return a null or empty dict
15:16 CeBe joined #salt
15:18 whytewolf quarcu: what kind of multi-stage deployment are you looking to do. the doc examples can be simplistic. but there are more things that can be done using many different types of functionality in saltstack. such as orchestration with reactors and beacons
15:19 whytewolf it just takes learning the different techs and finding the hooks between them
15:21 tpaul joined #salt
15:25 malinoff joined #salt
15:27 bhosmer joined #salt
15:28 kaptk2 joined #salt
15:32 kaushal_ joined #salt
15:32 colegatron joined #salt
15:32 PredatorVI joined #salt
15:33 quarcu whytewolf: looking for approach on qa,stg,prod
15:33 whytewolf ahh enviroments
15:33 quarcu yeah
15:34 iamtew joined #salt
15:34 * whytewolf personally advises against using salts enviroments. and use a server per enviroment. but that is just me.
15:34 PredatorVI joined #salt
15:39 maduro joined #salt
15:40 wm-bot4 joined #salt
15:42 pppingme joined #salt
15:53 David_B55 joined #salt
15:57 berserkir joined #salt
16:06 cpowell joined #salt
16:08 bhosmer joined #salt
16:13 wnkz joined #salt
16:14 jaybocc2 joined #salt
16:20 morissette joined #salt
16:28 mnaser joined #salt
16:28 jeddi joined #salt
16:28 xnaveira joined #salt
16:28 Pixionus joined #salt
16:28 PredatorVI joined #salt
16:28 CeBe joined #salt
16:28 protoz joined #salt
16:28 Eureka703 joined #salt
16:28 justanotheruser joined #salt
16:28 jhauser joined #salt
16:28 viq joined #salt
16:28 GreatSnoopy joined #salt
16:28 yidhra_ joined #salt
16:28 kalessin joined #salt
16:28 foundatron joined #salt
16:28 nexsja joined #salt
16:28 nledez joined #salt
16:28 cheus joined #salt
16:28 wangofett joined #salt
16:28 sn00py joined #salt
16:28 saltsa joined #salt
16:28 kidneb joined #salt
16:28 AirOnSkin joined #salt
16:28 SirLagz joined #salt
16:28 mattiasr joined #salt
16:28 LtLefse joined #salt
16:28 asoc joined #salt
16:28 phx joined #salt
16:28 gratimax joined #salt
16:28 tzero joined #salt
16:28 whytewolf joined #salt
16:28 SWAT joined #salt
16:28 dimeshake joined #salt
16:28 eightyeight joined #salt
16:28 jY- joined #salt
16:28 ekleog joined #salt
16:28 Barbarossa joined #salt
16:28 colegatr1n_ joined #salt
16:28 ze- joined #salt
16:28 leev joined #salt
16:28 ntropy joined #salt
16:28 __alex joined #salt
16:28 melboi joined #salt
16:28 lude joined #salt
16:28 baffle joined #salt
16:28 Kruge_ joined #salt
16:28 davisj_ joined #salt
16:28 B1nny joined #salt
16:28 ligthert joined #salt
16:28 shadowsun joined #salt
16:28 Shirkdog joined #salt
16:28 Knuta joined #salt
16:28 EvaSDK joined #salt
16:28 emid joined #salt
16:28 dthorman joined #salt
16:28 ws2k3 joined #salt
16:28 oeuftete joined #salt
16:28 dean|away joined #salt
16:28 cswang__ joined #salt
16:28 drwx joined #salt
16:28 egil joined #salt
16:28 ange joined #salt
16:28 scc joined #salt
16:28 mirko joined #salt
16:28 gnord joined #salt
16:28 devtea joined #salt
16:28 tercenya joined #salt
16:28 eichiro joined #salt
16:28 tuxx joined #salt
16:28 xmj joined #salt
16:28 bougie joined #salt
16:28 pmcg joined #salt
16:28 shnguyen joined #salt
16:28 btorch joined #salt
16:28 rawzone joined #salt
16:28 lionel joined #salt
16:28 the_lalelu joined #salt
16:28 murkey joined #salt
16:28 arnoldB joined #salt
16:28 izibi joined #salt
16:28 lynxman joined #salt
16:28 klocek joined #salt
16:28 shalkie joined #salt
16:28 nikogonzo joined #salt
16:28 JoeJulian joined #salt
16:28 etw joined #salt
16:28 Mate joined #salt
16:28 Noiz joined #salt
16:28 grep_away joined #salt
16:31 ericof joined #salt
16:35 yidhra joined #salt
16:36 eofs joined #salt
16:40 eitzei joined #salt
16:40 denys joined #salt
16:45 hax404 joined #salt
16:49 ventris joined #salt
16:49 nbuchanan joined #salt
16:49 hightekvagabond joined #salt
16:49 bmcorser joined #salt
16:49 quasiben joined #salt
16:49 edrocks joined #salt
16:49 kawa2014 joined #salt
16:49 felskrone joined #salt
16:49 clintberry joined #salt
16:49 sdm24 joined #salt
16:49 mpanetta joined #salt
16:49 debian112 joined #salt
16:49 Heartsbane joined #salt
16:49 quarcu joined #salt
16:49 APLU joined #salt
16:49 AlberTUX1 joined #salt
16:49 eseyman joined #salt
16:49 sjohnsen joined #salt
16:49 Adobeman joined #salt
16:49 frankS2 joined #salt
16:49 robinsmidsrod joined #salt
16:49 Hazelesque joined #salt
16:49 djinni`_ joined #salt
16:49 hillna joined #salt
16:49 Kelsar joined #salt
16:49 dijit joined #salt
16:49 eagles0513875_ joined #salt
16:49 Jarus joined #salt
16:49 feliks joined #salt
16:49 _ikke_ joined #salt
16:49 Sketch joined #salt
16:49 creppe joined #salt
16:49 alexlist joined #salt
16:49 scarcry joined #salt
16:49 riftman joined #salt
16:49 gazarsgo joined #salt
16:49 evilrob joined #salt
16:49 munhitsu_ joined #salt
16:49 Phtes_ joined #salt
16:49 SteamWells joined #salt
16:49 xenoxaos joined #salt
16:49 kbaikov joined #salt
16:49 serverascode joined #salt
16:49 Guest21845 joined #salt
16:49 mrbobbytables joined #salt
16:49 bVector_ joined #salt
16:49 paolo joined #salt
16:49 mschiff joined #salt
16:49 bbhoss joined #salt
16:49 slav0nic joined #salt
16:49 giantlock joined #salt
16:49 Nazzy joined #salt
16:49 oida joined #salt
16:49 amcorreia joined #salt
16:49 tpaul joined #salt
16:49 kiorky joined #salt
16:49 pjs joined #salt
16:49 pmcnabb joined #salt
16:49 danielcb joined #salt
16:49 Guest36022 joined #salt
16:49 ramblinpeck joined #salt
16:49 jay_d joined #salt
16:49 mfournier joined #salt
16:49 moderation joined #salt
16:49 tcolvin joined #salt
16:49 neilf__ joined #salt
16:49 mattl joined #salt
16:49 m0nky joined #salt
16:49 Ryan_Lane joined #salt
16:49 czchen joined #salt
16:49 workthrick joined #salt
16:49 ashb joined #salt
16:49 adeschamps joined #salt
16:49 lkannan joined #salt
16:49 wiqd_ joined #salt
16:49 Ouzo_12 joined #salt
16:49 Striki joined #salt
16:49 jcristau joined #salt
16:49 imanc joined #salt
16:49 blueyed joined #salt
16:49 jor joined #salt
16:49 marcinkuzminski joined #salt
16:49 Edur joined #salt
16:49 rofl____ joined #salt
16:49 daschatten joined #salt
16:49 bastiandg joined #salt
16:49 Azid joined #salt
16:49 hypnosb joined #salt
16:49 TomJepp joined #salt
16:49 colinstgeorge joined #salt
16:49 roock joined #salt
16:49 qman__ joined #salt
16:49 admgre joined #salt
16:49 goldbuick__ joined #salt
16:49 __number5__ joined #salt
16:49 CaptainMagnus joined #salt
16:49 twiedenbein joined #salt
16:49 evidence joined #salt
16:49 jhujhiti joined #salt
16:49 sinonick joined #salt
16:49 pprkut joined #salt
16:49 scooby2 joined #salt
16:49 dynamicudpate joined #salt
16:49 dh joined #salt
16:49 nidr0x joined #salt
16:49 tehsu joined #salt
16:49 NV joined #salt
16:49 manfred joined #salt
16:49 mkjgore joined #salt
16:49 dandelo joined #salt
16:49 s_kunk joined #salt
16:49 nash__ joined #salt
16:49 kavakava__ joined #salt
16:49 ThomasJ joined #salt
16:49 KingJ joined #salt
16:49 voxxit joined #salt
16:49 kaushal_ joined #salt
16:49 jayne joined #salt
16:49 pviktori joined #salt
16:49 retr0h_ joined #salt
16:49 davidbanham joined #salt
16:49 Corey joined #salt
16:49 nkuttler joined #salt
16:49 drags joined #salt
16:49 ]V[ joined #salt
16:49 JPT joined #salt
16:49 buMPnet joined #salt
16:49 jeblair joined #salt
16:49 dork joined #salt
16:49 Nebraskka joined #salt
16:49 rnts joined #salt
16:49 sybix_ joined #salt
16:49 SubOracle joined #salt
16:49 gtmanfred joined #salt
16:49 Puckel_ joined #salt
16:49 buhman joined #salt
16:49 rome_390_ joined #salt
16:49 dec joined #salt
16:49 cwyse_ joined #salt
16:49 samed joined #salt
16:49 Cottser joined #salt
16:49 chitown joined #salt
16:49 jesusaurus joined #salt
16:49 alvinstarr joined #salt
16:49 mephx joined #salt
16:49 GnuLxUsr joined #salt
16:49 mohae joined #salt
16:49 AbyssOne joined #salt
16:49 keekz joined #salt
16:49 karlthane joined #salt
16:49 ablemann joined #salt
16:49 esharpmajor joined #salt
16:49 jcockhren joined #salt
16:49 GrueMaster joined #salt
16:49 erjohnso joined #salt
16:49 joren joined #salt
16:49 v0rtex_ joined #salt
16:49 StolenToast joined #salt
16:49 blue0ctober joined #salt
16:49 joyrida08 joined #salt
16:49 cmek joined #salt
16:49 Deevolution joined #salt
16:49 zmalone joined #salt
16:49 subsignal joined #salt
16:49 symphorien joined #salt
16:49 borgstrom joined #salt
16:49 adongy joined #salt
16:49 seblu joined #salt
16:49 antonw joined #salt
16:49 LinuxHorn joined #salt
16:49 bstaz joined #salt
16:49 gtaylor joined #salt
16:49 shawnbutts joined #salt
16:49 hacks joined #salt
16:49 CaptTofu_ joined #salt
16:49 twodayslate joined #salt
16:49 LotR joined #salt
16:49 joshin joined #salt
16:49 w1gz joined #salt
16:49 mikepea joined #salt
16:49 JonGretar_ joined #salt
16:49 pdx6_ joined #salt
16:49 mihait joined #salt
16:49 OliverMT joined #salt
16:49 ramishra joined #salt
16:49 ignasr_ joined #salt
16:49 jab416171 joined #salt
16:49 ekkelett joined #salt
16:49 vlcn joined #salt
16:49 Gareth joined #salt
16:49 InAnimaTe joined #salt
16:49 okfine joined #salt
16:49 Rockj joined #salt
16:49 A||SySt3msG0 joined #salt
16:49 VSpike joined #salt
16:49 lorengordon joined #salt
16:49 onovy joined #salt
16:49 DaveQB joined #salt
16:49 tampakrap joined #salt
16:49 kutenai joined #salt
16:49 izrail joined #salt
16:49 simmel joined #salt
16:49 cb joined #salt
16:49 opdude_ joined #salt
16:49 Cyis|afk joined #salt
16:49 Arendtsen joined #salt
16:49 mitsuhiko joined #salt
16:49 koomi joined #salt
16:49 deedubs joined #salt
16:49 rickflare joined #salt
16:49 edulix_ joined #salt
16:49 MadsRC joined #salt
16:49 toddnni joined #salt
16:49 Rkp joined #salt
16:49 elektrix joined #salt
16:49 gadams_ joined #salt
16:49 cwright_ joined #salt
16:49 jerrcs_ joined #salt
16:49 hacfi joined #salt
16:49 Garo__ joined #salt
16:49 Taytay joined #salt
16:49 rbjorkli2 joined #salt
16:49 sirtaj joined #salt
16:49 jfred joined #salt
16:49 FreeSpencer joined #salt
16:49 nebuchadnezzar joined #salt
16:49 chamunks joined #salt
16:49 hajhatten joined #salt
16:49 darix joined #salt
16:49 crashmag joined #salt
16:49 tru_tru joined #salt
16:49 Ch3LL joined #salt
16:49 scoates joined #salt
16:49 Dev0n joined #salt
16:49 adelcast joined #salt
16:49 tiadobatima joined #salt
16:49 Zachary_DuBois joined #salt
16:49 [vaelen] joined #salt
16:49 FTfz joined #salt
16:49 averell joined #salt
16:49 mullein joined #salt
16:49 g3cko joined #salt
16:49 zsoftich joined #salt
16:49 techdragon joined #salt
16:49 mrtrosen joined #salt
16:49 Hipikat joined #salt
16:49 virusuy joined #salt
16:49 berto- joined #salt
16:49 hardwire joined #salt
16:49 al joined #salt
16:49 agj joined #salt
16:49 ajmath joined #salt
16:49 msciciel joined #salt
16:49 Jimlad joined #salt
16:49 Guest24405 joined #salt
16:49 netcho joined #salt
16:49 _mel_ joined #salt
16:49 sixninetynine joined #salt
16:49 zemm joined #salt
16:49 shanemhansen joined #salt
16:49 renoirb joined #salt
16:49 indispeq joined #salt
16:49 aurynn joined #salt
16:49 NightMonkey joined #salt
16:49 jgelens joined #salt
16:49 adendrag joined #salt
16:49 pbx_ joined #salt
16:49 thehaven joined #salt
16:49 tristianc joined #salt
16:49 tkharju joined #salt
16:49 Edgan joined #salt
16:49 synical joined #salt
16:49 MasterNayru joined #salt
16:49 larsfronius joined #salt
16:49 londo_ joined #salt
16:49 tedski joined #salt
16:49 yetAnotherZero joined #salt
16:49 Twiglet joined #salt
16:49 culexor joined #salt
16:49 trave joined #salt
16:49 copelco joined #salt
16:49 gchao joined #salt
16:49 davedash joined #salt
16:49 supermike___ joined #salt
16:49 MK_FG joined #salt
16:49 jondonas joined #salt
16:49 simonmcc joined #salt
16:49 intr1nsic joined #salt
16:49 nobrak joined #salt
16:49 goki joined #salt
16:49 NachoDuck joined #salt
16:49 MeltedLux joined #salt
16:49 oravirt joined #salt
16:49 akoumjian joined #salt
16:49 akitada joined #salt
16:49 colttt joined #salt
16:49 muep joined #salt
16:49 ujjain joined #salt
16:49 carmony joined #salt
16:49 wych joined #salt
16:49 artemz joined #salt
16:49 terinjokes joined #salt
16:49 Cidan joined #salt
16:49 nlb joined #salt
16:49 ALLmightySPIFF joined #salt
16:49 Diaoul joined #salt
16:49 jasondotstar joined #salt
16:49 ajolo joined #salt
16:49 dstokes joined #salt
16:49 tmmt joined #salt
16:49 arif-ali joined #salt
16:49 om joined #salt
16:49 unusedPhD_ joined #salt
16:49 Rebus joined #salt
16:49 geekatcmu joined #salt
16:49 Eugene joined #salt
16:49 rodr1c joined #salt
16:49 JPaul joined #salt
16:49 chutzpah joined #salt
16:49 skarn joined #salt
16:49 unusedPhD joined #salt
16:49 jacksontj joined #salt
16:49 Ph-x joined #salt
16:49 sjorge joined #salt
16:49 terratoma joined #salt
16:49 aqua^c joined #salt
16:49 illern joined #salt
16:49 bbradley joined #salt
16:49 spiette joined #salt
16:49 bharper joined #salt
16:49 flebel joined #salt
16:49 cliluw joined #salt
16:49 Karunamon joined #salt
16:49 zer0def joined #salt
16:49 wendall911 joined #salt
16:49 ernetas joined #salt
16:49 hal58th joined #salt
16:49 MindDrive joined #salt
16:49 ramteid joined #salt
16:49 Guest47941 joined #salt
16:49 Vaelatern joined #salt
16:49 ashmckenzie joined #salt
16:49 teryx510 joined #salt
16:49 Tanta joined #salt
16:49 johtso joined #salt
16:49 evle joined #salt
16:49 nahamu joined #salt
16:49 dyasny joined #salt
16:49 numkem joined #salt
16:49 malinoff joined #salt
16:49 kaptk2 joined #salt
16:49 colegatron joined #salt
16:49 iamtew joined #salt
16:49 thebwt joined #salt
16:49 jettero joined #salt
16:49 dober joined #salt
16:49 TOoSmOotH joined #salt
16:49 smkelly joined #salt
16:49 basepi joined #salt
16:49 Vye joined #salt
16:49 garphy joined #salt
16:49 lahwran joined #salt
16:49 kuromagi joined #salt
16:49 packeteer joined #salt
16:49 xMopxShell joined #salt
16:49 rideh joined #salt
16:49 dustywusty joined #salt
16:49 bryguy joined #salt
16:49 chrischris joined #salt
16:49 17SAD5YK1 joined #salt
16:49 spaceSub joined #salt
16:49 monokrome joined #salt
16:49 Horgix joined #salt
16:49 morsik joined #salt
16:49 tyler-baker joined #salt
16:49 penguinpowernz joined #salt
16:49 georgemarshall joined #salt
16:49 jfroche joined #salt
16:49 TTimo_ joined #salt
16:49 fhh joined #salt
16:49 tonthon joined #salt
16:49 Sacro joined #salt
16:49 nicksloan joined #salt
16:49 tvinson joined #salt
16:51 ilbot3 joined #salt
16:51 Topic for #salt is now Welcome to #salt | 2015.8.1 is the latest | Please use https://gist.github.com for code, don't paste directly into the channel | Please be patient when asking questions as we are volunteers and may not have immediate answers | Channel logs are available at http://irclog.perlgeek.de/salt/
16:51 Aleks3Y joined #salt
16:52 morissette joined #salt
16:55 s_kunk_ joined #salt
16:56 s_kunk joined #salt
16:56 andrew_v joined #salt
16:57 jgee joined #salt
16:57 kidneb joined #salt
16:58 gtd joined #salt
17:02 onlyanegg joined #salt
17:05 mnaser joined #salt
17:05 bluenemo joined #salt
17:05 rm_jorge joined #salt
17:05 dwfreed joined #salt
17:05 keimlink joined #salt
17:05 rynmrtn joined #salt
17:05 PredatorVI Can I store and use files in pillars?
17:05 ajw0100 joined #salt
17:06 rynmrtn joined #salt
17:07 afics joined #salt
17:09 cberndt joined #salt
17:09 TyrfingMjolnir joined #salt
17:10 irctc698 joined #salt
17:10 PredatorVI left #salt
17:10 PredatorVI joined #salt
17:10 irctc698 Hello everyone. Has anyone had any experience with file.replace.
17:10 irctc698 or file.search.
17:11 irctc698 I'm tryin to search /etc/passwd for a entry and if that entry exists it performs the next salt state.
17:11 irctc698 if it doesnt exist it doesnt do anything.
17:13 lionel joined #salt
17:13 sdm24 PredatorVI: https://docs.saltstack.com/en/develop/ref/pillar/all/salt.pillar.file_tree.html
17:13 sdm24 that will set a file's contents as pillar data
17:14 Dev0n irctc698, are you checking to see if a user exists?
17:14 Aleks3Y joined #salt
17:14 Dev0n you might want to use https://docs.saltstack.com/en/latest/ref/states/all/salt.states.user.html
17:15 sdm24 irctc698: file.replace works for me, using regex to find the correct string. From there, I would use a requisite like "require" or "watch" to continue to the next step
17:15 irctc698 yes if the user exist go to the next step. right now we are in a mixed environment. some ldap some local accounts. if the account im searching for exists then perform a user.add.
17:16 ageorgop joined #salt
17:17 sdm24 irctc698: for the second part (if the first state succeeds, do something else), check https://docs.saltstack.com/en/latest/ref/states/requisites.html
17:17 ws2k3 joined #salt
17:18 PredatorVI sdm24:  I am wondering if in my file.manged directive if I can reference files stored in per-environment pillars.  This might be a square peg-round hole attempt, but I currently only need environments for pillars but now need to install client certs on a per-environment basis ... :/
17:20 whytewolf PredatorVI: file.managed has a contents_pillar: setting.
17:21 whytewolf PredatorVI: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.managed and scroll down a little bit.
17:22 sdm24 PredatorVI: depending on your environment setup, would you want to maybe do a file.recurse for salt://{{ pillar['environment'] }}/ or something like that?
17:24 rynmrtn anyone here succesfully used the node-formula? https://github.com/saltstack-formulas/node-formula
17:25 rynmrtn curious how mature it is. to say the readme is lacking is an understatement
17:26 LondonAppDev joined #salt
17:26 s_kunk joined #salt
17:27 writtenoff joined #salt
17:28 Guest89 joined #salt
17:34 onlyanegg joined #salt
17:36 antpa joined #salt
17:37 freshrecipe joined #salt
17:37 freshrecipe left #salt
17:38 ericof_ joined #salt
17:39 antpa I'm trying to figure out how to call to a grain within a pillar reference
17:40 antpa something like {{ salt['pillar.get']('sites:{{ salt['grains.get']('domain') }}:subdomain') }}.
17:40 djstorm joined #salt
17:41 sdm24 antpa: remove the inside {{ }}, and instead use ~ or + to concatenate
17:41 whytewolf {{ salt.pillar.get('sites:'~ salt.grains.get('domain') ~':subdomain')) }}
17:41 sdm24 {{ salt['pillar.get']('sites: '~ salt['grains.get']('domain')~ ' :subdomain') }}
17:41 sdm24 yeah haha
17:42 antpa ah ok
17:42 antpa Thanks!  I was trying {{ salt['pillar.get']('sites:~ grains['domain'] ~:subdomain') }} but didn't have quotes
17:44 sdm24 no problem
17:45 Lionel_Debroux_ joined #salt
17:48 mpanetta_ joined #salt
17:49 quasiben is there a recommended way to restart the salt master ?
17:49 quasiben I found the following for minions: https://docs.saltstack.com/en/latest/faq.html#what-is-the-best-way-to-restart-a-salt-daemon-using-salt
17:49 quasiben as part of a salt state I'd like to update the master config file and restart, is that even possbile ?
17:55 sdm24 quasiben: you can technically do it. Either cmd.run: 'service salt-master restart'. Or maybe service.running: salt-master. I'm not sure if its "best practice" though
17:56 shaggy_surfer joined #salt
17:57 whytewolf one of the best ways i have heard of restarting one of the salt services [either master or miion] is to put it in an at job
17:57 whytewolf that way it happens in the future after the run
17:58 shaggy_surfer joined #salt
17:58 Guest89 joined #salt
18:00 impi joined #salt
18:05 dendazen joined #salt
18:05 dendazen Guys how do I remove obsolete host from salt?
18:06 whytewolf salt-key -d <bad minion id>
18:06 dendazen Thank you.
18:06 winsalt joined #salt
18:08 bhosmer joined #salt
18:08 whytewolf dendazen: if you are feeling saucy and have a ton of keys for a lot of bad hosts. salt-run manage.down removekeys=True
18:09 dendazen nah i have around 5
18:09 whytewolf becarefule with that one though. anything that reports as down will be removed
18:09 dendazen yeah we have some hosts which are down but needed
18:09 multiscan joined #salt
18:11 AlberTUX1 hi ppl, i'm trying this import in my state file: {% from 'defaults.sls' import user_defs with context %}
18:11 AlberTUX1 gives me TemplateNotFound: defaults.sls
18:12 AlberTUX1 what is the correct way to import from a file in the same directory?
18:12 sdm24 where are your state and file located?
18:12 AlberTUX1 same dir
18:12 hightekvagabond joined #salt
18:13 sdm24 I believe you want {% from '.defaults.sls' import user_defs with context %}, if its init.sls and defaults.sls are both in /srv/salt/my_state
18:14 ericof joined #salt
18:14 dendazen Also when i remove the key i get this error
18:14 dendazen why is that?
18:14 dendazen https://gist.github.com/anonymous/9d3d44492040b0bf6145
18:15 AlberTUX1 sdm24: same thing: TemplateNotFound: .defaults.sls
18:16 AlberTUX1 these 2 guys are in the same dir: defaults.sls  init.sls
18:17 AlberTUX1 if i change to {% from 'test/defaults.sls' import user_defs with context %} it works
18:17 sdm24 for me, I have a variable.sls in /srv/salt, and init.sls in /srv/salt/my_state. in the init.sls, {% from 'variables.sls'
18:17 sdm24 %} works
18:17 sdm24 I think you do need to define its path relative to /srv/salt (or whatever your file root setup is)
18:20 AlberTUX1 okay, thanks. i was wondering if there was a shortcut to import from the same directory as in python
18:21 AlberTUX1 jinja docs say "This works similarly to the import statements in Python." but maybe is not that similar
18:22 fisuk joined #salt
18:22 sdm24 The formulas I quickly checked seem to use {% from 'name/map.jinja' import ...%} so I don't know if you can use a shortcut
18:23 mapu joined #salt
18:26 ageorgop joined #salt
18:28 brianfeister joined #salt
18:32 antpa joined #salt
18:32 mpanetta joined #salt
18:32 baweaver joined #salt
18:33 cberndt joined #salt
18:34 denys joined #salt
18:34 Thiggy joined #salt
18:35 Thiggy joined #salt
18:36 Thiggy Has anyone used the salt reactor to fire events into statsd based on job runs, highstates, etc?
18:40 shaggy_surfer joined #salt
18:40 ktosiek joined #salt
18:41 _Cyclone_ joined #salt
18:41 Brew Hello salt!  Im trying to use git for my pillars and running into a strange lock issue.  ive defined ext_pillar to tie into git like this under -git: - master git@<HOST><repo>.  with a -name to change master to base for the top files.  I also have incldued two other sections under -git for preprod and develop
18:42 Brew however, when all three are enabled i run in lockfile issues
18:42 Brew and the pillars are not refreshed for use on the minions
18:42 Brew trying to clear the lockfile results in a "No locks were removed" even tho the master log is complaing about a lock
18:43 sdm24 could it be related to https://github.com/saltstack/salt/issues/28311?
18:43 saltstackbot [#28311]title: git_pillar conflicts | When I installed salt-master on CentOS 7 and use git_pillar for the backend, I get "Failed to checkout qa from git_pillar remote 'qa git@git.apparatus.net:beta/pepper.git': 37 conflicts prevent checkout". If I navigate to /var/cache/salt/master/git_pillar/<long string>/ and run 'git pull origin qa' then it creates a "master" branch. If I 'git checkout qa' then everything seems to work fine. ...
18:43 sdm24 when you have multiple branches from the same repo
18:46 kaictl joined #salt
18:46 Brew thanks sdm24!  that was lightning fast.  digging into that now
18:49 tewetwew joined #salt
18:49 alexlist_ joined #salt
18:50 giantlock joined #salt
18:51 tewetwew joined #salt
18:52 goki joined #salt
18:53 tiadobatima joined #salt
18:54 supermike___ joined #salt
18:55 NickD__ joined #salt
18:56 kermit joined #salt
18:56 ageorgop joined #salt
18:56 NickD__ Is it possible to run state.sls against multiple systems at once? (i.e. salt 'server1,server2' state.sls state)
18:57 otter768 joined #salt
18:57 gtaylor joined #salt
18:57 twodayslate joined #salt
18:58 sdm24 NickD__: to target multiple minions in a list, do "salt -L 'minion1,minion2,...'
18:58 sdm24 so salt -L 'server1,server2' state.sls state
18:58 akitada joined #salt
19:00 bmcorser joined #salt
19:01 NickD__ ah, perfect. thank you
19:01 jaybocc2 joined #salt
19:01 baweaver joined #salt
19:02 sdm24 no problem
19:03 rburkholder joined #salt
19:03 sdm24 if you use a top.sls file, you can also use lists there: 'server1,server2' \n  - match: list
19:04 solidsnack joined #salt
19:05 CaptTofu_ joined #salt
19:07 hacks joined #salt
19:09 imanc joined #salt
19:10 Netwizard joined #salt
19:14 tristianc_ joined #salt
19:14 baweaver joined #salt
19:15 solidsnack joined #salt
19:16 TaiSHi_ joined #salt
19:17 linjan joined #salt
19:18 bhosmer joined #salt
19:20 solidsna_ joined #salt
19:21 bhosmer__ joined #salt
19:24 beneggett joined #salt
19:25 hightekvagabond joined #salt
19:28 quasiben joined #salt
19:28 JoeJulian joined #salt
19:28 solidsnack joined #salt
19:30 APLU joined #salt
19:31 hightekvagabond joined #salt
19:32 Taytay Hello !
19:32 Taytay Can I push custom state (py file) in gitremotefs ?
19:32 Taytay Can I use custom state (py file) in gitremotefs ?
19:32 Taytay Can I use custom state (py file) from gitremotefs ? :) (sorry)
19:32 quasiben1 joined #salt
19:33 scoates _states/ and _modules/ has saved me so many times. Thanks again to whoever added that (way back).
19:38 oida joined #salt
19:40 GreatSnoopy joined #salt
19:43 mapu joined #salt
19:45 MasterNayru joined #salt
19:48 eitzei joined #salt
19:51 aidalgol joined #salt
19:58 Corey Dumb question. If I have a package name as a state title, pkg.installed won't do it in the sls file, will it? pkg: \n  - installed has to be used instead, right?
20:00 moderation joined #salt
20:02 wiqd_ joined #salt
20:02 OliverMT joined #salt
20:02 NachoDuck joined #salt
20:03 Striki joined #salt
20:05 neilf__ joined #salt
20:05 bbhoss joined #salt
20:06 linjan joined #salt
20:06 aboe joined #salt
20:08 antonw joined #salt
20:08 hillna joined #salt
20:09 solidsnack joined #salt
20:09 scoates Corey: this works, if that's what you mean: http://paste.roguecoders.com/p/a27a7bb0f99b4c74a72fb24089793038.txt
20:09 simonmcc joined #salt
20:10 munhitsu_ joined #salt
20:11 gazarsgo joined #salt
20:11 guanophobic joined #salt
20:13 czchen joined #salt
20:13 copelco joined #salt
20:13 serverascode joined #salt
20:13 mattl joined #salt
20:15 racooper I'm having issues with file.sed trying to replace a string containing quotes with another string containing quotes.
20:15 racooper ERROR executing 'file.sed': The following keyword arguments are not valid: AOU_ENABLE_CRONJOB=\"true\
20:16 akoumjian joined #salt
20:16 racooper ...and there was supposed to be an ending " on the copy paste.
20:17 multiscan joined #salt
20:17 brianfeister joined #salt
20:17 bstaz joined #salt
20:18 trave joined #salt
20:18 JonGretar_ joined #salt
20:18 whytewolf file.sed? wasn't that deprecated?
20:19 mihait joined #salt
20:19 lkannan joined #salt
20:20 baweaver joined #salt
20:21 davedash joined #salt
20:22 ramblinpeck joined #salt
20:23 jhauser joined #salt
20:24 numkem Anyone worked with reactors? I'm trying to figure out how to use the local.cmd_async() runner
20:24 jay_d joined #salt
20:25 linjan joined #salt
20:26 whytewolf numkem: local.cmd_async isn't a runner. it is a python client api interface
20:26 frankS2 joined #salt
20:27 numkem whytewolf: I'm trying to figure out how to execute thing from the reactor. The documentation refers to using local.cmd. From there I want to see what I can do beside just a highstate
20:27 baweaver joined #salt
20:27 LinuxHorn joined #salt
20:28 racooper ok retrying with file.replace...same error.
20:28 racooper ERROR executing 'file.replace': The following keyword arguments are not valid: AOU_ENABLE_CRONJOB=\"true\"
20:28 whytewolf numkem: local.cmd.run isn't local.cmd it is cmd.run local = localClient.cmd_async
20:29 m0nky joined #salt
20:29 numkem whytewolf: that makes a lot more sens
20:30 whytewolf https://docs.saltstack.com/en/develop/topics/reactor/index.html#calling-execution-modules-on-minions least that is what is basicly says in the leading paragraphs of this
20:30 racooper ok nevermind...helps if I actually read the docs all the way through.
20:30 chiui joined #salt
20:30 whytewolf racooper: shh docs are not that important. :P
20:31 JonGretar joined #salt
20:32 larsfronius joined #salt
20:33 felskrone1 joined #salt
20:33 felskrone joined #salt
20:33 felskrone joined #salt
20:33 hightekvagabond joined #salt
20:34 bensons joined #salt
20:34 bensons hi, i am using salt-cloud to spin up AWS instances. how can i create an instance without a public ip address? (using only my VPC)
20:35 beneggett joined #salt
20:35 ajw0100 joined #salt
20:36 tcolvin joined #salt
20:37 bVector_ joined #salt
20:38 ashb joined #salt
20:40 trave joined #salt
20:40 bstaz_ joined #salt
20:42 DammitJim joined #salt
20:42 DammitJim is there a way to use salt to monitor disk space?
20:43 WesleyTech_ joined #salt
20:43 Phtes_ joined #salt
20:44 babilen DammitJim: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.status.html -- but then, you probably really want something else
20:44 racooper DammitJim, sounds more like something for Zabbix or Nagios
20:44 babilen (or feed that data in something apart from your shell)
20:45 whytewolf DammitJim: https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.disk.html#salt.modules.disk.usage but really use zabbix/nagios for actual monitoring. and leave salt to be a deployment tool
20:45 babilen I mean .. take a look at nagios, [collectd/telegraf]+influxdb+grafana, zabbix, check_mk, ....
20:45 babilen It really depends on what you want to achieve
20:46 hoonetorg joined #salt
20:47 mschiff is mine data available in pillar?
20:47 DammitJim whytewolf, that's what I was thinking... maybe salt is not the tool for this
20:47 mschiff *in pillar sls file with salt-min.get ...
20:48 babilen mschiff: It is, yeah
20:48 DammitJim I already have a monitoring system in place, but didn't know if this was a good option
20:48 mschiff babilen: thx
20:48 ramishra joined #salt
20:49 Aleks3Y joined #salt
20:49 babilen mschiff: https://docs.saltstack.com/en/develop/ref/modules/all/salt.modules.mine.html#salt.modules.mine.get has some information on that (pretty new stuff though)
20:50 iggy mschiff: you have to use runners in pillar (as that's running master side)
20:50 whytewolf mschiff: as of 2015.8.1
20:50 babilen (as detailed in the mine.get documentation linked above)
20:50 iggy did they finally update the docs? hooray \o/
20:51 babilen indeed :)
20:51 babilen So, who do I have to buy a beer to get my hands on Saltstack Enterprise 4 ?
20:51 babilen (/me promises to tell everyone how great it is)
20:52 whytewolf other then the gui what is in SSE4?
20:52 pppingme joined #salt
20:52 babilen That's what I'd like to find out
20:53 mschiff thanks guys ;)
20:53 babilen yw
20:53 quasiben joined #salt
20:54 jondonas joined #salt
20:54 iggy last I heard it was just gui and some proxy minions for high end kit
20:55 ddoberloh joined #salt
20:55 ddoberloh Hey everybody. I have a quick question.
20:57 fredvd joined #salt
20:57 whytewolf ddoberloh: ... this doens't seem that quick so far
20:58 shaggy_surfer joined #salt
20:58 otter768 joined #salt
20:58 ddoberloh Has anyone used pillar to do the same sort of thing that puppet hiera does without using the hiera ext_pillar? Im trying to make keys that are the same in another file override ones that were seen earlier.
20:58 ddoberloh sorry :(
20:59 trave_ joined #salt
21:00 * whytewolf has no idea what hiera is in puppet. [I have only dabbled in puppet once. then took a 6 hour shower]
21:00 traph joined #salt
21:01 ddoberloh ill make a gist of what behavior im trying to get. one sec
21:01 onlyanegg joined #salt
21:01 eitzei joined #salt
21:02 baweaver joined #salt
21:02 ddoberloh basically what im looking for is dictionaries being additive, but when a conflict is found i want the override file to take precedence.
21:02 ddoberloh https://gist.github.com/doberloh/01f337de905066d24e5c
21:03 protoz_ joined #salt
21:04 whytewolf ohhhh, more complex merges. currently this is the best we got for merges https://docs.saltstack.com/en/latest/topics/pillar/#pillar-namespace-merges
21:05 whytewolf which unforchantly does not look to meet your needs
21:05 ddoberloh ahh. so conflict resolution isnt a thing.
21:06 ddoberloh Thats too bad. I'm trying to POC a switch from puppet and I LOVE everything so far. This issue is my only hitch.
21:07 whytewolf currently that is correct. althought i have heard many want this feature. I would put in a feature request.
21:07 onlyanegg joined #salt
21:07 ddoberloh will do!
21:07 whytewolf and maybe start digging around the other ext_pillars there maybe something there that will do
21:08 ddoberloh Yeah. I just opened up the doc page on those now.
21:08 kidneb joined #salt
21:08 protoz joined #salt
21:09 winsalt ext_pillars arnt very hard to write either
21:12 tpaul joined #salt
21:13 babilen ddoberloh: You might want to look into reclass
21:13 jhauser joined #salt
21:13 babilen (not many in here seem to use it though)
21:13 brianfeister joined #salt
21:13 oida joined #salt
21:14 ddoberloh whats the executive summary of reclass?
21:14 babilen You can also configure the merging strategy: https://docs.saltstack.com/en/latest/ref/configuration/master.html#pillar-source-merging-strategy
21:14 kutenai joined #salt
21:14 babilen ddoberloh: Sorry, I don't do that
21:14 ddoberloh kk :P
21:15 ddoberloh ill look at reclass and ext_pillars
21:15 ddoberloh im going to open an issue on github to see what others think as well.
21:17 SteamWells joined #salt
21:20 grumm_servire joined #salt
21:21 quasiben will salt-master or salt-minion ever re-read the configuration file without restarting ?
21:21 iggy no
21:27 mkjgore hey folks, just curioud but is the python API CloudClient the same as calling salt-cloud? I don't think so but I'm hopeful because I'm trying to call salt-cloud from a python script
21:28 whytewolf mkjgore: I believe it is what the salt-cloud client actually calls.
21:29 mkjgore whytewolf: ah, so salt-cloud is actually a helper that call the cloud client
21:29 mkjgore :-)
21:29 chiui joined #salt
21:30 colegatron joined #salt
21:30 whytewolf I of coarse could be wrong
21:30 om2 joined #salt
21:31 bhosmer joined #salt
21:34 larsfronius joined #salt
21:35 felskrone joined #salt
21:39 TyrfingMjolnir joined #salt
21:39 Tanta joined #salt
21:44 Guest52137 joined #salt
21:46 s_kunk joined #salt
21:46 s_kunk joined #salt
21:47 shawnbutts joined #salt
21:47 mschiff strange: when I call 'salt-call grains.get fqdn' on one host (the master) it shows the FQDN of another minion...
21:48 mschiff corrupt grains cache?
21:51 brianfeister joined #salt
21:53 nexsja joined #salt
21:56 ajw0100 joined #salt
21:59 karlthane joined #salt
22:00 bhosmer joined #salt
22:01 quasiben joined #salt
22:02 mkjgore whytewolf: looks like you can call much of the functionality of salt-cloud via the salt.runners.cloud module
22:04 whytewolf oh. looks like you can. good to know. as that makes things a lot easier. if it can be done in a runner means it can be done through orch/highstate
22:05 whytewolf or reactors. or anything else you feel like
22:05 NickD__ joined #salt
22:05 whytewolf ohh. cloud.map_run thats what i miss when using states.cloud. is a way to run a map
22:06 grumm_servire_ joined #salt
22:07 grumm_servire_ joined #salt
22:08 whytewolf going to have to remeber that when i go to build a v3 of my openstack installs
22:09 grumm_servire joined #salt
22:09 cyborg-one joined #salt
22:09 solidsnack joined #salt
22:11 grumm_servire joined #salt
22:11 burp joined #salt
22:14 Guest89 joined #salt
22:17 cberndt joined #salt
22:17 ronrib joined #salt
22:18 hightekvagabond joined #salt
22:19 mosen joined #salt
22:20 mkjgore whytewolf: beware, running into an issue right now where my runner is saying "NameError: global name ;__opts__' is not defined"
22:20 mkjgore :-( looking into it now
22:20 mkjgore I know I'm using __opts__ in the parent/calling script already
22:25 aidalgol joined #salt
22:25 linjan joined #salt
22:31 Corey scoates: Thanks. I seem to recall that that form ( http://paste.roguecoders.com/p/a27a7bb0f99b4c74a72fb24089793038.txt ) used to throw errors...
22:34 oida joined #salt
22:37 joehh joined #salt
22:40 winsalt left #salt
22:42 basepi babilen: I'll keep you in mind for testing once we start opening it up. Not sure how that's going to work yet.
22:44 protoz joined #salt
22:45 yidhra joined #salt
22:45 denys joined #salt
22:48 khaije1 joined #salt
22:48 fxhp joined #salt
22:48 giantlock joined #salt
22:48 nidr0x joined #salt
22:49 khaije1 is there a way to make a minion address (from within salt, and salt-ssh's roster in particular) from multiple names ?
22:49 khaije1 s/address/addressable
22:51 protoz joined #salt
22:52 pzipoy joined #salt
22:55 adelcast joined #salt
22:56 khaije1 similarly, is it possible to set multiple network names for a minion (relevant to salt-ssh
22:59 otter768 joined #salt
23:07 troyready joined #salt
23:09 protoz joined #salt
23:11 sbogg joined #salt
23:11 protoz joined #salt
23:12 ajw0100 joined #salt
23:13 SheetiS joined #salt
23:14 baweaver joined #salt
23:14 protoz joined #salt
23:16 ry joined #salt
23:17 ry left #salt
23:19 saltnoob joined #salt
23:20 saltnoob im using salt orchestration to build some files for salt:// , however, when i use salt managed to sync the files over, it doesn't seem to detect the change for the first attemp, i'd have to execute the state again for the second time to reflect the change.. any idea how i can resolve?
23:22 rnts joined #salt
23:29 burp hello, is there a way to reuse salttesting for testing custom salt modules that don't reside in the salt source tree ?
23:30 burp i'm trying to figure out a generic way of doing this because i need to unit-test my salt modules :)
23:30 catpig joined #salt
23:31 SheetiS joined #salt
23:31 mosen burp: never found a way to re-use salt-testing
23:32 mosen burp: I thought maybe testing with kitchen-salt might be a way.. Not sure if that is the current recommendation
23:32 kshlm joined #salt
23:33 burp mosen: thanks for your response, yes kitchen-salt might be a way, but i haven't seen any recommendation from salt pips for using it
23:34 mosen burp: it seemed like the unit tests in salt were importing a lot of things from salt itself just to test the standard modules
23:35 burp i did a little grokking in salttesting module src code
23:36 thalleralexander joined #salt
23:36 burp mosen: it had basically extended py unittest framework, and the test suites were run using runtests.py script in salt
23:37 burp mosen: i like how salttesting is written and designed, it would be nice to use this somehow
23:38 mosen burp: yep I would like to use it too if you figure it out :)
23:39 burp mosen:  but firstly, what are your thoughts on unit testing salt modules, do we get ROI from it from a devops perspective ?
23:40 mosen burp: you mean states or execution modules?
23:40 burp i mean execution modules :)
23:44 oida joined #salt
23:45 burp i feel that unit-testing custom modules is a bit ignored in salt
23:46 quasiben joined #salt
23:46 mosen kinda, except if theyre part of salt :)
23:47 thalleralexander do you have something like unit tests for states? some colleges and i where thinking about developing something that :D
23:49 nikogonzo +1 am curious about what people are doing for unit tests
23:55 jcristau joined #salt
23:55 shaggy_surfer joined #salt
23:57 jeward joined #salt
23:58 Jarus joined #salt
23:59 flebel joined #salt
23:59 burp im from a dev (60%) & ops (40%) background, also a salt noob, but before writing salt modules, my mind always tell me to write tests first

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