Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-11-28

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

All times shown according to UTC.

Time Nick Message
00:00 saltslackbridge joined #salt
00:04 gmoro joined #salt
00:05 lru nevermind, it's the .saltrc that it doesn't seem to care for
00:06 sh123124213 joined #salt
00:07 rem5 joined #salt
00:08 pipps joined #salt
00:08 pipps99 joined #salt
00:10 onlyanegg joined #salt
00:11 asyncsec joined #salt
00:15 zerocoolback joined #salt
00:19 pipps joined #salt
00:24 cyteen__ joined #salt
00:29 threwahway_ joined #salt
00:36 zerocoolback joined #salt
00:54 threwahway joined #salt
00:56 pipps joined #salt
00:59 threwahway_ joined #salt
00:59 GMAzrael joined #salt
01:01 Uni joined #salt
01:04 Manor joined #salt
01:16 GMAzrael joined #salt
01:20 kellyp joined #salt
01:29 GMAzrael joined #salt
01:30 pipps joined #salt
01:35 mTeK joined #salt
01:44 pipps joined #salt
02:00 threwahway joined #salt
02:00 kellyp joined #salt
02:02 threwahway_ joined #salt
02:08 pipps joined #salt
02:12 zerocoolback joined #salt
02:12 relidy joined #salt
02:20 zerocoolback joined #salt
02:20 zerocoolback joined #salt
02:22 zerocoolback joined #salt
02:26 justanotheruser joined #salt
02:27 justanotheruser joined #salt
02:29 Lenz joined #salt
02:38 CrummyGummy joined #salt
02:57 ilbot3 joined #salt
02:57 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.11.8, 2017.7.2 <+> Support: https://www.saltstack.com/support/ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic, and https://saltstackcommunity.herokuapp.com (for slack) <+> We are volunteers and may not have immediate answers
02:58 XenophonF are there any examples of formulas that include winrepo/winrepo-ng repositories?
02:58 nomeed joined #salt
02:59 GMAzrael joined #salt
03:10 zerocoolback joined #salt
03:13 alker1 joined #salt
03:18 quantumsummers joined #salt
03:19 threwahway joined #salt
03:21 CrummyGummy joined #salt
03:23 threwahway_ joined #salt
03:34 Manor joined #salt
03:56 mcqueenorama joined #salt
03:58 GMAzrael joined #salt
04:02 alker joined #salt
04:07 GMAzrael joined #salt
04:11 dlloyd_ joined #salt
04:23 alker1 joined #salt
04:33 alker joined #salt
04:44 Rr4sT joined #salt
04:45 mcqueenorama joined #salt
04:59 syd_salt2 joined #salt
05:04 Manor joined #salt
05:08 tiwula joined #salt
05:09 pipps joined #salt
05:15 mcqueeno1ama joined #salt
05:17 Kax joined #salt
05:19 Hybrid joined #salt
05:21 sh123124213 joined #salt
05:22 chowmeined joined #salt
05:24 threwahway joined #salt
05:29 GMAzrael joined #salt
05:37 threwahway_ joined #salt
05:41 Diaoul joined #salt
05:49 promorphus_home joined #salt
05:51 msn joined #salt
05:57 Hybrid joined #salt
06:00 kellyp joined #salt
06:05 sh123124213 joined #salt
06:08 evle joined #salt
06:10 shiranaihito joined #salt
06:15 Hybrid joined #salt
06:22 threwahway joined #salt
06:23 LocaMocha joined #salt
06:29 threwahway_ joined #salt
06:31 SkyRocknRoll joined #salt
06:46 shripadr joined #salt
06:57 GMAzrael joined #salt
07:13 jhauser joined #salt
07:14 eseyman joined #salt
07:20 mcqueenorama joined #salt
07:29 do3meli joined #salt
07:29 do3meli left #salt
07:35 sjorge joined #salt
07:36 Manor joined #salt
07:38 GMAzrael joined #salt
07:42 threwahway joined #salt
07:42 GMAzrael_ joined #salt
07:45 Naresh joined #salt
07:53 Manor_ joined #salt
07:57 threwahway joined #salt
07:58 Manor joined #salt
08:01 aldevar joined #salt
08:03 pualj joined #salt
08:19 aanriot joined #salt
08:22 Ricardo1000 joined #salt
08:23 _KaszpiR_ joined #salt
08:25 mcqueenorama joined #salt
08:31 Tucky joined #salt
08:52 Hybrid joined #salt
08:53 losh joined #salt
08:54 CrummyGummy joined #salt
09:01 threwahway_ joined #salt
09:03 threwahway joined #salt
09:03 GMAzrael joined #salt
09:06 mcqueenorama joined #salt
09:08 dhwt joined #salt
09:27 mcqueenorama joined #salt
09:28 Ricardo1000 joined #salt
09:35 colegatron joined #salt
09:36 Mattch joined #salt
09:39 gmoro joined #salt
09:40 cyteen__ joined #salt
09:44 scbunn joined #salt
09:48 mcqueenorama joined #salt
09:58 GMAzrael joined #salt
10:00 kellyp joined #salt
10:08 mcqueenorama joined #salt
10:29 felskrone joined #salt
10:29 mcqueenorama joined #salt
10:31 SkyRocknRoll joined #salt
10:50 mcqueenorama joined #salt
10:52 haam3r joined #salt
10:53 asyncsec joined #salt
10:57 GMAzrael joined #salt
11:00 threwahway_ joined #salt
11:10 mcqueenorama joined #salt
11:11 7GHABDQIN joined #salt
11:17 Ricardo1000 joined #salt
11:20 CrummyGummy joined #salt
11:24 Kira joined #salt
11:25 syd_salt joined #salt
11:31 mcqueeno1ama joined #salt
11:34 Manor joined #salt
11:34 k_sze[work] joined #salt
11:34 syd_salt Bit of a different request - has anyone come across any decent (fairly recent) blogs around the topic of rolling out salt? eg 'things I wish I knew' 'Salt - what I did wrong'? Long shot I know...
11:35 syd_salt I've found the odd thing from Googling like - https://www.reddit.com/r/saltstack/comments/3maxi3/what_did_you_guys_wish_you_knew_before_setting_up/, but wondered if anything helped anyone here
11:36 alker joined #salt
11:37 alker joined #salt
11:38 Diaoul joined #salt
11:52 mcqueeno1ama joined #salt
11:53 Neighbour syd_salt: There are some ebooks around about using salt, at varying levels of detail/skill. It will probably be good to read the most basic ebook before diving into salt
11:53 alker1 joined #salt
11:54 tbrb left #salt
11:54 Neighbour syd_salt: Like https://www.packtpub.com/all?search=saltstack
11:54 syd_salt Neighbour, yeah I've read a book or two and gone through quite a bit of docs and have a test environment up and working. But when you're close to pulling the trigger and recommending it... I just want to know if there's any horror stories out there I can avoid.
11:55 Neighbour If you have DTAP-environments, you should be pretty solid against any horror story :)
11:55 _KaszpiR_ joined #salt
12:01 GMAzrael joined #salt
12:11 GMAzrael joined #salt
12:13 mcqueenorama joined #salt
12:14 cyteen__ joined #salt
12:18 colegatron joined #salt
12:21 syd_salt Here's hoping!
12:22 GMAzrael joined #salt
12:25 alker joined #salt
12:33 mcqueenorama joined #salt
12:37 shripadr joined #salt
12:38 usernkey joined #salt
12:43 _KaszpiR_ joined #salt
12:51 Ricardo1000 joined #salt
12:54 mcqueeno1ama joined #salt
12:55 alker joined #salt
12:56 GMAzrael joined #salt
13:00 alker1 joined #salt
13:11 alker joined #salt
13:14 Oida joined #salt
13:14 tacoboy joined #salt
13:15 mcqueeno1ama joined #salt
13:15 rem5 joined #salt
13:15 alker1 joined #salt
13:15 Nahual joined #salt
13:27 GMAzrael joined #salt
13:35 mcqueenorama joined #salt
13:48 numkem joined #salt
13:53 edrocks joined #salt
13:54 bowhunter joined #salt
13:56 mcqueenorama joined #salt
14:01 zerocoolback joined #salt
14:03 gh34 joined #salt
14:08 XenophonF I wish that I used formulas more
14:08 XenophonF e.g., I blew off apache-formula b/c I didn't like how it worked, but maintaining my own version wasn't worth the effort
14:09 XenophonF "used official formulas more" I mean
14:09 XenophonF then again, the official openssh-formula kind of sucks and I like mine a lot better, so YMMV
14:09 XenophonF "sucks for my use cases" I mean
14:09 XenophonF sorry am tired so the filter isn't in place
14:14 XenophonF switching back to the official apache-formula has been a lot of work
14:14 XenophonF but it will make it easier for other people on the team to support my Linux web servers
14:17 mcqueeno1ama joined #salt
14:17 cgiroua joined #salt
14:25 beardedeagle joined #salt
14:26 dagb joined #salt
14:29 dagb am I required/expected to restart salt master after editing /srv/pillars/top.sls ?
14:29 coredumb dagb: no
14:29 englishm_work joined #salt
14:30 dagb coredumb: thank you
14:32 saltslackbridge <eric.robibaro> dagb: unless you run a highstate or saltutil.pillar_refresh on some minion, you probably won't see a change though(and restarting minions won't iirc do one either)
14:35 dagb saltslackbridge: not sufficiently into the terminology yet to be able to parse your undoubtfully helpful hint. I added a proxy to top.sls (and the corresponding config file for the proxy).
14:36 dagb then I started the proxy and accepted the new key.
14:37 dagb But the proxy process dies with : [ERROR   ] No proxy key found in pillar or opts for id fnafffnaffnaff
14:37 mcqueeno1ama joined #salt
14:41 dynek joined #salt
14:42 syd_salt salt \* saltutil.refresh_pillar
14:43 syd_salt Then see if you can get the pillar - salt minion pillar.get pillar_name
14:43 dynek hello - got a basic question, I'm sorry in advance but Google doesn't answer so far :-/ Is there a way to have minions request their state to the master? Every single examples I have seen so far is about the master contacting the minions.
14:44 coredumb dynek: salt-call from the minion
14:44 dynek so if I want to make my minions are up to date with states, I should create a cron job calling salt-call? right?
14:45 coredumb dynek: or you set an internal scheduler that runs a highstate
14:45 racooper joined #salt
14:48 pualj joined #salt
14:49 dynek coredumb: thank you!
14:52 pualj_ joined #salt
14:56 _JZ_ joined #salt
14:56 dagb bah. missing ':' in top.sls .....
14:58 alker joined #salt
14:58 mcqueenorama joined #salt
15:01 ecdhe joined #salt
15:07 DanyC joined #salt
15:14 Zekers joined #salt
15:16 alker1 joined #salt
15:19 mcqueeno1ama joined #salt
15:23 Manor_ joined #salt
15:25 mcqueeno1ama joined #salt
15:26 Manor__ joined #salt
15:26 user-and-abuser joined #salt
15:29 fatal_exception joined #salt
15:34 fatal_exception joined #salt
15:34 fatal_exception joined #salt
15:41 pualj_ joined #salt
15:45 om2 joined #salt
15:48 Hybrid1 joined #salt
15:56 pipps joined #salt
15:59 lclemens joined #salt
16:00 dfinn joined #salt
16:00 KennethWilke joined #salt
16:01 masuberu joined #salt
16:01 lclemens joined #salt
16:05 edrocks joined #salt
16:06 beardedeagle joined #salt
16:07 keltim joined #salt
16:08 masuberu joined #salt
16:09 Elsmorian joined #salt
16:09 DammitJim joined #salt
16:11 hoolio joined #salt
16:19 alker joined #salt
16:20 pualj joined #salt
16:26 jbkc85 joined #salt
16:27 jbkc85 Hi all, how exactly would I get a timestamp to print in JINJA from salt?  I am trying to update a consul KV and put a timestamp in there, just unable to find the correct function
16:29 saltslackbridge <whytewolf> jbkc85 https://docs.saltstack.com/en/latest/topics/jinja/index.html#strftime
16:33 mcqueenorama joined #salt
16:35 Tyrant joined #salt
16:37 jbkc85 Well that was easy.  Thanks.  Next question: is there something im missing on how to diagnose traceback call issues?  I am running a state and it just says minion function caused an exception
16:37 jbkc85 and the traceback is pretty....hard to read
16:39 lordcirth_work jbkc85, you might get more detail from running salt-call -l debug on the minion
16:39 lordcirth_work If the error is a type error, you probably gave a wrong argument somewhere.
16:42 cyteen__ joined #salt
16:43 ouemt joined #salt
16:49 bowhunter joined #salt
16:52 tiwula joined #salt
16:56 nixjdm joined #salt
16:56 Hybrid joined #salt
17:03 aldevar left #salt
17:04 MTecknology Does {% include [...] %} support relative paths?
17:05 nmflounder joined #salt
17:05 saltslackbridge <gtmanfred> i think so.
17:08 MTecknology Any guess what that would look like? I tried {% include './foo.sls' %} but that was an incorrect guess.
17:09 saltslackbridge <gtmanfred> actually if `{% include 'foo.sls' %}` doesn’t work, then I bet include is namespaced on the top of the rendering path.
17:11 MTecknology I juest assumed that wouldn't work since I didn't need a leading slash for the full path, but I didn't actually try.  Easy enough. :)
17:12 MTecknology no go :(
17:18 syd_salt MTecknology, I believe it's an absolute path from file_roots?
17:19 lclemens_ joined #salt
17:19 RandyT could someone give me some assistance with the following jinja?
17:19 RandyT {% set nodeip = salt['dnsutil.A']('{{ node['fqdnname'] }}')[0] -%}
17:19 RandyT the above works fine if I provide a string for the fqdnname
17:20 jmedinar joined #salt
17:20 RandyT trying to parse it out of the pillar data is giving me the following error
17:20 MTecknology well, that's a bummer, but at least {% include ... %} has "ignore missing" which is the thing I really care about. :D
17:20 RandyT Unable to manage file: Jinja syntax error: expected token ',', got 'fqdnname'; line 110
17:20 impi joined #salt
17:21 jmedinar Hello. Is there a way to force the out-putter to be --out=yaml in a module's return?
17:21 saltslackbridge <gtmanfred> RandyT you are alread in jinja
17:21 saltslackbridge <gtmanfred> don’t use {{}}
17:21 saltslackbridge <gtmanfred> {% set nodeip = salt[‘dnsutil.A’](node[‘fqdnname’])[0] -%}
17:23 RandyT gtmanfred: thank you sir, that does the trick... could have sworn I tried that....
17:23 RandyT might have been quoting it in the argument though...
17:23 saltslackbridge <gtmanfred> yeah, if you quote it, you will need to use a format filter
17:23 saltslackbridge <gtmanfred> {% set nodeip = salt[‘dnsutil.A’](’%s.whatever.com’|format(node[‘fqdnname’]))[0] -%}
17:24 RandyT nice hint there as well.. thanks
17:25 DammitJim1 joined #salt
17:28 _xor Hey guys, newbie here that's messing around with SaltStack.  I have my master + 2 minions up and running.  I have another system on which salt is installed and available, but I only want to use it to run commands on the master.
17:28 syd_salt jmedinar, do you mean the default? You can set 'output' in master conf to yaml
17:28 _xor How would I configure the salt command on my local machine to use a remote master?
17:29 kellyp joined #salt
17:30 syd_salt jmedinar, you can also write a function and set the outputter - https://docs.saltstack.com/en/latest/ref/modules/#outputter-configuration
17:31 saltslackbridge <gtmanfred> _xor you are going to need to use the salt-api https://github.com/saltstack/pepper
17:32 _xor Ah ok, no biggie.
17:33 XenophonF joined #salt
17:34 onlyanegg joined #salt
17:36 edrocks joined #salt
17:38 jmedinar the second one is the one I was looking for
17:38 jmedinar thanks syd_salt
17:39 om joined #salt
17:39 syd_salt Cool
17:39 pipps joined #salt
17:43 mcqueenorama joined #salt
17:44 mt5225 joined #salt
17:45 csmule joined #salt
17:46 KennethWilke joined #salt
17:48 pipps joined #salt
17:49 tom[] joined #salt
18:04 mpanetta joined #salt
18:08 lclemens__ joined #salt
18:10 Trauma_ joined #salt
18:10 lclemens joined #salt
18:12 lclemens_ joined #salt
18:14 _KaszpiR_ joined #salt
18:19 edrocks joined #salt
18:23 alker1 joined #salt
18:24 hatifnatt joined #salt
18:24 aldevar joined #salt
18:33 dendazen joined #salt
18:45 pipps joined #salt
18:51 lclemens__ joined #salt
18:58 jbkc85 joined #salt
18:58 jbkc85 Does anyone use the consul.put module here by chance?  Trying to put a JSON object as the value with no luck
18:59 shanth joined #salt
18:59 pipps joined #salt
18:59 edrocks joined #salt
18:59 pipps99 joined #salt
19:02 alker joined #salt
19:02 shanth is it possible to make salt pull data then write and store the results as pillar data for a particular minion?
19:03 shanth trying to stop adding so much pillar data by hand
19:04 saltslackbridge <gtmanfred> shanth check out external pillars
19:04 saltslackbridge <gtmanfred> you could write a custom one for what you are pulling the pillars from
19:05 saltslackbridge <gtmanfred> or possibly a custom grain if the minion can already reach it.
19:07 Llmiseyhaa Urgh.  I've been beating my head against this for a bit... got a map.jinja that I include that seems to render fine, but then get 'dict object' has no member 'data' which A) is an anonymous dictionary, so ????, and B) I don't reference anything named 'data' in the state file at all so... blergh.  Unfortunately stuck on 2016.3 right now so I also can't use most of the fricking debug functions that have been added. >..<
19:08 pipps joined #salt
19:08 MTecknology gtmanfred: BAM!! :D   https://gist.github.com/MTecknology/c130cce089befcaffd2aa9f56ff56d3e
19:08 MTecknology now I gotta know if there's a better way
19:10 bbradley joined #salt
19:15 MTecknology Ah, crud... it breaks when I need to import something with a big blob. :(   Any ideas how I can finish making this work?   https://gist.github.com/MTecknology/7f73ea0ec47c219ccd3374b21902256a
19:16 mcqueenorama joined #salt
19:20 aldevar joined #salt
19:22 _xor How can I list the functions available on a module?
19:23 _xor Nevermind, found it.
19:25 pipps99 joined #salt
19:27 MTecknology syd_salt: I don't suppose you happen to know more about that include function, do ya? I can't even figure out where it's documented or defined in source. The only place "{% include" seems to show up at all is tests/unit/templates/files/test/hello_include.
19:30 dlloyd does the newline after the gpg header have to be there? might be expecting a new directive?
19:41 MTecknology OH!!!
19:41 MTecknology I betcha {% include is a jinja-specific thing, which would only know about yaml and have no concept of rendering.
19:42 * MTecknology tries to remove the newline
19:43 XenophonF these SaltReqTimeoutError exceptions are driving me nuts
19:43 XenophonF how on earth do I even debug them?
19:47 jbkc85 As a backup: is there a module or command for a simple HTTP put command from minions?
19:47 saltslackbridge <gtmanfred> http.query can do that
19:47 saltslackbridge <gtmanfred> just specify the method as PUT
19:47 jbkc85 ah
19:48 jbkc85 so the same module.run: example
19:48 saltslackbridge <gtmanfred> i mean, there is an http.query state module too
19:48 jbkc85 I saw the http.query, just no luck in put
19:48 saltslackbridge <gtmanfred> query takes an argument called method: which is PUT POST DELETE GET
19:48 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/topics/tutorials/http.html
19:49 saltslackbridge <gtmanfred> everything is just passed to salt.utils.http.query, so you can use the same format for any of the modules (runner, execution or state) https://docs.saltstack.com/en/latest/topics/tutorials/http.html#state-module
19:50 MTecknology dlloyd: It wasn't the newline, it was because that thing I said.  I dropped the "#!jinja|yaml|gpg" from prd_netbox.sls and added it to init.sls and all is swell. :D
19:51 dlloyd awesome
19:59 alker joined #salt
20:06 Manor joined #salt
20:08 Manor joined #salt
20:09 om2 joined #salt
20:09 ymasson joined #salt
20:11 kellyp joined #salt
20:17 pipps joined #salt
20:17 dmaphy joined #salt
20:33 Hybrid joined #salt
20:34 DoomPatrol joined #salt
20:41 shanth good idea gtmanfred
20:41 shanth i think at some point i will migrate to external pillar like a database
20:44 pipps joined #salt
20:47 pipps99 joined #salt
20:48 dfinn joined #salt
20:51 Hybrid joined #salt
21:00 _JZ_ joined #salt
21:18 pualj joined #salt
21:19 lclemens_ joined #salt
21:23 Lenz joined #salt
21:24 Lenz joined #salt
21:38 pipps joined #salt
21:41 pipps joined #salt
21:43 shanth im trying to set pillar data and a fallback but im having trouble setting the fallback to pull from pillar as well - the example in the docs is {{ salt['pillar.get']('foo:bar:baz', 'qux') }} how do i make 'qux' also pull from pillar or is that not possible?
21:44 saltslackbridge <gtmanfred> {{salt.pillar.get(‘foo:bar:baz’, salt.pillar.get(‘qux’, ‘whatever’)) }}
21:44 shanth ooo thanks let me try that gtmanfred
21:47 shanth works! gtmanfred just solved a huge solution for me
21:47 shanth <3
21:48 pipps joined #salt
22:00 CampusD joined #salt
22:01 dhwt joined #salt
22:05 pipps joined #salt
22:13 sh123124213 joined #salt
22:13 pipps joined #salt
22:23 dfinn joined #salt
22:28 cgiroua joined #salt
22:41 cgiroua joined #salt
22:42 cgiroua joined #salt
22:51 pipps joined #salt
22:52 xet7 joined #salt
22:54 chowmeined joined #salt
23:03 pipps joined #salt
23:27 dhwt joined #salt
23:28 onlyanegg joined #salt
23:35 DammitJim joined #salt
23:37 rem5_ joined #salt
23:43 dendazen joined #salt
23:44 om2 joined #salt
23:57 pipps joined #salt

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