Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-09-06

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

All times shown according to UTC.

Time Nick Message
00:05 oida_ joined #salt
00:15 SaucyElf_ joined #salt
00:20 spuder joined #salt
00:31 GMAzrael joined #salt
00:31 dxiri joined #salt
00:38 shoemonkey joined #salt
00:47 Church- joined #salt
00:54 johnj_ joined #salt
01:00 nixjdm joined #salt
01:07 dxiri joined #salt
01:25 jab416171 joined #salt
01:27 Gabemo joined #salt
01:34 GMAzrael joined #salt
01:51 ilbot3 joined #salt
01:51 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
01:55 johnj_ joined #salt
01:56 dxiri joined #salt
02:03 edrocks joined #salt
02:10 zerocoolback joined #salt
02:18 spuder joined #salt
02:23 rocket joined #salt
02:24 rocket I am trying to use salt-ssh with an ansible roster script .. has anyone else gotten this to work?
02:45 spuder joined #salt
02:52 Namx joined #salt
02:56 jas02 joined #salt
02:56 johnj_ joined #salt
02:56 onlyanegg joined #salt
03:06 oida joined #salt
03:18 michelangelo joined #salt
03:34 Uni joined #salt
03:56 dxiri joined #salt
03:57 johnj_ joined #salt
03:57 Uni joined #salt
03:59 oida_ joined #salt
04:17 dxiri joined #salt
04:28 GMAzrael joined #salt
04:30 preludedrew joined #salt
04:33 dxiri joined #salt
04:45 dxiri joined #salt
04:57 sh123124213 joined #salt
04:59 spuder joined #salt
05:02 omie888777 joined #salt
05:04 dxiri joined #salt
05:06 edrocks joined #salt
05:06 ECDHE_RSA_AES256 joined #salt
05:18 dxiri joined #salt
05:18 sh123124213 joined #salt
05:29 ilbot3 joined #salt
05:29 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
05:32 dxiri joined #salt
05:35 Antiarc joined #salt
05:51 dxiri joined #salt
05:55 Bock joined #salt
05:57 preludedrew joined #salt
06:05 dxiri joined #salt
06:07 felskrone joined #salt
06:17 evle joined #salt
06:19 dxiri joined #salt
06:33 dxiri joined #salt
06:34 vb29 joined #salt
06:34 vb29 left #salt
06:38 usernkey joined #salt
06:38 Ricardo1000 joined #salt
06:39 jas02 joined #salt
06:43 jas02 joined #salt
06:44 Namx joined #salt
06:47 onlyanegg joined #salt
06:47 dxiri joined #salt
06:57 jthunt joined #salt
07:06 dxiri joined #salt
07:07 jthunt joined #salt
07:19 onlyanegg joined #salt
07:20 dxiri joined #salt
07:28 pbandark joined #salt
07:35 dxiri joined #salt
07:36 BlackSponge joined #salt
07:38 BlackSponge Hello, I'm trying to write a service to start salt-api on freebsd but I keep getting: No handlers could be found for logger "salt.log.setup". Any clue why ?
07:45 babilen joined #salt
07:49 dxiri joined #salt
07:53 NegiLXXXVIII joined #salt
07:58 schasi joined #salt
08:00 Rumbles joined #salt
08:01 viccuad[m] joined #salt
08:02 viccuad[m] Hello folks. Is there a way to clone a git repo and make sure is there, but don't fetch nor pull it once it has been cloned, post 2015.8.0 ? unsetting rev fails for me
08:02 viccuad[m] thanks in advance
08:03 dxiri joined #salt
08:09 Reverend joined #salt
08:10 mikecmpbll joined #salt
08:11 schasi joined #salt
08:11 schasi Hi everyone
08:12 jas02 joined #salt
08:12 _KaszpiR_ joined #salt
08:14 hoonetorg joined #salt
08:17 coredumb Hey folks
08:18 coredumb Anyone used to the saltclass test suite?
08:18 coredumb I have to write a unit test for a new module but I have no idea how to run the test unit.... Any help?
08:18 aldevar joined #salt
08:21 jas02 joined #salt
08:22 dxiri joined #salt
08:28 Mattch joined #salt
08:31 preludedrew joined #salt
08:32 _KaszpiR_ joined #salt
08:36 dxiri joined #salt
08:48 mikecmpbll joined #salt
09:02 jas02 joined #salt
09:10 schasi How can I run a cmd.run state in the "background"? I tried with "- name: <cmd> &", expecting it to return instantly, but that didn't work
09:18 babilen You can't (as that would allow for concurrent state runs)
09:19 babilen What are you trying to achieve?
09:27 schasi joined #salt
09:27 schasi babilen: Have some states that take a long time run in the background, to not have the "minion did not respond" message
09:28 schasi babilen: Exmaple is the "portsnap" from yesterday, or jail creation, which both take a long time
09:28 babilen You can run it with "--async"
09:29 schasi At the same time, these are hindered by bottlenecks that might not be there in the future, like slow storage connections and slow internet connections
09:29 schasi The whole salt-run command? Huh. I was going for a single state first ;-)
09:29 schasi Was also thinking of running a script that does things in the background
09:30 babilen You can run a single SLS with that asynchroneously, if that state is independent of the others
09:31 _KaszpiR_ joined #salt
09:31 schasi But I would have to either use cmd.run or do it manually, to use "--async"? Do I understand that correctly?
09:32 babilen Presumably you have a number of states you want to execute on a fresh minion .. as salt executes states individually you'll have to wait for each of them to complete
09:33 babilen The "timing out" bit is simply an idiosyncrasy of the user interface and doesn't mean that the state run itself timed out
09:35 schasi Yes, but when running orchestration, it throws and error and when having requisitest, that might probibit other states from executing
09:36 babilen https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.sls allows you to run states concurrently and asynchroneously ..
09:36 babilen Ah, so your orchestration is failing because your highstate run is timing out?
09:37 schasi Exactly
09:37 _KaszpiR_ joined #salt
09:37 babilen Not sure how to deal with that
09:37 schasi Another way would be to run several smaller states instead of the highstate in the orchestration
09:38 schasi I need an irc bouncer X) gtg, lunch
09:38 schasi Thanks for your answers babilen. You are very present and knowledgeable :D
09:38 babilen Can you run the long running one asynchroneously?
09:38 schasi Yes, totally
09:38 babilen Might want to do that
09:39 babilen Problem is that you'd have to deal with requisites differently and rely more on events that are fired when certain steps have been completed
09:40 schasi I might wanna got for event-based orchestration eventually, as that is cooler ;-)
09:40 schasi I think I will find a solution
09:41 schasi Anyway, gtg. l8ers :D
09:58 ereslibre joined #salt
10:04 mbologna joined #salt
10:14 darioleidi joined #salt
10:29 jas02 joined #salt
10:31 frygor_ joined #salt
10:32 GMAzrael joined #salt
11:00 stankmack joined #salt
11:03 zerocoolback joined #salt
11:06 cyborg-one joined #salt
11:06 ereslibre hello! using the salt-api, given that I have the orchestration `jid`, is there any way to retrieve all jobs that it triggered?
11:07 ereslibre I'd like to retrieve the whole orchestration run output using the api with its `jid` provided
11:09 edrocks joined #salt
11:20 stankmack joined #salt
11:24 xet7 joined #salt
11:34 Hybrid joined #salt
11:41 onmeac joined #salt
11:52 GMAzrael joined #salt
12:05 Rumbles joined #salt
12:12 Hybrid joined #salt
12:13 schasi joined #salt
12:13 schasi re
12:13 johnkeates joined #salt
12:18 slugfish good eastcoast morning to y'all
12:19 slugfish got a question about setting up salt-proxies as a service that i figured someone here might be able to help me with
12:21 slugfish when i create the salt-proxy@.service i'm having a hard time understanding what the @ is for. I assumed it was a vairiable for the proxyid. ie vmx3 or router1. am i way off?
12:23 zerocoolback joined #salt
12:24 teatime joined #salt
12:27 zerocool_ joined #salt
12:28 ahrs joined #salt
12:32 dev_tea joined #salt
12:38 Hybrid joined #salt
12:41 ssplatt joined #salt
12:44 nkrshna joined #salt
12:45 dxiri joined #salt
12:46 slugfish figured it out! I was being dumb.
12:49 TomJepp joined #salt
12:53 gh34 joined #salt
12:54 oida joined #salt
13:04 toastedpenguin joined #salt
13:12 numkem joined #salt
13:16 babilen slugfish: Please tell
13:16 babilen (in case somebody finds this question)
13:17 mchlumsky joined #salt
13:18 evle joined #salt
13:22 racooper joined #salt
13:27 Church- joined #salt
13:39 ssplatt joined #salt
13:40 CrummyGummy joined #salt
13:44 edrocks joined #salt
13:49 kedare joined #salt
13:51 fatal_exception joined #salt
13:53 cyteen joined #salt
13:56 cgiroua joined #salt
14:12 thinkt4nk joined #salt
14:13 _aeris_ joined #salt
14:13 jas02 joined #salt
14:15 thinkt4nk what is the best way to troubleshoot "unavailable" ext modules on a minion? I see the module in /var/cache/salt/minion/extmods/modules but when I attempt to run the module it tells me it is unavailable
14:19 debian112 joined #salt
14:27 promorphus joined #salt
14:32 obscuras joined #salt
14:42 ilbot3 joined #salt
14:42 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
14:48 ilbot3 joined #salt
14:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.7, 2017.7.1 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> We are volunteers and may not have immediate answers
14:55 testerbeta joined #salt
14:55 testerbeta left #salt
14:57 _JZ_ joined #salt
15:00 teatime left #salt
15:11 sarcasticadmin joined #salt
15:19 alvinstarr joined #salt
15:24 lordcirth_work thinkt4nk, that means that system tools it needs aren't installed
15:25 thinkt4nk there was actually a dependent module that was missing, but thank you
15:25 lordcirth_work Oh.  Similar. What dependent module?
15:26 thinkt4nk custom dependent module
15:27 thinkt4nk sorry, python module upon which our ext module depends
15:28 obscuras does "include" not make jinja variables in the included sls available to the caller?
15:28 spuder joined #salt
15:31 lordcirth_work obscuras, I think includes get run after jinja
15:33 Brew joined #salt
15:38 vb29 joined #salt
15:42 lorengordon joined #salt
15:43 tiwula joined #salt
15:48 astronouth7303 ok, what do people do with salt-bootstrap on windows? I'm not sure how WinRM is supposed to get a CA-signed certificate when it's vanilla, and winexe is basically a dead project that i keep running into issues compiling
15:49 GMAzrael joined #salt
15:49 astronouth7303 the problem: the option in salt to ignore SSL verification errors is in devel, not backported, and pywinrm defaults to verifying certs. The alternative to WinRM is samba-based stuff through winexe but it's appears to be basically dead
15:52 tapoxi joined #salt
15:53 domel joined #salt
15:54 Hybrid joined #salt
15:58 domel left #salt
16:02 include joined #salt
16:05 lordcirth_work astronouth7303, why does salt-bootstrap need a CA cert?  I thought it just configured a minion?
16:06 astronouth7303 winrm is over HTTPs
16:06 astronouth7303 it needs to be able to load files and execute commands on a remote computer without the minion agent. Windows is not generally equiped with sshd
16:10 astronouth7303 the two options for executing remote commands on windows are WinRM and some kind of cifs/smb-based thing
16:10 include left #salt
16:11 bushelofsilicon joined #salt
16:16 lordcirth_work If you can configure this winrm to listen, why can't you just install salt?
16:20 cyteen joined #salt
16:23 astronouth7303 because pywinrm, the client library used by salt to talk to the winrm service on the minion, verifies HTTPS certificates by default, and winrm generally uses a self-signed cert. And while I'm _sure_ there's a way to give winrm a signed certificate to use, i'm not sure how you do that on a fresh, bare windows install.
16:23 astronouth7303 you know, before you've installed your configuration management software
16:28 motherfsck joined #salt
16:30 lordcirth_work astronouth7303, or you could set the salt-bootstrap script to run as part of the new PXE install/image/
16:30 motherfsck I'd imagine that someone here can answer a general mapfile/pillar question.
16:30 motherfsck I'm starting to re-write some old states to make them more modular.  I'm familiar with pillar but using map files is a new concept.  I feel like I grasp it and know how to leverage it but I'm having trouble deciding what to stick in pillar and what ot stick in a map file.
16:31 motherfsck I guess I'm looking for the dmarc point between the two. Maybe map files to account for any drift between systems?
16:32 astronouth7303 lordcirth_work: we don't have that sophisticated pxe setup
16:32 lordcirth_work motherfsck, I think people use map files mostly to account for distro differences
16:32 lordcirth_work astronouth7303, so how are you installing Windows, then?
16:32 astronouth7303 lordcirth_work: cloning a template vm
16:33 lordcirth_work astronouth7303, so put the script in the template
16:33 motherfsck lordcirth_work, That's what I was thinking.  I guess I was thrown off by some of the states I inherited that nearly everything defined in a map file.
16:33 motherfsck thanks
16:33 astronouth7303 salt cloud fails if it can't bootstrap
16:33 astronouth7303 and you'd still have to do the new minion key handshake
16:35 dxiri joined #salt
16:37 aleph- joined #salt
16:42 thinkt4nk left #salt
16:44 hashwagon joined #salt
16:46 jas02 joined #salt
16:59 zerocoolback joined #salt
17:09 Antiarc joined #salt
17:10 GMAzrael joined #salt
17:10 sh123124213 joined #salt
17:14 jas02 joined #salt
17:17 Rumbles joined #salt
17:19 promorphus joined #salt
17:21 heaje joined #salt
17:21 schasi joined #salt
17:28 jas02 joined #salt
17:32 Church- joined #salt
17:32 nixjdm joined #salt
17:35 ssplatt joined #salt
17:36 salt_ joined #salt
17:39 domel joined #salt
17:43 domel left #salt
17:44 domel_ joined #salt
17:49 domel__ joined #salt
17:50 domel__ left #salt
17:50 domel__ joined #salt
17:51 domel__ left #salt
17:51 domel__ joined #salt
17:52 domel__ joined #salt
17:53 xet7 joined #salt
17:57 domel__ left #salt
17:58 domel__ joined #salt
17:59 cyborg-one joined #salt
18:03 domel__ joined #salt
18:07 klaas joined #salt
18:12 domel joined #salt
18:15 smead_ joined #salt
18:20 csmule joined #salt
18:21 csmule How do I install a custom module (sudoers formula in my case) for each environment?
18:21 csmule I want to do:
18:21 csmule salt 'dev-machine' state.apply sudoers saltenv=dev
18:21 csmule Sorry first, HI all. Have a question ^ :)
18:23 lordcirth_work csmule, it's ok, you don't need to bother with that on IRC :P
18:24 csmule :).
18:24 whytewolf csmule: the modules don't really go to a enviroment. they just exist in the system. so just having a _state module in the base should be fine. however if you have your _state or _modules in another enviroment. try syncing with that enviroment such as salt '*' saltutil.sync_all saltenv=dev
18:25 csmule So if my base root is /srv/salt, then put it under /srv/salt/_states, right?
18:25 whytewolf yeap
18:26 smead Hey all, I'm using salt-cloud to build a bunch of cloud machines that get setup and torn down somewhat quickly.  Is there an easy way to have salt-cloud run a state via salt-ssh ?
18:26 csmule okie, I'll take a step back and try that. Thanks whytewolf
18:26 domel Hi
18:26 whytewolf welcome domel
18:27 domel wow got this working thx whytewolf
18:27 whytewolf np
18:27 domel use question... is it possible to add setopt=obsoletes=0 flag to pkg.installed state... just looking for a syntax help
18:27 Rumbles joined #salt
18:28 lordcirth_work domel, sending arbitrary command line args to the package manager?  Not implemented: https://github.com/saltstack/salt/issues/7923
18:30 slugfish got an issue geting a proxy up
18:30 domel i was hoping it would be key value arg
18:30 jas02 joined #salt
18:31 slugfish 'No proxy key found in pillar or opts for id vmx6' I changed the pillar from junos to napalm but havn't done any other changes.
18:32 domel something like https://gist.github.com/mak2099/d27e2ed50cfd2ac517cd31d955458ccc
18:33 lordcirth_work domel, as you can see in the issue, others would like that too.  You can implement it if you have the time.
18:34 Hybrid joined #salt
18:37 jas02 joined #salt
18:39 _KaszpiR_ joined #salt
18:43 wavded joined #salt
18:44 nledez joined #salt
18:45 _KaszpiR_ joined #salt
18:46 tsia joined #salt
18:46 omie888777 joined #salt
18:48 nixjdm joined #salt
18:56 frygor_ joined #salt
18:57 obscuras how can I tell what version of jinja saltstack is using?
18:58 whytewolf test.versions will give you a list of different modules that salt is using includeing the jinja version
18:58 whytewolf you can also just call --versions
19:00 obscuras thanks!
19:02 obscuras any idea why "from vars.jinja import mymacro with context" would complain about an undefined variable that I've already defined?
19:06 tsia joined #salt
19:07 blue joined #salt
19:13 Rumbles joined #salt
19:15 astronouth7303 is there a state to create a windows service? the default `service` state module as documented doesn't seem to, and i'm not seeing a `win_service` state module
19:17 astronouth7303 the `win_service` command module does do that, but i don't see any state counterparts
19:21 impi joined #salt
19:27 colabeer joined #salt
19:29 bildz joined #salt
19:44 sh123124213 joined #salt
19:48 nixjdm joined #salt
19:57 csmule_ joined #salt
20:00 mikecmpbll joined #salt
20:03 WesleyTech joined #salt
20:03 sh123124213 joined #salt
20:06 schemanic joined #salt
20:06 schemanic hello
20:07 schemanic Is there a global way to set Salt to render gpg automatically?
20:11 whytewolf schemanic: you could look at https://docs.saltstack.com/en/latest/ref/configuration/minion.html#renderer
20:14 dstensnes i have a config file in the form of json that i want to move aside and merge some data into and put back
20:14 dstensnes can anyone give me a clue as of how i would go about something like that?
20:15 dstensnes from a state file i mean
20:18 whytewolf humm, the hardest part of that is loading the old json file.
20:18 dstensnes hmm, yeah
20:19 whytewolf other wise it is just jinja to merge in the new data and a file.serialize to output the dataset as json
20:19 whytewolf import_json only works on things in salt:// currently though
20:19 dstensnes hmm
20:20 whytewolf you could slip down to the python render i guess
20:21 dstensnes that could work maybe
20:22 Rumbles joined #salt
20:24 dstensnes i was thinking a bit about the file.acumulator thingy too
20:27 shanth__ joined #salt
20:29 obscuras is there a way to import/include all variables from a file into the global namespace?
20:30 obscuras (import seems to require listing them all individually or importing "as" a separate namespace)
20:31 obscuras (also, import doesn't seem to pass already-defined variables down into the imported file, even with context)
20:32 jas02 joined #salt
20:36 jas02 joined #salt
20:43 jas02 joined #salt
20:49 cyteen joined #salt
20:50 sh123124213 joined #salt
20:50 nixjdm joined #salt
20:57 vtolstov joined #salt
20:58 vtolstov hi, i'm use pillar stack and need something like salt provide for pillars like pillar.get('xxx:yyy')
20:59 vtolstov but as i see pillar stack cant go to deeper level. does : is salt stuff or python feature for dict ?
20:59 vtolstov (sorry i don't know python =))
21:01 whytewolf vtolstov: https://devopsimply.com/2016/09/24/problems-with-salt-pillar-stack/
21:01 schemanic I'm getting a render error in my pillar when trying to set a key to a value of
21:02 schemanic I'm getting a render error in my pillar when trying to set a key to a value of *
21:03 whytewolf schemanic: '*'
21:04 vtolstov @whytewolf: thanks!
21:05 schemanic https://gist.github.com/anonymous/9c526da112ec108b677cdf99f763fd81
21:05 schemanic @whytewolf - I'll try that. above is a paste of my issue
21:08 btorch left #salt
21:15 smead Hey all, I'm trying to have salt-cloud copy arbitrary files to my new ec2 node.  Looks like I could use a custom bootstrap script, but, I'd rather not.  It looks like 'sync_after_install' should do this, thoughts?
21:25 al31n joined #salt
21:29 Angleton joined #salt
21:30 vb29 joined #salt
21:30 vb29 left #salt
21:33 WesleyTech_ joined #salt
21:45 Angleton joined #salt
21:48 nixjdm joined #salt
21:57 Whissi joined #salt
22:19 noraatepernos joined #salt
22:20 noraatepernos What does require by id look like?  Is it just plain without a key?  Rather than sls: something it’s just ‘something’ right?  Reading docs and it’s hard to figure out.
22:22 noraatepernos Ahh https://github.com/saltstack/salt/issues/4597#issuecomment-130050248
22:27 mikecmpbll joined #salt
22:49 nixjdm joined #salt
22:50 GMAzrael joined #salt
23:01 CeBe joined #salt
23:13 Epx998 joined #salt
23:32 NV Is something up with the RHEL7 2016.11 repos? it appears to be trying to install the rhel6 packages. yumdownloader --urls salt-minion returns the following: https://repo.saltstack.com/yum/redhat/7/x86_64/2016.11/salt-minion-2016.11.7-1.el6.noarch.rpm
23:35 NV hmm cleaned metadata (yum clean all) and seems fine now, weird...
23:36 noraatepernos joined #salt
23:37 * whytewolf shrugs. not seeing anything that should have triggered that.
23:49 spuder joined #salt
23:52 oida_ joined #salt

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