Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-01-23

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

All times shown according to UTC.

Time Nick Message
00:00 cacasmacas joined #salt
00:01 jas02 joined #salt
00:05 benjm left #salt
00:07 alvinstarr joined #salt
00:13 gnomethrower joined #salt
00:17 amontalban joined #salt
00:22 justan0theruser joined #salt
00:24 alvinstarr joined #salt
00:24 antpa joined #salt
00:29 juanito joined #salt
00:33 Ashald_ left #salt
00:37 PatrolDoom joined #salt
00:37 PatrolDoom joined #salt
00:41 * MTecknology got distracted..
00:42 MTecknology sounds good to me then, I can't remember anymore why I thought it was
00:43 amcorreia joined #salt
00:46 patrek joined #salt
00:53 Zilonn joined #salt
00:54 MTecknology failed: found unknown escape character 's';
00:55 MTecknology ... pretty sure \s is valid re.search()
00:58 MTecknology ugly, but it works.. yay!
01:02 jas02 joined #salt
01:04 iggy there's file.line
01:07 antpa joined #salt
01:08 SaucyElf joined #salt
01:08 lukeflynn__ joined #salt
01:09 SaucyElf joined #salt
01:09 XenophonF joined #salt
01:12 necronian joined #salt
01:12 lukeflynn__ Is it possible to hide the output of a password that's used with cmd.run?
01:13 lukeflynn__ reports are being fed into foreman, and when this specific state is run, it returns the command with the arguments in the output, one of those args is a password.
01:16 alvinstarr joined #salt
01:17 madboxs joined #salt
01:23 amontalban joined #salt
01:30 amontalban joined #salt
01:41 madboxs joined #salt
01:43 alvinstarr joined #salt
01:54 juanito_ joined #salt
02:03 jas02 joined #salt
02:05 Zilonn joined #salt
02:09 Nahual joined #salt
02:20 Cottser joined #salt
02:30 cebreidian joined #salt
02:32 edrocks joined #salt
02:40 rem5 joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ (please don't multiline paste into channel) <+> See also: #salt-devel, #salt-offtopic <+> Ask with patience as we are volunteers and may not have immediate answers
02:49 edrocks_ joined #salt
02:52 HRH_H_Crab joined #salt
02:53 juanito joined #salt
02:58 cacasmacas joined #salt
02:58 catpiggest joined #salt
03:02 iggy LukeFlynn: maybe try setting it as an env variable and referring to that (although, I don't know if the environ state module has the same issue
03:04 jas02 joined #salt
03:10 cyborg-one joined #salt
03:30 edrocks_ joined #salt
03:40 amontalban joined #salt
03:45 edrocks joined #salt
03:46 JPT joined #salt
03:49 theredcat joined #salt
03:54 edrocks joined #salt
04:05 jas02 joined #salt
04:11 edrocks_ joined #salt
04:13 edrocks__ joined #salt
04:28 rem5 joined #salt
04:31 preludedrew joined #salt
04:45 cebreidian joined #salt
04:45 antpa joined #salt
04:49 rem5 joined #salt
04:55 LukeFlynn iggy: I was trying to keep everything in salt itself since I find the gpg pillars incredibly useful
04:55 LukeFlynn which is what I'm using to secure this password in source control
04:56 LukeFlynn the problem is that it's being exposed into stdout and a web interface in cleartext, which kind of defeats the purpose of taking these encryption methods in all honesty.
05:03 PatrolDoom joined #salt
05:05 PatrolDoom joined #salt
05:06 jas02 joined #salt
05:08 ruxu joined #salt
05:09 cebreidian joined #salt
05:09 rdas joined #salt
05:11 jholtom joined #salt
05:24 impi joined #salt
05:31 cebreidian joined #salt
05:41 amontalban joined #salt
05:41 amontalban joined #salt
05:47 samodid joined #salt
06:03 iggy LukeFlynn: I meant with the environ state module (we use it to set auth information for openstack utils)
06:04 iggy or stop using cmd.run and write a proper state that wraps whatever you are doing
06:07 jas02 joined #salt
06:15 DEger joined #salt
06:18 DEger_ joined #salt
06:27 DEger joined #salt
06:29 ivanjaros joined #salt
06:42 amontalban joined #salt
06:42 amontalban joined #salt
06:44 irctc917 joined #salt
06:46 dyasny joined #salt
06:53 edrocks joined #salt
07:02 alxf joined #salt
07:08 jas02 joined #salt
07:19 amy_ joined #salt
07:33 honestly babilen: hey, since you seem to be active on saltstack-formulas - what's the merge policy there? It seems since I'm part of the contributors team, I have access to pretty much everything
07:35 impi joined #salt
07:38 gnomethrower Hi guys - https://docs.saltstack.com/en/latest/topics/tutorials/pillar.html#pillar-walk-through
07:38 gnomethrower Having this error and not sure how to solve:     Rendering SLS 'base:edit.vim' failed: Jinja variable 'salt.pillar object' has no attribute 'vimrc'
07:42 MTecknology gnomethrower: drop your config on dpaste.com
07:46 dariusjs joined #salt
07:54 user1 joined #salt
07:58 teclator joined #salt
08:00 darioleidi joined #salt
08:02 gnomethrower exit
08:02 gnomethrower left #salt
08:09 jas02 joined #salt
08:13 ronnix joined #salt
08:22 ronnix joined #salt
08:26 o1e9 joined #salt
08:28 amy_ joined #salt
08:31 JohnnyRun joined #salt
08:34 amy__ joined #salt
08:44 amontalban joined #salt
08:49 DEger joined #salt
08:49 kbaikov joined #salt
08:55 edrocks joined #salt
08:58 infrmnt joined #salt
08:58 krymzon joined #salt
08:59 infrmnt left #salt
09:01 mikecmpbll joined #salt
09:01 evle joined #salt
09:05 bookwar joined #salt
09:11 jas02 joined #salt
09:12 pppingme joined #salt
09:12 Rumbles joined #salt
09:37 s_kunk joined #salt
09:44 markizano joined #salt
09:56 ltsampros joined #salt
10:04 babilen honestly: There isn't really much of a policy apart from "Do no evil" and "Only merge PRs, don't push". I personally stay away from formulas that I haven't used before or can't test easily. Typically ask people to clean up their PRs to get rid of "fix error in previous commit" or merge commits and to break them into semantic blocks.
10:05 honestly babilen: ok, which merge method?
10:05 honestly just "click the button on github after making sure there are no surprises"?
10:05 babilen *nod*
10:05 babilen Also don't squash
10:05 honestly ok
10:05 honestly yeah
10:06 honestly make the PR author rebase/squash in a sensible way
10:06 daxroc Is the list provided by grain SSDs idempotent / sorted ?
10:06 babilen Exactly - I found (in all my projects) that it drastically increases code quality
10:07 babilen daxroc: You might want to sort them yourself if you rely on that
10:07 babilen (I don't actually know -- I'd sort of wouldn't expect them to change, but I don't think it is guaranteed)
10:08 daxroc Hym just wondering as I'm using the loop.index to create a mount path. Which will surely break if/when a second disk is added
10:10 daxroc Failing to see how to make this idempotent without pre-seeding a disk -> mountpoint dict
10:10 babilen uuid ?
10:10 amy_ joined #salt
10:12 jas02 joined #salt
10:15 daxroc I guess sort by UUID would be the only way to guarantee the ordering for loop.index
10:15 daxroc babilen: thanks!
10:19 antpa joined #salt
10:20 mariusv joined #salt
10:20 mariusv joined #salt
10:21 cuxtud joined #salt
10:23 kbaikov joined #salt
10:29 jhauser joined #salt
10:32 antpa joined #salt
10:33 paant joined #salt
10:38 antpa joined #salt
10:40 paant joined #salt
10:43 antpa joined #salt
10:47 hvn joined #salt
10:50 amcorreia joined #salt
10:50 DEger joined #salt
10:55 Xenophon1 joined #salt
11:05 amontalban joined #salt
11:05 amontalban joined #salt
11:09 rabha_ joined #salt
11:11 rabha joined #salt
11:11 rabha Hello Everyone
11:12 rabha Is there anyone online?
11:12 AndreasLutro I'm not
11:13 rabha I have a query related to Salt cloud deployment
11:13 xmj Ok
11:13 rabha Fails intermittently with the error as below
11:13 jas02 joined #salt
11:13 rabha [ERROR   ] Failed to deploy 'salttest_svm_jan192017_1'. Error: Command 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /etc/salt/RP_NextGen_Dev.pem -p 22 ec2-user@10.0.1.90 'sudo /tmp/.saltcloud-29cefbdf-6e6f-4092-b111-ad385f1e8b4c/deploy.sh -c '"'"'
11:13 rabha Could you please help?
11:14 rabha This generally fails when we try to create multiple instances at a time
11:14 manji there is nothing after that error?
11:15 xmj cut off in the middle of the command
11:15 xmj use a pastebin...
11:16 Reverend rabha: https://hastebin.com
11:16 vijay_ joined #salt
11:16 Reverend pasta it there and send us a link
11:16 vijay_ i lost the previous chat
11:17 antpa joined #salt
11:19 babilen vijay_: Please paste the entire error (and maybe more?) to one of http://paste.debian.net, https://gist.github.com, http://sprunge.us, … please
11:20 babilen The line you pasted before wasn't complete
11:24 antpa joined #salt
11:26 paant joined #salt
11:30 hvn joined #salt
11:32 antpa joined #salt
11:50 cuxtud In my state I have a jinja if condition which verifies the post data and runs the state defined in the condition. I got the statements for restarting a service, the module is cmd.service.restart what wouldbe the module to install a package on a target. will it be pkg.installed?
11:51 brij joined #salt
11:51 brij Hi
11:51 brij Need help with Salt Cloud
11:52 Reverend cuxtud: this in a reactor right?
11:54 brij I am trying to create multiple instances present in map file
11:54 brij I am not sure about reactor.. I am new to SaltStack
11:54 brij salt-cloud -m <path to map file> -P
11:55 brij map file has multiple machines
11:55 cuxtud reverend: yep
11:55 brij Deployment is successful on some machines
11:55 brij On others it gives an error like:-
11:55 brij 'ssh -t -t -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -oControlPath=none -oPasswordAuthentication=no -oChallengeResponseAuthentication=no -oPubkeyAuthentication=yes -oIdentitiesOnly=yes -oKbdInteractiveAuthentication=no -i /etc/salt/RP_NextGen_Dev.pem -p 22 ec2-user@10.0.1.33 'sudo /tmp/.saltcloud-7e805fe9-0ba7-4b9f-a3d2-b6057af0a124/deploy.sh -c '"'"'/tmp/.saltcloud-7e805fe9-0ba7-4b9f-a3d2-b6057af0a124'"'"''' failed. Exit
11:56 Reverend JESUS
11:56 Reverend hastebin us!
11:56 Reverend i refuse to read that on principle. >_<
11:57 edrocks joined #salt
11:57 Reverend cuxtud: Okay. I generally use "local." in mine, as it translates into command line arguments... let me have a look
11:57 brij http://pastebin.com/Xc7DHeL1
11:58 Reverend brij: what's all thge """'""''""" nonesense about?
11:58 cuxtud reverend: http://paste2.org/OGJhvmpz
11:58 brij Not sure
11:58 brij It was printed in salt logs
11:59 Reverend brij: is that constructed with jinja?
11:59 lasseknudsen joined #salt
11:59 Reverend cuxtud: try local.pkg.install
12:00 Reverend https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.pkgutil.html
12:00 brij Umm.. I am not sure if we are on the same page
12:00 brij I am getting problems while deploying minion
12:00 ruxu joined #salt
12:01 Reverend brij: oh i see. you're spinning it up -with- salt cloud?
12:01 Reverend and get that error?
12:01 brij yes
12:01 Reverend ah okay. is the box still running?
12:01 brij salt-cloud -m <path to map file> -P
12:01 brij yes box runs
12:01 brij box also has deployment files inside tmp dir
12:01 antpa joined #salt
12:02 Reverend I don't know much about salt cloud tbh... so I'm gonna be shit all help. but that command is PROBABLY failing due to the ""''"""'""""" rubbish.
12:02 brij but minion service is not installed
12:02 brij How can we remove that rubbish?
12:02 brij Any idea?
12:02 * Reverend shrugs
12:02 Reverend I'm sorry :/
12:02 brij Is there anyone else who has faced similar issue while deploying multiple ec2 instances?
12:03 Reverend I do live for AWS though.. so I'd like to congratulate you on moving to the dark side. >:)
12:03 brij I did find similar issue dated 2014
12:03 brij haha .. thanks :)
12:04 brij I am going to pastebin the debug logs in 2 mins
12:09 abednarik joined #salt
12:09 abednarik joined #salt
12:10 Reverend brij: use hastebin or centos.paste or something
12:10 Reverend pastebin doesn't colourize or format anything :/
12:14 jas02 joined #salt
12:14 antpa joined #salt
12:15 hvn joined #salt
12:15 hvn joined #salt
12:19 toanju joined #salt
12:25 cuxtud reverend: tried cmd.pkg.install , local.pkg.install, pkg.install but didn't work. strange thing is it returns success for the curl. might need to run master in debug probably
12:26 brij Hi
12:27 brij I have tried again in debugging mode and deployment of few machines failed again
12:27 brij I have pasted the error in hastebin
12:27 brij https://hastebin.com/orovaqufex.sql
12:27 brij Can you please have a look?
12:27 brij May be it's familiar to you
12:28 catpigger joined #salt
12:32 cuxtud reverend: got it working. thanks
12:33 Reverend cuxtud: linx pls
12:33 Reverend :)
12:33 Reverend wanna see what you dod
12:33 Reverend did*
12:34 brij yes
12:34 brij please
12:34 brij I just ran salt-cloud command
12:34 Reverend cuxtud is one of those guys on the forums that say "Solved" in the title, and the last post it "nevermind, i got it working, thanks" :P haha
12:35 brij salt-cloud -l debug -m /etc/salt/cloud.maps.d/test.map -d --keep-tmp
12:35 Reverend https://imgs.xkcd.com/comics/wisdom_of_the_ancients.png
12:35 brij haha
12:36 brij Hey Reverend, did you get anything from the hastebin log?
12:36 Reverend didn't see it.
12:36 Reverend pm it to me
12:36 Reverend brb - smoking
12:37 ronnix joined #salt
12:39 cuxtud reverend: http://paste2.org/xE3YHccb
12:42 Reverend I thought you said you tried cmd.pkg.install?
12:42 Reverend O.o
12:43 Dr_Jazz Any one here have a good explanation why using salt to download a file is very slow, but using wget it's pretty fast. It's from s3, so I am wondering if that's the problem
12:43 Dr_Jazz or the explanantion rather
12:43 swills joined #salt
12:43 Reverend Dr_Jazz: are you using a formula for that, or file.managed?
12:43 Reverend or what...
12:44 brij Where should I try cmd.pkg.install?
12:44 Reverend brij: we're talking about something completely different :P
12:44 Reverend brij: he's on about reactors.
12:44 Dr_Jazz Reverend: using file.managed with an s3 URL
12:45 Reverend weird.
12:46 Dr_Jazz I am wondering if the resolution of s3 url's that's causing problems
12:46 Reverend if you don't mind me asking, or if you do, obfuscate it; what's the url?
12:50 numkem joined #salt
12:54 lasseknudsen2 joined #salt
12:58 Dr_Jazz Reverend: after a bit of debugging it seems the two url's (i.e. the s3 url and HTTP url are different), but setting s3.service_url seems solve my problem. It's only ever been a problem with hosts in China.
12:58 Reverend yeah. I wonder if the negotiation time + the latency to china is making it horrible :P
12:59 Reverend I'd be reluctant to rely on chinese servers though, as they have GFoC problems all the time
13:02 Dr_Jazz well, i've seen some weird stuff from servers out there. So I am isolating them from everything elses
13:02 tobiasBora joined #salt
13:02 Dr_Jazz which is a drag but required
13:03 Dr_Jazz i.e. i've seen them replacing binaries and libraries on some of the hosts running there
13:12 Pie_Mage left #salt
13:12 cuxtud reverend: the json content had incorrect syntax which was passed thru curl.
13:15 jas02 joined #salt
13:18 amy_ joined #salt
13:20 riftman joined #salt
13:21 DEger joined #salt
13:21 N-Mi_ joined #salt
13:28 antpa joined #salt
13:33 edrocks joined #salt
13:34 squishypebble joined #salt
13:42 rem5 joined #salt
13:46 edrocks joined #salt
14:00 Reverend GG cuxtud :)
14:01 toastedpenguin joined #salt
14:02 7IZAAFHG0 joined #salt
14:08 darthzen joined #salt
14:08 edrocks does dockerng not work with docker 1.13 yet? I tried upgrading last night but all my docker related salt states would just hang forever. I had to downgrade back to docker 1.12.x
14:08 edrocks *which thankfully went really smoothly with `apt-get install docker-engine=1.12.6*`
14:10 toastedpenguin joined #salt
14:13 rylnd joined #salt
14:16 jas02 joined #salt
14:27 daks hello
14:27 daks i wonder if there is any way to define a pillar value inside a state?
14:28 daks i need it because i want to set a specific pillar depending of another pillar
14:28 daks and at the moment we are using 'normal' pillar so we can't get pillar in pillar :-/
14:31 hrumph joined #salt
14:34 antpa joined #salt
14:39 samodid joined #salt
14:39 Kelsar joined #salt
14:46 Kelsar joined #salt
14:47 ProT-0-TypE joined #salt
14:50 onmeac joined #salt
14:51 PatrolDoom joined #salt
14:53 nickabbey joined #salt
14:57 ssplatt joined #salt
14:57 sgo_ joined #salt
14:59 fxhp joined #salt
15:01 hackel joined #salt
15:03 kbaikov joined #salt
15:03 Rumbles joined #salt
15:04 Jesus^ joined #salt
15:06 Jesus^ left #salt
15:10 Tanta joined #salt
15:13 DEger joined #salt
15:17 jas02 joined #salt
15:21 rylnd joined #salt
15:21 seanz joined #salt
15:32 _JZ_ joined #salt
15:36 sarcasticadmin joined #salt
15:37 keldwud joined #salt
15:45 fredvd joined #salt
15:46 eThaD joined #salt
15:50 abednarik joined #salt
15:52 bowhunter joined #salt
15:53 amy_ joined #salt
15:58 wangofett daks: what are you really trying to accomplish? there may be a better way
16:05 dyasny joined #salt
16:06 ronnix joined #salt
16:08 onmeac joined #salt
16:09 onmeac joined #salt
16:10 ruxu joined #salt
16:17 tercenya joined #salt
16:17 tapoxi daks: you can set a grain inside a state or during provisioning, but they don't refresh often. if you're doing something like cluster discovery, you can use mine
16:18 jas02 joined #salt
16:18 morissette joined #salt
16:20 daks i'm using postfix-formula and i needed to set one parameter depending of one of ours
16:20 debian112 joined #salt
16:20 daks i found a way to do it: extending the /etc/postfix/main.cf in the formula to modify it
16:21 daks this way i keep the formula without forking it and can insert my own parameter depending of others
16:21 daks we used the grains way before, but i don't to come back to it :)
16:22 anotherzero joined #salt
16:23 aarontc joined #salt
16:29 N-Mi_ joined #salt
16:32 daks *want
16:33 cuxtud is there a state to install oracle 12c standalone
16:33 Heartsbane joined #salt
16:33 Heartsbane joined #salt
16:38 heaje joined #salt
16:42 nuri joined #salt
16:42 netcho joined #salt
16:42 hoonetorg joined #salt
16:44 nuri Hi, Does anyone know the alternative ways to assign ip address settings during deploying Vmware Virtual Machines?
16:45 tercenya joined #salt
16:47 hoonetorg joined #salt
16:52 daxroc Does anyone have an example of defining custom filters ?
16:55 k_sze[work] joined #salt
16:57 fyb3r joined #salt
17:04 erewok joined #salt
17:04 impi joined #salt
17:04 tercenya joined #salt
17:06 armguy joined #salt
17:06 abednarik joined #salt
17:09 iggy edrocks: you should probably open an issue to get people started looking at it... i suspect not many people have upgraded yet
17:10 edrocks iggy: will do. I looked for issues and didn't see one so I thought it was too early
17:10 iggy docker is almost as bad as pip at releasing backward incompatible changes in "minor" version releases
17:13 nickabbey joined #salt
17:14 erewok hi all, I'm having a problem with a pillar variable.
17:14 erewok I have something like this:{% if 'prod' in grains['id'] %} environment: prod {% else %} environment: dev {% endif %}
17:15 erewok then I do this:
17:15 erewok sudo salt 'prod*' grains.get 'id' prod_engine_worker:     prod_engine_worker
17:15 erewok and yet the environment var renders as "dev".
17:16 DanyC joined #salt
17:16 erewok does anyone have suggestions on debugging how grains get rendered into salt;s jinja2 templates?
17:16 edrocks iggy: maybe it will be fixed soon https://github.com/saltstack/salt/issues/38884
17:16 saltstackbot [#38884][OPEN] dockerng hangs when upgrading to docker 1.13 | Description of Issue/Question...
17:17 iggy edrocks: did you just open that?
17:17 edrocks yes
17:17 iggy okay... because I looked, and if I missed that, we going to get my eyes checked
17:18 edrocks lol. Your fine I just created it
17:18 jas02 joined #salt
17:20 whytewolf erewok: the issue is that your testing for prod being in a list/dict while giving it a string. prod would need to be the whole result of a item with in the list/dict
17:20 erewok ah, interesting.
17:20 iggy erewok: I'd stick to using the top file to target grains, rather than jinja in pillar files
17:20 whytewolf ^
17:21 iggy whytewolf: nein!
17:21 erewok I have another project where the same thing works.
17:21 whytewolf no?
17:21 iggy 'foo' in 'foobar' is true
17:21 erewok ^yeah, from a pure python sense.
17:21 erewok I also tried "something".startswith("something")
17:21 whytewolf interesting always though jinja treated in differently
17:21 erewok which is a bit more string-specific
17:21 iggy it's not specifically mentioned in jinja docs I don't think, but it's one of the pythonisms that bleeds through
17:21 erewok is it treated differently in jinja2?
17:22 iggy in any case... target in your top file!
17:22 erewok alright. fair enough.
17:24 erewok thanks for the suggestions
17:25 Zilonn joined #salt
17:26 ALLmightySPIFF joined #salt
17:29 DanyC left #salt
17:31 MTecknology erewok: iggy and whytewolf don't offer suggestions, the offer perfect solutions!
17:32 whytewolf apperently in this case I offer bad advice. :P must be morning. never got the hang of mornings
17:33 DammitJim joined #salt
17:33 Trev joined #salt
17:34 MTecknology whytewolf: no worries... just blame oba... oh...
17:35 * MTecknology finds a good morning brew
17:35 Guest92093 Hello.  Has anyone here used the salt.states.ini_manage module?
17:35 whytewolf there is an ini_manage?
17:36 MTecknology heh.. that's an interesting looking fesser
17:37 Guest92093 yes
17:37 MTecknology feller*
17:38 debian112 joined #salt
17:38 whytewolf interesting. looks pretty simple.
17:38 Guest92093 ...if it would work.
17:38 whytewolf however. looking simple and it actually working ...
17:39 Guest92093 What might be good alternatives to manage ini files?  In this case, just trying to manage /etc/yum conf files
17:39 MTecknology Guest92093: why don't you share your states and error?
17:39 MTecknology that's a good place to start asking for help, usually ;)
17:39 whytewolf file.managed ....
17:39 Guest92093 Sure... do I just paste in here?
17:39 whytewolf gist, ect
17:41 edrocks joined #salt
17:41 Xk joined #salt
17:41 impi joined #salt
17:42 antpa joined #salt
17:42 XenK joined #salt
17:43 dendazen joined #salt
17:46 DanyC joined #salt
17:48 dyasny joined #salt
17:48 Guest92093 https://gist.github.com/anonymous/cce032737ec0c7a7b827c352d886448f.js
17:49 whytewolf didn't need the .js on that
17:49 mavhq joined #salt
17:49 Guest92093 Sorry, meant:  https://gist.github.com/anonymous/cce032737ec0c7a7b827c352d886448f
17:50 whytewolf ahh, indenting issue
17:51 whytewolf main should be two more spaces in. [lined up with the c in sections.
17:52 Guest92093 Thanks, let me try that..
17:54 iggy Guest92093: we use it extensively for openstack config
17:55 iggy looks like you got your issue solved already
17:55 Guest92093 Yes it was an indenting issue, thanks so much.  iggy good to hear it's used not just by me  :-)
17:55 iggy ... step away to take a shower and everybody comes out of the woodwork
17:55 fyb3r Lol
17:55 whytewolf honestly didn't know about ini_manage. loking at how simple it is i might have to move to it for my openstaaack configs.
17:56 iggy Guest92093: there's a bug in 2016.4... ints and bools will show changes everytime unless you wrap them in strings
17:56 Guest92093 I see the doc shows the proper indenting (i.e. salt-call sys.state_doc ini)
17:56 Guest92093 So just my bad
17:56 iggy whytewolf: it's the tits for openstack stuff... since you have multiple steps of the install touching some of the same files, you can safely separate those
17:58 Guest92093 But I don't understand the YAML here apparently...
17:59 tercenya joined #salt
17:59 Guest92093 salt 'my_minion' state.show_sls yum saltenv=prod showed me it wasn't parsing correctly... so I have to go back to YAML school.
17:59 iggy what was in your original paste was a list with 2 keys: sections (which had no value) and main (which had value of 'assumeyes: 0')
18:00 DanyC left #salt
18:00 Guest92093 Ah...  that helps a lot.
18:00 nickabbey joined #salt
18:01 iggy *a list entry with 2 keys (I guess that's more correct)
18:01 whytewolf yeah you basicly had [{sections:''},{main:{assumeyes:0}}]
18:01 debian112 joined #salt
18:01 Guest92093 yes
18:02 sjorge joined #salt
18:02 gtmanfred it is actually [{sections: '', 'main': {'assumeyes': 0}}]
18:02 iggy ^
18:02 gtmanfred if it had a - in front of main, it would be what you said whytewolf
18:03 * iggy gives whytewolf a day pass away from #salt
18:03 gtmanfred <3
18:04 Guest92093 Thanks all.  Really helped.
18:04 whytewolf I think i need it. maybe a day away from tech in general
18:05 gtmanfred whytewolf: http://i.imgur.com/jrs6uPL.jpg
18:05 gtmanfred i made that saturday :D
18:05 whytewolf ohhhh, that looks good
18:05 gtmanfred p happy with is
18:05 gtmanfred it*
18:05 gtmanfred making more today cause my friends devoured it.  We were up at the wineries in texas hill country
18:06 mikecmpbll joined #salt
18:06 whytewolf very nice.
18:06 bookwar joined #salt
18:09 Trauma joined #salt
18:12 antpa joined #salt
18:15 ronnix joined #salt
18:16 dijit joined #salt
18:16 pipps joined #salt
18:18 ruxu joined #salt
18:19 jas02 joined #salt
18:20 nidr0x joined #salt
18:21 pipps joined #salt
18:21 bltmiller joined #salt
18:27 hop left #salt
18:28 DanyC joined #salt
18:29 DammitJim joined #salt
18:30 DanyC left #salt
18:35 pipps joined #salt
18:35 DanyC_ joined #salt
18:40 mpanetta joined #salt
18:41 s_kunk joined #salt
18:41 mpanetta joined #salt
18:50 Heartsbane So just a quick question: If I am passing a pillar variable in via the command line to call an id declaration inside a state file (using state.sls_id) and the id doesn't exist outside of conditional statement, will it run? (e.g. a database migration on deploying a docker container)
18:51 nickabbey joined #salt
18:51 DammitJim where or how can I securely pass credentials to a mysql server to create users from salt? (I already changed the root password and it's not blank)
18:56 tapoxi DammitJim: mysql formula?
18:57 DammitJim I guess I've been doing my own mysql formula
18:57 tapoxi peer publisher_acl support groups?
18:57 DammitJim LOL
18:57 tapoxi DammitJim: live and learn :)
19:01 whytewolf DammitJim: you mean something like this? https://github.com/whytewolf/salt-phase0-states/blob/master/mysql/users.sls
19:05 bltmiller joined #salt
19:09 toanju joined #salt
19:10 evidence joined #salt
19:13 Brew joined #salt
19:14 ekristen joined #salt
19:16 tercenya joined #salt
19:20 mattl joined #salt
19:20 jas02 joined #salt
19:21 Praematura joined #salt
19:22 netcho joined #salt
19:27 riftman joined #salt
19:29 DammitJim joined #salt
19:30 fredvd joined #salt
19:30 tawm04 joined #salt
19:34 ruxu joined #salt
19:42 onlyanegg joined #salt
19:44 ruxu joined #salt
19:44 promorphus joined #salt
19:48 secrgb joined #salt
19:50 cyborg-one joined #salt
19:51 promorphus joined #salt
19:54 promorphus joined #salt
19:56 promorphus joined #salt
20:10 jgosney joined #salt
20:10 jgosney Hi all, looking for a salt command-line to list all patches in a channel (we are using Susemanager)
20:11 jgosney We recently switched susemanager from spacewalk to salt and with SW, we could run spacewalk-channels --list-patches
20:11 jgosney But can't find an equivalent for salt
20:14 wavded joined #salt
20:15 wavded joined #salt
20:17 mpanetta joined #salt
20:18 KyleG joined #salt
20:18 KyleG joined #salt
20:18 valkyr2e joined #salt
20:19 bwellsnc quick questions about beacons, can beacons watch a directory and/or a directory or just the files in that directory
20:19 Rumbles joined #salt
20:20 bwellsnc sorry directory and/or files
20:20 jhauser_ joined #salt
20:21 jas02 joined #salt
20:22 Trauma joined #salt
20:27 whiteinge joined #salt
20:30 onmeac joined #salt
20:33 brousch__ joined #salt
20:38 josh__ joined #salt
20:39 jprewitt joined #salt
20:40 nmccollum joined #salt
20:42 jprewitt Why are there so many different ways to change the hostname and none of them seem to be supported across both Windows and Linux (salt.modules.win_system.set_computer_name, salt.modules.win_system.set_hostname, salt.modules.network.mod_hostname)?
20:42 cmarzullo ahh ye 'ol hostname game.
20:42 Tanta because it's old
20:42 Tanta and no one did it the same
20:42 Tanta lol
20:43 jprewitt If I wanted to use one mechanism and expect it to work across multiple platforms, which should I use
20:43 Tanta your brain
20:43 Tanta Salt can fork based on the Server's OS family, and other types
20:43 Tanta you can handle multiple systems with one state, ie ubuntu and centos
20:43 jprewitt Yes, but we are building a GUI and want to call one mechanism as opposed to having a bunch of conditional logic for different platforms
20:43 Tanta so do it
20:44 Tanta the mechanism is likely 'salt-call'
20:45 jprewitt yes, but salt-call system.set_computer_name fails on Linux, network.mod_hostname fails on Windows, and system.set_hostname fails on everything
20:45 jprewitt if we were going to put some effort into fixing one of these to work on both Windows and Linux, which should we fix
20:45 pipps joined #salt
20:50 whytewolf if you were going to fix it the best way possable would be to alias to the other name in all of the above.
20:51 amy_ joined #salt
20:52 jprewitt sure, but moving forward shouldn't there be one interface that is recommended above the rest... I'm leaning towards just making system.set_computer_name work across both Linux and Windows
20:54 pipps joined #salt
20:56 tapoxi write a state module that wraps both?
20:57 tapoxi granted the underlying problem is pretty silly but that sounds like a bug report
21:00 pipps99 joined #salt
21:01 xbglowx joined #salt
21:05 whytewolf jprewitt: computer_name is window jargon that means nothing to a linux admin.
21:05 toanju joined #salt
21:05 ruxu joined #salt
21:06 Pepper joined #salt
21:06 whytewolf hostname doesn't fully cover what computer_name does to windows
21:07 whytewolf and on osX computer name and hostname can be different
21:08 Pepper Anyone have experience here using grains dict objects in jinja? I am trying to do something like this: {% if grains['saltversioninfo'][0] == '2016' %} That does not seem to work.. Though I can execute the state file it is in.
21:08 druonysus_ joined #salt
21:08 jprewitt ok... so why not use system.set_hostname on both Windows and Linux?  I'm not sure what is different from a system name and hostname, so I guess what I am after is the hostname
21:09 whytewolf well computer name on windows covers both the hostname and the netBios name IIRC
21:11 whytewolf but like i said i would go with an alias. it covers all the bases. if a windows admin is coming to linux they can set computer name and know that their nomicalture ends up working as a hostname
21:11 whytewolf same for a linux admin swtiching to windows
21:13 jprewitt sounds good to me... we will try to take that approach
21:15 pipps joined #salt
21:16 derrick_m joined #salt
21:17 derrick_m hi all, I am having an issue with salt cloud (ec2), hopefully someone might have an answer. Some of the nodes are not getting bootstrapped, and there is nothing in /tmp but in auth.log I see sshd[1306]: Did not receive identification string from 10.1.32.17
21:17 whytewolf Pepper: your issue. 2016 is a num you are comparing it to a string. [although i thought python auto corrected for that, but just tested. and it doesn't seem to]. drop the '' around 2016 and you should be fine
21:17 derrick_m went through ec2.py and it looks like it tries to run the 'date' command to verify SSH connectivity
21:19 muxdaemon joined #salt
21:19 edrocks joined #salt
21:23 Pepper @whytewolf You are right! Thank you so much it is working now! Do you know of a good way to debug this when I am running salt '*' state.sls mystate test=true? I didn't even know how to look at what was being returned using jinja. Sorry I'm such a noob.
21:23 Pepper I was looking at jinja renders
21:23 Pepper renderers
21:24 cscf Pepper, perhaps state.show_sls ?
21:25 Pepper @cscf Thanks I will look at that next.
21:25 whytewolf well, you can use cp.get_templates to look at the rendered output. [you run it against a minion then go to the minion and view the file. you can also use state.show_highstate show_lowstate
21:25 Pepper @whytewolf Thank you I will look at those as well.
21:27 pipps joined #salt
21:27 muxdaemon Hi - I'm trying to use salt-ssh with with salt.roster.ansible and a dynamic inventory script. I've put the script at /etc/salt/roster but salt-ssh reads it as a flat file rather than executing it. Any one know what I'm missing here?
21:29 seanz joined #salt
21:30 sh123124213 left #salt
21:30 sh123124213 joined #salt
21:30 netcho joined #salt
21:32 muxdaemon aha - got it - needed to specify the roster type with --roster
21:33 muxdaemon added to the Saltfile and jobs a good 'un. Amazing what writing the problem down sorts out :)
21:38 amontalban joined #salt
21:38 amontalban joined #salt
21:46 Edgan joined #salt
21:47 Rumbles joined #salt
21:48 antpa joined #salt
21:55 cyteen joined #salt
21:55 bltmiller joined #salt
21:56 Tanta joined #salt
22:03 pipps_ joined #salt
22:05 kukacz joined #salt
22:05 antpa joined #salt
22:17 jhauser__ joined #salt
22:18 abednarik joined #salt
22:23 jas02 joined #salt
22:32 mosen joined #salt
22:34 muxdaemon How do I dump the minion config out as the minion sees it? I'm using salt-call in standalone and it doesn't appear to pick up my providers: dict content
22:35 KyleG1 joined #salt
22:36 dyasny joined #salt
22:36 anotherzero joined #salt
22:37 DammitJim joined #salt
22:37 sh123124213 muxdaemon: check salt local client. I'm not aware of any modules that do that
22:40 muxdaemon sh123124213: salt-call is a salt local client?
22:41 derrickm joined #salt
22:41 sh123124213 https://docs.saltstack.com/en/latest/ref/clients/index.html
22:41 sh123124213 https://docs.saltstack.com/en/latest/ref/clients/index.html#salt.client.Caller
22:41 sh123124213 __opts__ = salt.config.minion_config('/etc/salt/minion')
22:42 teclator_ joined #salt
22:42 muxdaemon I see. Thanks sh123124213
22:45 fyb3r left #salt
22:47 tercenya_ joined #salt
22:48 raspado joined #salt
23:03 overyander Woo! my first open source code contribution!  https://github.com/saltstack/salt/pull/38897  i'm excited to see this get integrated
23:03 saltstackbot [#38897][OPEN] Win_license module update | … win_license module...
23:04 bltmiller joined #salt
23:04 hvn joined #salt
23:07 xbglowx joined #salt
23:08 N-Mi_ joined #salt
23:08 iggy overyander: it's a good feeling isn't it
23:09 overyander yep
23:09 tercenya joined #salt
23:09 overyander I just hope i did everything in an acceptable manner and documented everything properly
23:10 muxdaemon Got that going sh123124213. providers is empty despite being set in the minions config. One for tomorrow :)
23:11 sh123124213 muxdaemon: sorry didnt see your previous questions but only the last one with the config
23:11 pipps joined #salt
23:11 muxdaemon oh, that's ok. It's all good practice for me to start at the bottom and work up
23:12 muxdaemon I'll do a bit of source code digging tomorrow
23:12 muxdaemon Starting to get a feel for salt again
23:14 RedundancyD joined #salt
23:15 sh123124213 muxdaemon: if you dont see your config and you are sure its there make sure you have good syndax in yaml aka no tabs
23:16 sh123124213 and, try to add the config in /etc/salt/minion instead of folder minion.d cos i'm not sure the command i gave does get those configs
23:18 wangofett joined #salt
23:19 muxdaemon looks like a tab - replaced it with spaces and I can see it now, salt still tries to use brew rather than pkgin on Mac... I've had to make a modification to the pkgin module already to get it to load, maybe more is needed.
23:19 muxdaemon Anyway, bed time or I'll be up all night :)
23:19 muxdaemon Thanks for the help sh123124213
23:20 sh123124213 np, gn
23:21 pipps joined #salt
23:24 jas02 joined #salt
23:31 pipps joined #salt
23:34 phx joined #salt
23:35 mikecmpbll joined #salt
23:41 abednarik joined #salt
23:46 ponyofdeath joined #salt
23:46 pipps99 joined #salt
23:47 pipps_ joined #salt
23:52 justanotheruser joined #salt
23:54 dendazen joined #salt

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