Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2016-04-24

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

All times shown according to UTC.

Time Nick Message
00:01 dajones70 It found my common/init.sls but not the common/managed_by_salt file it references.  I have triple checked the file name in the init.sls and what is in the repo.
00:04 jfindlay dajones70: if you can reduce it to a reproduceable test case, I would suggest filing an issue, or looking through the gitfs-related bugs: https://github.com/saltstack/salt/issues?q=is%3Aissue+is%3Aopen+gitfs+label%3ABug+label%3A%22File+Servers%22
00:04 dajones70 /var/cache/salt/master/file_lists/gitfs shows the common/managed_by_salt so I am confused as to why the minion can't see it.
00:04 jfindlay terminalmage is very good at keeping on top of those
00:06 dajones70 I am sure it's an issue with what I am doing so not ready to file a bug report yet.  Just wondering if there are any tshooting commands in addition to "salt-run fileserver.envs sources=True" that would help me see what the salt master is seeing.
00:06 jfindlay dajones70: can you create a gist/paste of it?
00:07 dajones70 Which part of "it" ?
00:07 jfindlay you can use `cp.list_master` to list the files hosted by the master
00:08 jfindlay dajones70: how about your failing state sls and the associated command output?
00:08 jfindlay and your fileserver master configs
00:09 ninjada joined #salt
00:09 dajones70 salt test.example.com cp.list_master
00:09 dajones70 test.example.com:
00:09 dajones70 - common/init.sls
00:09 dajones70 - common/managed_by_salt
00:09 dajones70 - top.sls
00:11 dajones70 salt test.example.com state.highstate
00:11 dajones70 test.example.com:
00:11 dajones70 ----------
00:11 dajones70 ID: /tmp/managed_by_salt
00:11 dajones70 Function: file.managed
00:11 dajones70 Result: False
00:11 dajones70 Comment: Source file salt:/common/managed_by_salt not found
00:11 jfindlay your salt url looks wrong to me: should be `salt://common/managed_by_salt`
00:12 dajones70 Oops.  See, it was something simple...
00:12 dajones70 Thanks
00:13 jfindlay did that fix it?
00:13 dajones70 About to fix and try again.
00:15 dajones70 That did it.  Thanks for the extra eyes.  I would have looked at that forever.
00:16 jfindlay nice!
00:16 jfindlay also, I'm glad it wasn't a bug :)
00:17 jfindlay I tend to think everything is a bug because I look at bugs all the time
00:18 dajones70 Thanks for what you do to squash bugs in salt and help here.
00:19 jfindlay sure :)
00:30 rem5 joined #salt
00:32 GreatSnoopy joined #salt
00:36 stooj joined #salt
00:49 dajones70 left #salt
00:50 pdayton joined #salt
00:59 brianfeister joined #salt
01:02 catpigger joined #salt
01:10 rem5 joined #salt
01:20 beardedeagle jfindlay: you still around?
01:22 brianfeister joined #salt
01:22 jfindlay beardedeagle: yes
01:23 beardedeagle can you close https://github.com/saltstack/salt/issues/32719
01:23 saltstackbot [#32719]title: Salt-Call Hangs when IPv6 is disabled on System | ### Description of Issue/Question...
01:23 beardedeagle I worked with him and it is 100% him
01:23 beardedeagle nothing on salts end
01:23 jfindlay cool, thanks
01:23 beardedeagle npnp
01:24 RandyT joined #salt
01:27 linjan_ joined #salt
01:35 RandyT joined #salt
01:45 IndyRob joined #salt
01:45 iceyao joined #salt
01:47 ilbot3 joined #salt
01:47 Topic for #salt is now Welcome to #salt! | Latest Versions: 2015.8.8, 2016.3.0rc2 | SaltConf16: http://saltconf.com/register/ | 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
01:50 ninjada joined #salt
01:53 meekrab joined #salt
02:21 kevinquinnyo if i create a module in my <file_roots>/_modules/foo/bar.sls with a single function:  def do_something() , should i be able to call salt some-tgt foo.bar.do_something ?
02:22 kevinquinnyo after i do salt \* saltutil.sync_all
02:22 kevinquinnyo it's not working, so i'm wondering if it should, so i know where to troubleshoot
02:23 isntall joined #salt
02:27 Knuta kevinquinnyo: I don't know anything about modules, but I'd expect you to need to have the code on your minion
02:28 kevinquinnyo Knuta:  think the issue is that i misunderstand the "dot notation" as far as directory traversal goes for modules.
02:29 Knuta kevinquinnyo: salt-call sys.doc might include your module under whatever name it wound up with :-)
02:29 kevinquinnyo i thought that would work, so that i could create custom modules with some organization via directories
02:32 amcorreia joined #salt
02:39 kevinquinnyo No way to nest modules via directories?  For instance, /srv/salt/_modules/kevinquinnyo/web/nginx/staging.py
02:42 kevinquinnyo i'm trying to figure out a way to move "business logic" out of my .sls state files and into modules, so i can keep my code DRY and my state .sls files lean, and I just don't know how to do it
02:42 edrocks joined #salt
02:43 kevinquinnyo i don't know how i *should* do it
02:49 kevinquinnyo i would prefer some directory nesting, instinctively, so i could have something like: /srv/salt/_modules/my_platform_namespace/cache/varnish.py and /src/salt/_modules/my_platform_namespace/cache/memcached.py , etc.. not sure if it's possible to do that and how to call them if so
02:52 kevinquinnyo i'm asking at an ideal time, on a saturday night 10:51 pm Eastern lol
02:52 kevinquinnyo Sunday night*
02:54 kevinquinnyo i dont even know what day it is
02:58 onlyanegg joined #salt
03:28 ageorgop joined #salt
03:37 ninjada joined #salt
03:42 racooper joined #salt
03:44 edrocks joined #salt
03:59 borgstrom joined #salt
04:05 rem5 joined #salt
04:10 quasiben joined #salt
04:10 beardedeagle joined #salt
04:16 zz_Cidan joined #salt
04:16 Cidan joined #salt
04:32 ageorgop joined #salt
04:49 beardedeagle joined #salt
05:05 zer0def joined #salt
05:07 tongpu joined #salt
05:22 beardedeagle supporting python 2 and 3 is a pain in my ass
05:46 edrocks joined #salt
06:07 zer0def joined #salt
06:17 dyasny joined #salt
06:19 Adam__ joined #salt
06:20 ashrov joined #salt
06:20 ashrov HI, Can I run salt on ubuntu 16.04 LTS?
06:21 slav0nic joined #salt
06:26 meekrab joined #salt
06:28 ninjada joined #salt
06:37 meekrab joined #salt
06:41 meekrab joined #salt
06:47 manji joined #salt
06:50 subsignal joined #salt
06:50 zer0def joined #salt
07:23 Fiber^ joined #salt
07:25 pdayton joined #salt
07:37 lero joined #salt
07:47 dyasny joined #salt
07:49 edrocks joined #salt
07:50 ashrov Can I set in nagios formula or any other formula the version I want to install?
08:00 ashrov joined #salt
08:00 punkoivan joined #salt
08:09 ivanjaros joined #salt
08:14 ninjada joined #salt
08:24 dyasny joined #salt
08:35 Lionel_Debroux_ joined #salt
08:36 lero joined #salt
08:39 ninjada joined #salt
08:40 stooj joined #salt
08:52 meekrab joined #salt
08:52 subsignal joined #salt
08:57 rmnuvg joined #salt
08:57 favadi joined #salt
09:01 ashrov Hi,
09:02 ashrov Can I run salt on ubuntu 16.04 lts server?
09:16 punkoivan left #salt
09:23 dmaiocchi joined #salt
09:25 samed joined #salt
09:25 samed joined #salt
09:36 favadi joined #salt
09:39 ninjada joined #salt
09:40 ninjada joined #salt
09:43 JPT joined #salt
09:46 cpowell joined #salt
09:53 edrocks joined #salt
09:57 mavhq joined #salt
10:40 ninjada joined #salt
10:42 beardedeagle joined #salt
10:54 subsignal joined #salt
11:03 favadi joined #salt
11:20 ninjada joined #salt
11:37 lero joined #salt
11:40 Garyx joined #salt
11:55 edrocks joined #salt
12:04 CeBe joined #salt
12:16 favadi joined #salt
12:18 ninjada joined #salt
12:23 CeBe joined #salt
12:39 Jimlad_ joined #salt
12:43 catpig joined #salt
12:49 Jimlad_ joined #salt
12:49 abednarik joined #salt
12:54 CeBe joined #salt
12:56 subsignal joined #salt
12:57 edrocks joined #salt
13:00 iceyao joined #salt
13:01 agend joined #salt
13:06 pdayton joined #salt
13:13 ninjada joined #salt
13:16 favadi joined #salt
13:20 keimlink joined #salt
13:32 ninjada joined #salt
13:32 iceyao joined #salt
13:35 Garyx joined #salt
13:43 eseyman joined #salt
13:50 slav0nic joined #salt
13:56 Ron11 joined #salt
13:57 Ron11 HI, Can I run salt on old redhat version 2.86?
14:01 quasiben joined #salt
14:10 nZac joined #salt
14:16 tharkun joined #salt
14:16 abruanese joined #salt
14:17 Ron11 anyone?
14:17 gtmanfred you cannot
14:17 NV holy shit, why
14:17 gtmanfred we only support back to rhel 5
14:18 rem5 joined #salt
14:18 gtmanfred and rhel 5 will only be supported until the EOL of rhel 5
14:19 nZac_ joined #salt
14:19 Ron11 Thank you
14:19 Ron11 We have a special computer with this old os
14:20 oida joined #salt
14:51 pduersteler joined #salt
14:54 lws joined #salt
15:00 edrocks joined #salt
15:02 pduersteler joined #salt
15:20 maduro joined #salt
15:26 pduersteler joined #salt
15:26 rem5 joined #salt
15:28 nZac joined #salt
15:33 abednarik joined #salt
15:48 cpowell joined #salt
15:53 pdayton joined #salt
15:53 rem5 joined #salt
15:54 abednarik joined #salt
15:54 subsignal joined #salt
16:01 nethershaw joined #salt
16:02 meekrab joined #salt
16:02 keldwud_ joined #salt
16:02 edrocks joined #salt
16:04 flowstate joined #salt
16:07 mavhq joined #salt
16:12 lws joined #salt
16:17 ignarps joined #salt
16:18 lungaro joined #salt
16:20 CeBe joined #salt
16:24 mavhq joined #salt
16:42 kevinquinnyo joined #salt
16:49 noraatepernos joined #salt
16:57 ninjada joined #salt
17:00 XenophonF what's stopping someone from building Python, Salt, etc. on RHEL 2.x?
17:03 s_kunk joined #salt
17:05 abednarik joined #salt
17:13 lws joined #salt
17:29 Lionel_Debroux_ joined #salt
17:30 markm__ joined #salt
17:39 flowstate joined #salt
17:46 ageorgop joined #salt
17:47 maduro joined #salt
17:50 amcorreia joined #salt
17:53 manji joined #salt
17:58 XenophonF asside from, you know, the overwhelming feelings of dread and ennui that come from the thought of having to manually build Python, Salt, etc.
17:58 XenophonF aside?
17:59 AndreasLutro I can't even compile python 2.6 on debian 8
17:59 AndreasLutro I wouldn't even dare try something like red hat 2
18:03 mavhq joined #salt
18:05 edrocks joined #salt
18:07 meekrab joined #salt
18:09 XenophonF would salt-ssh help that guy in that scenario, or does it run the Python minion through SSH?
18:09 meekrab joined #salt
18:11 AndreasLutro salt-ssh just rsyncs the python code including dependencies + the state tree and does a salt-call on the minion, so no
18:11 AndreasLutro you'd probably be better off using ansible
18:11 XenophonF that's what i was thinking he should do
18:13 LotR isn't upgrading the OS in a hurry what he *should* do? :)
18:13 llua i don't think he is going to get far with ansible either.
18:14 XenophonF or at least disconnect it from the network
18:15 AndreasLutro LotR: needless to say, but if that was an easy option, why would they come in here asking the question
18:16 ggoZ joined #salt
18:16 lws joined #salt
18:20 keimlink joined #salt
18:28 beardedeagle Would anyone find a http beacon useful? ie, page monitor page status or specific content on page. Trying to decide if it is worth the effort of writing.
18:28 flowstate joined #salt
18:29 beardedeagle joined #salt
18:29 brianfeister joined #salt
18:43 edrocks joined #salt
18:45 punkoivan joined #salt
18:58 whatever_sd_ joined #salt
19:04 hamsham joined #salt
19:07 AdamSewell joined #salt
19:17 lws joined #salt
19:22 justanotheruser joined #salt
19:32 noraatepernos https://github.com/saltstack/salt-contrib/blob/master/grains/ec2_tags.py What is <salt_root>/_grains — this is on the minion but I’m not sure where.
19:32 AndreasLutro noraatepernos: /srv/salt/_grains on the master
19:33 flowstate joined #salt
19:38 subsignal joined #salt
19:39 AdamSewell joined #salt
19:45 justanot1eruser joined #salt
19:47 AdamSewell joined #salt
19:50 cpowell joined #salt
19:52 whatever_sd_ joined #salt
19:58 traph_ joined #salt
20:06 meekrab joined #salt
20:06 justanotheruser joined #salt
20:07 brianfeister joined #salt
20:08 edrocks_ joined #salt
20:18 lws joined #salt
20:29 justanot1eruser joined #salt
20:29 flowstate joined #salt
20:30 edrocks_ joined #salt
20:41 subsignal joined #salt
20:43 AdamSewell joined #salt
20:47 flowstate joined #salt
20:49 n8n joined #salt
20:52 yolandiv1sser joined #salt
20:57 sjmh joined #salt
21:01 sjmh how does __opts__ get loaded in certain functions?  for instance, why is __opts__ available in renderes/jinja.py, but not in template.py ( which calls the jinja render function.. )?
21:03 punkoivan left #salt
21:14 yolandivisser joined #salt
21:19 lws joined #salt
21:20 wenzel62 joined #salt
21:21 wenzel62 left #salt
21:21 sjmh joined #salt
21:30 cyborg-one joined #salt
21:45 Atomics joined #salt
21:50 abednarik joined #salt
21:50 cpowell joined #salt
21:51 lero joined #salt
22:06 bb74352 joined #salt
22:07 bb74352 Hi, either im blind or this does not exist. Is there a call to just see if a package is installed? Basically im trying to write a state to where mysql/mariadb is installed then perform a state.
22:07 meekrab joined #salt
22:10 edrocks joined #salt
22:14 lero joined #salt
22:15 viq joined #salt
22:16 noraatepernos joined #salt
22:19 lws joined #salt
22:24 ninjada joined #salt
22:29 hrumph bb74352, dosen't pkg.list_pgks do it?
22:30 abednarik joined #salt
22:31 bb74352 hrumph, yeah i guess that does, wasnt thinking about calling a module from inside the state
22:31 hrumph bb74352, i'm actually very unversed in salt
22:31 flowstate joined #salt
22:32 hrumph bb74352, but what do you mean when you say you don't want to call a module?
22:32 hrumph what's the state supposed to do?
22:32 bb74352 hrumph, well i totally wasnt thinking of calling a module at all, i guess brain fart :)
22:33 bb74352 hrumph, basically if mysql/mariadb are installed then file.managed some configs for Icinga monitoring
22:33 hrumph bb74352, ok ic
22:33 hrumph bb74352, wasn't paying attention
22:33 hrumph bb74352, some of the getting started guides should show you how to do that i think
22:34 bb74352 hrumph, looks module.run will do it, havent used it before, but makes sense
22:34 hrumph bb74352, let me give you an example
22:35 hrumph one second
22:36 ninjada joined #salt
22:36 bb74352 hrumph, but just thought i have to take that output if true and then do something, havent messed with these things in salt much yet
22:38 hrumph ok here's my example
22:38 hrumph http://paste.fedoraproject.org/359326/61537472
22:38 hrumph there's a lot of stuff salt experts won't like about thsi i know
22:38 hrumph it's a work in progress i've been mucking about trying different things
22:39 hrumph bb74352, take a look at the two firefox entries
22:39 hrumph the second entry will dump the config files only if firefox is installed
22:40 bb74352 hrumph, yeah, i wasnt thinking of using the installed option
22:40 zenlot joined #salt
22:40 hrumph bb74352, sure, and i'm sorry i misinterpreted your question
22:40 hrumph when i first heard you
22:41 hrumph bb74352, i can see that salt is pretty damn amazing now that i'm starting to learn it at long last
22:41 hrumph don't know how it compares with windows DCS thougoh (for windows stuff)
22:41 bb74352 hrumph, no problem at all, thanks for the help. ive been using salt for only about a monht, but trying to clean up my old code and make it not so ghetto :)
22:41 hrumph be interested in hearing pros compare
22:42 hrumph sorry DSC i meant
22:43 bb74352 hrumph, going to test some of this out, ill shoot you some code just so you know how it turned out. thanks for the help!
22:43 SpeedyPolecat joined #salt
22:44 subsignal joined #salt
22:47 hrumph i don't know anything really about salt or dsc but based on what i'm seeing it seems that they are roughly comparable for windows, but obviously dsc is going to be more feature complete, but in terms of elegance and easy to use syntax i think salt will win by a mile
22:50 bb74352 joined #salt
22:51 wangofett joined #salt
22:53 rem5 joined #salt
22:55 CeBe joined #salt
22:56 edrocks joined #salt
23:00 SpeedyPolecat left #salt
23:01 basepi__ joined #salt
23:07 edrocks_ joined #salt
23:07 basepi__ joined #salt
23:16 numkem joined #salt
23:20 lws joined #salt
23:26 edrocks joined #salt
23:26 keldwud_ joined #salt
23:28 ninjada joined #salt
23:29 yidhra joined #salt
23:30 sjmh joined #salt
23:32 CampusD joined #salt
23:34 edrocks_ joined #salt
23:37 CampusD Hi all, quick question, any ideas why my jinja if statement doesn't seem to work?
23:37 CampusD I have
23:37 CampusD grains:
23:37 CampusD iptables-status: On
23:37 CampusD {% if grains['iptables-status'] == 'On' %}
23:37 CampusD include:
23:37 CampusD - .iptables.1-defaults
23:37 CampusD - .iptables.2-custom
23:37 CampusD - .iptables.3-deny
23:38 CampusD {% endif %}
23:38 CampusD if I remove the if statement, the include works just fine
23:42 ninjada joined #salt
23:45 rem5 joined #salt
23:48 hemebond CampusD: Have you tested that the grains are there?
23:49 hemebond grains.items ?
23:51 cpowell joined #salt
23:53 CampusD iptables-status:         True
23:53 CampusD seems to be there
23:54 hemebond Ah
23:54 CampusD are the words, On/Off reserved ?
23:54 hemebond In YAML, On becomes a True boolean
23:54 CampusD I see
23:54 hemebond If you want a literal On you need quotes around it.
23:55 CampusD that makes sense
23:55 CampusD thanks hemebond:
23:55 hemebond :-)
23:59 ninjada joined #salt

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