Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-12-03

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

All times shown according to UTC.

Time Nick Message
00:03 keimlink_ joined #salt
00:05 jbellone joined #salt
00:06 jas02 joined #salt
00:11 Rev_AFK joined #salt
00:14 mdpolaris joined #salt
00:25 Klas joined #salt
00:30 Edgan "hosts": ["u'host-01.acme.com'","u'host-02.acme.com'","u'host-03.acme.com'"],  gtmanfred: This is a problem I have in some cases. Do you know a solution to this problem? This is the output of jinja in a configuration file's template.
00:30 Rev_AFK joined #salt
00:32 dxiri joined #salt
00:34 dendazen joined #salt
00:45 jas02 joined #salt
00:52 SaucyElf joined #salt
01:01 keimlink joined #salt
01:03 MTecknology gtmanfred: it's probably broken, but it's a start... https://github.com/MTecknology/salt/blob/2016.11/tests/unit/modules/debian_ip_test.py#L176
01:03 pmullins left #salt
01:07 jas02 joined #salt
01:09 dxiri joined #salt
01:09 aidin joined #salt
01:11 DEger joined #salt
01:11 nidr0x joined #salt
01:21 scoates joined #salt
01:27 stooj joined #salt
01:31 [SYN\ACK] joined #salt
01:32 gtmanfred MTecknology: if it passes, looks good
01:32 MTecknology gtmanfred: no way it'll pass
01:34 gtmanfred heh
01:34 gtmanfred you could run it locally
01:34 MTecknology self.assertListEqual(debian_ip.get_interface('lo'),   will never be that whole list, but there /should/ be a way to parse/check the entire blob. I just can't find it.
01:34 gtmanfred python tests/runtests.py -n unit.modules.debian_ip_test.DebianIpTestCase.test_get_multiple_interfaces
01:35 gtmanfred just make sure you have the dependencies for salt and SaltTesting installed
01:37 saintromuald joined #salt
01:37 gtmanfred pip install -r requirements/dev_python27.txt -r requirements/zeromq.txt
01:39 MTecknology :(
01:49 stooj joined #salt
01:56 jas02 joined #salt
02:08 jas02 joined #salt
02:17 catpigger joined #salt
02:19 llua whytewolf: https://github.com/saltstack/salt/issues/33708#issuecomment-264608826
02:19 saltstackbot [#33708][OPEN] visudo check command leaves cache file in /tmp | Description of Issue/Question...
02:20 andi- joined #salt
02:20 llua thanks for the help
02:21 MTecknology frick this is difficult
02:23 DEger joined #salt
02:24 edrocks joined #salt
02:32 rai_ joined #salt
02:42 sebastian-w joined #salt
02:48 ilbot3 joined #salt
02:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.4, 2016.11.0 <+> 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:48 mavhq joined #salt
03:03 jas02 joined #salt
03:09 jas02_ joined #salt
03:25 dxiri joined #salt
03:35 spuder joined #salt
03:36 orionx joined #salt
03:43 bastiand1 joined #salt
03:48 voileux joined #salt
03:54 onlyanegg joined #salt
03:54 voileux joined #salt
03:55 MTecknology is jenkins.saltstack under some absurdly high load that never ever goes down?
04:06 kekee joined #salt
04:07 kekee left #salt
04:08 voileux joined #salt
04:09 jas02 joined #salt
04:09 jas02_ joined #salt
04:10 onlyanegg joined #salt
04:14 voileux joined #salt
04:26 edrocks joined #salt
04:30 aidin joined #salt
04:30 jenastar joined #salt
04:31 stooj joined #salt
04:37 stooj joined #salt
04:46 rem5 joined #salt
04:47 esharpmajor joined #salt
04:47 outside joined #salt
04:48 voileux joined #salt
04:49 spuder joined #salt
04:51 MTecknology If my manhattans have reached 1/4 of a $70 bottle of whiskey being finished, is it time to give up for the night?
04:56 voileux joined #salt
04:58 jenastar nah.
05:04 voileux joined #salt
05:07 justanotheruser joined #salt
05:08 voileux joined #salt
05:10 jas02 joined #salt
05:14 DEger joined #salt
05:23 jenastar joined #salt
05:28 rwaweber joined #salt
05:28 dxiri joined #salt
05:29 voileux joined #salt
05:36 voileux joined #salt
05:37 fqh joined #salt
05:43 voileux joined #salt
05:51 voileux joined #salt
06:00 voileux joined #salt
06:07 voileux joined #salt
06:08 preludedrew joined #salt
06:11 jas02 joined #salt
06:11 stooj joined #salt
06:12 jas02_ joined #salt
06:13 lompik joined #salt
06:21 bocaneri joined #salt
06:21 stooj joined #salt
06:24 chowmein__ joined #salt
06:25 cliluw joined #salt
06:26 voileux joined #salt
06:42 stooj joined #salt
06:49 voileux joined #salt
06:49 cyteen_ joined #salt
06:53 jas02 joined #salt
06:55 voileux joined #salt
06:57 jenastar joined #salt
06:57 jenastar joined #salt
06:58 jenastar joined #salt
06:59 jenastar joined #salt
07:00 jenastar joined #salt
07:00 voileux joined #salt
07:01 jenastar joined #salt
07:01 jenastar joined #salt
07:02 jenastar joined #salt
07:04 jenastar joined #salt
07:05 jenastar joined #salt
07:06 jenastar joined #salt
07:08 jenastar joined #salt
07:11 voileux_ joined #salt
07:13 jas02_ joined #salt
07:14 faizy joined #salt
07:21 voileux joined #salt
07:24 samodid joined #salt
07:28 edrocks joined #salt
07:34 jenastar joined #salt
07:38 cyteen__ joined #salt
07:39 MightyJoe joined #salt
07:41 voileux joined #salt
07:44 dxiri joined #salt
07:52 voileux joined #salt
08:00 voileux_ joined #salt
08:00 eprice joined #salt
08:10 eprice joined #salt
08:11 ivanjaros joined #salt
08:11 voileux joined #salt
08:15 eprice joined #salt
08:17 voileux_ joined #salt
08:19 eprice joined #salt
08:19 jas02 joined #salt
08:26 jas02 joined #salt
08:33 voileux joined #salt
08:39 Trauma joined #salt
08:39 eprice joined #salt
08:41 voileux joined #salt
08:48 voileux joined #salt
08:57 voileux_ joined #salt
09:01 dxiri joined #salt
09:02 voileux joined #salt
09:10 voileux_ joined #salt
09:19 voileux joined #salt
09:21 jas02 joined #salt
09:25 voileux_ joined #salt
09:27 jas02 joined #salt
09:28 Jimlad joined #salt
09:30 voileux joined #salt
09:39 voileux joined #salt
09:51 ivanjaros joined #salt
09:53 mavhq joined #salt
10:17 alexlist joined #salt
10:22 jas02 joined #salt
10:26 g0m3z joined #salt
10:28 jas02_ joined #salt
10:34 Jimlad joined #salt
10:35 voileux joined #salt
10:36 Trauma joined #salt
10:42 voileux joined #salt
10:47 stooj joined #salt
10:51 cyteen joined #salt
11:07 demize Is there any way to import a map.jinja from a py rendered file?
11:09 voileux joined #salt
11:13 dxiri joined #salt
11:23 voileux joined #salt
11:28 jas02 joined #salt
11:29 aidin joined #salt
11:30 oida joined #salt
11:34 cyteen_ joined #salt
11:37 jas02 joined #salt
11:39 amcorreia joined #salt
11:42 voileux joined #salt
11:44 jas02 joined #salt
11:46 keimlink joined #salt
11:51 stooj joined #salt
11:54 demize Or a more specific question, is it possible to use slsutil.renderer in a #!py file without having to hard-code absolute paths?
12:01 jas02 joined #salt
12:08 jas02 joined #salt
12:09 demize Alternatively, is it possible to get the path to the minion's file root cache?
12:10 AndreasLutro I think the cp module has some functions to retrieve a file from the master fileserver and return the local cache path
12:11 AndreasLutro I think the easiest way to replace map.jinja with a python file would be to make a custom module though
12:12 jas02_ joined #salt
12:15 demize Don't want to replace map.jinja, I want to use it from a python file.
12:15 demize But mmm..
12:16 AndreasLutro aha
12:16 AndreasLutro I misread you
12:17 demize Which is a documented example use of slsutil.renderer.
12:17 demize Except it doesn't quite work, because it seems to be relative to / :p
12:18 AndreasLutro well the problem with that is, sls rendering expects a dictionary to be returned
12:18 AndreasLutro in yaml format by default
12:18 AndreasLutro a map.jinja just defines a variable
12:18 AndreasLutro I don't think it's possible honestly
12:18 demize The format dosn't matter much, I can do either
12:18 demize The problem is that it can't find the template with a relative path.
12:19 demize Need to give it an absolute path, otherwise it just errors out with "Template does not exist"
12:19 demize (Though using it with salt-call it /is/ relative, hmrph.
12:20 AndreasLutro right
12:20 AndreasLutro cp.get_file should do that for you
12:22 AndreasLutro or cache_file
12:22 demize cache_file looks like it yeah, thanks.
12:23 demize (Though also a tad annoying that there's no way to do an include from a #!py rendered file the same way as eg from a jinja file.  Maybe should open an issue about it, hmm.)
12:23 lompik joined #salt
12:25 AndreasLutro it's a technical limitation really
12:27 demize How so?
12:29 AndreasLutro hard to explain - the way jinja is designed, you can't execute arbitrary python code in a template, and you can't easily import jinja variables into a python program
12:29 aidin joined #salt
12:31 jas02 joined #salt
12:32 edrocks joined #salt
12:33 demize Mmm
12:34 demize Anyway, simple enough to just add a `{{ foo }}` to the end.
12:39 jas02 joined #salt
12:43 jas02_ joined #salt
12:46 amontalban joined #salt
12:52 g0m3z_ joined #salt
12:58 cyteen joined #salt
13:20 cyteen_ joined #salt
13:30 dendazen joined #salt
13:42 netcho_ joined #salt
13:46 g0m3z_ joined #salt
13:50 rem5 joined #salt
13:51 g0m3z_ joined #salt
14:05 aarontc joined #salt
14:06 neilf__ joined #salt
14:19 wangofett joined #salt
14:30 wangofett joined #salt
14:34 edrocks joined #salt
14:44 jas02_ joined #salt
14:50 g0m3z_ joined #salt
15:01 faizy joined #salt
15:13 Rumbles joined #salt
15:14 yuhll joined #salt
15:36 jenastar joined #salt
15:37 pipps joined #salt
15:38 pipps joined #salt
15:39 ivanjaros joined #salt
15:47 jas02 joined #salt
15:54 st8less joined #salt
16:14 bluenemo joined #salt
16:14 Rumbles joined #salt
16:35 jas02 joined #salt
16:40 spuder joined #salt
16:44 yuhll joined #salt
16:47 funabashi joined #salt
16:47 jas02 joined #salt
16:51 pipps joined #salt
16:54 pipps joined #salt
16:59 rai_ joined #salt
17:15 ivanjaros joined #salt
17:22 aidin joined #salt
17:36 edrocks joined #salt
17:41 jas02 joined #salt
17:45 Rumbles joined #salt
17:48 jas02 joined #salt
17:48 jas02_ joined #salt
17:49 inad922 joined #salt
18:16 dxiri joined #salt
18:16 jas02 joined #salt
18:19 felskrone joined #salt
18:19 jas02 joined #salt
18:28 mavhq joined #salt
18:31 jas02 joined #salt
18:47 sh123124213 joined #salt
18:49 netcho_ joined #salt
18:49 jas02_ joined #salt
18:49 parasciidick joined #salt
18:52 jas02_ joined #salt
19:04 hax404 joined #salt
19:05 jas02_ joined #salt
19:11 cyteen joined #salt
19:11 jas02 joined #salt
19:11 inad922 joined #salt
19:22 losh joined #salt
19:29 fracklen joined #salt
19:38 edrocks joined #salt
19:44 seanz joined #salt
19:45 seanz Greetings. It's been a while since I've written a salt state, and I'm having trouble with something kind of simple. I'm trying to download a file like so:
19:45 seanz http://dpaste.com/1Y43XRY
19:45 seanz The highstate runs, but the download step always fails without even trying to download the file.
19:46 seanz Salt always reports a different hash, too, which I think is odd since there's no actual file.
19:46 DEger joined #salt
19:46 seanz Assuming the Jinja variables are filled out the way they should be, what else is wrong with this state block?
19:53 dendazen joined #salt
20:00 pfallenop joined #salt
20:02 iggy seanz: can you run `salt-call -l debug state.sls your.state` and paste the output (make sure you clean up any private info)
20:02 seanz iggy: Ah, thanks. I'll try that.
20:02 jas02_ joined #salt
20:04 prg3 joined #salt
20:04 seanz I switched to git.latest. I was trying to download a repo from BitBucket but decided against it.
20:05 aarontc joined #salt
20:06 s0undt3ch joined #salt
20:10 cyteen_ joined #salt
20:12 dxiri joined #salt
20:14 Sammichmaker joined #salt
20:24 aphor joined #salt
20:29 cyteen joined #salt
20:32 zer0def joined #salt
20:36 seanz joined #salt
20:37 seanz joined #salt
20:43 sh123124213 joined #salt
20:43 jas02 joined #salt
20:45 sh123124_ joined #salt
20:49 dxiri joined #salt
20:56 spuder joined #salt
21:03 netcho_ joined #salt
21:03 jas02_ joined #salt
21:11 jas02_ joined #salt
21:14 Bryson joined #salt
21:14 jas02 joined #salt
21:25 keimlink joined #salt
21:42 jas02 joined #salt
21:50 DEger joined #salt
21:52 eprice joined #salt
21:53 rubenb joined #salt
21:55 pipps joined #salt
22:12 pipps joined #salt
22:20 eprice joined #salt
22:20 ivanjaros joined #salt
22:22 jas02 joined #salt
22:24 dxiri joined #salt
22:38 jas02 joined #salt
22:40 edrocks joined #salt
22:54 nicksloan joined #salt
23:10 sh123124213 joined #salt
23:37 bigjazzsound joined #salt
23:38 nickabbey joined #salt
23:39 jas02 joined #salt
23:40 bigjazzsound I'm trying to make a jinja template that iterates through the list of hosts I have one per line, but my syntax seems to be incorrect. Can someone take a look and tell me where the error is? https://gist.github.com/anonymous/6887344e06fea22a52cb2cd644557747
23:41 yuhll joined #salt
23:49 netcho_ joined #salt
23:49 mirceaulinic joined #salt

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