Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-09-09

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

All times shown according to UTC.

Time Nick Message
00:17 onlyanegg joined #salt
00:30 jab416171 joined #salt
00:33 zerocool_ joined #salt
00:47 dendazen joined #salt
01:18 vexati0n gtmanfred: sorry for my crappy attitude, it's been a long week and it's disappointing to discover i've made wayward assumptions about the usefulness of Syndic
01:30 schemanic joined #salt
01:54 ilbot3 joined #salt
01:54 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
02:10 WKNiGHT joined #salt
02:14 Shirkdog joined #salt
02:16 wedgie is there something special I have to do to use the selinux state? Getting this error: Comment: State 'selinux.fcontext_policy_present' was not found in SLS 'yummirror'      Reason: 'selinux.fcontext_policy_present' is not available.
02:16 jas02 joined #salt
02:16 wedgie on centos7
02:18 whytewolf wedgie: is policycoreutils and policycoreutils-python installed?
02:18 wedgie yes
02:19 wedgie on the minion only... not required on master, right?
02:19 whytewolf right. states are run on the minion.
02:21 whytewolf if you use salt-call on the minion with -l debug and the rest of the command you should get more info about why things are not running.  [such as salt-call -l debug state.sls yummirror]
02:21 ouemt joined #salt
02:23 wedgie ok, looking through that now
02:25 whytewolf also, what version of salt are you on?
02:26 wedgie 2016.11.6
02:26 wedgie https://gist.github.com/anonymous/544de87b95f7fd2e02ae38698e3f072b    what i'm trying to do and some of the debug output
02:26 whytewolf oh, well theres your problem
02:27 whytewolf that function came in 2017.7.0
02:27 wedgie doh!
02:27 whytewolf https://docs.saltstack.com/en/2016.11/ref/states/all/salt.states.selinux.html#module-salt.states.selinux
02:28 schemanic Hello, I'm seeing a reference to something called 'accumulator' in a template file, but I'm not seeing it defined in a context or default passage
02:28 wedgie recommendations for accomplishing the command in the gist without it then?
02:29 whytewolf schemanic: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.file.html#salt.states.file.accumulated
02:29 whytewolf wedgie: well, your could either upgrade salt, or upgrade that module and state [i havn't looked if there is more to it then the module and the state]
02:31 wedgie whytewolf: ok, thanks for the help
02:34 Guest75976 joined #salt
02:36 vexati0n what's the salt module that digs into windows and fixes whatever might be stopping windows update from running? :D
02:37 whytewolf salt 'windows minion' disk.format c:
02:37 whytewolf ?
02:38 schemanic This documentation is awful
02:38 schemanic require_in / watch_in
02:38 schemanic One of them required for sure we fill up accumulator before we manage the file. Probably the same as filename
02:38 schemanic what the hell kind of sentence is that
02:39 whytewolf where is that?
02:39 whytewolf or is that in what you are working on?
02:39 schemanic whytewolf, thats in the file.accumulated doc
02:40 schemanic I think I get it now, but it defferred my understanding for sure.
02:40 whytewolf yeah that could use some rewording.
02:42 schemanic also the example is confusing
02:43 schemanic 'jumps over the lazy dog' is only one line, and is long enough that it's not immediately apparent what's happening
02:43 perfectsine joined #salt
02:43 schemanic If I understand correctly, isn't the point of accumulators to append multiple things to files?
02:44 schemanic so it should be something like 'dog', 'cat', 'mouse', 'aardvark', 'correcthorsebatterystaple'
02:44 whytewolf well, it can add a list or a piece of text to the accumulator dict
02:45 whytewolf they show a piece of text
02:45 whytewolf and you can have multiple accumulators
02:46 whytewolf but, honestly it is not something i have ever needed to use. since i can just pass things in directly with context
03:09 johnj_ joined #salt
03:11 kamellion_ joined #salt
03:29 DoomPatrol erm silly question, salt doesn't like if you have 2 values within a pillar for same state? e.g. function: - http
03:29 DoomPatrol - ntp
03:30 DoomPatrol nvm will test this out, think i'm running into a logic issue on how im doing it
03:38 michelangelo joined #salt
03:39 doubletwist Is it possible to run a single built in state from the command line? ie to run something like: salt '*' state.apply group.absent GROUPNAME
03:40 doubletwist or something along those lines?
03:42 whytewolf with what you are asking i think you want https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.state.html#salt.modules.state.single
03:45 doubletwist that's the one. Thanks!
03:46 ibro joined #salt
03:50 doubletwist And then how do I say, target all except one host or all except a couple matching hosts [can be matched based on minion id]
03:51 whytewolf salt -C 'not minions*' <tasks>
03:52 whytewolf [unless you are on a version before 2015.8 in which case that is * and not minions*
03:55 doubletwist worked like a charm. Sweeet. Thanks!
04:10 johnj_ joined #salt
04:25 kuromagi joined #salt
04:31 jas02 joined #salt
05:01 Guest73 joined #salt
05:08 high_fiver joined #salt
05:11 johnj_ joined #salt
05:15 dwfreed joined #salt
05:17 Tgrv joined #salt
05:20 kamellion_ joined #salt
05:59 debian112 joined #salt
06:02 debian1121 joined #salt
06:03 oida joined #salt
06:07 debian112 joined #salt
06:12 johnj_ joined #salt
06:24 ivanjaros joined #salt
06:26 jas02 joined #salt
06:46 marcaurele joined #salt
07:06 debian1121 joined #salt
07:13 johnj joined #salt
07:22 abrcdbr joined #salt
07:30 marcaurele joined #salt
07:33 pualj joined #salt
07:41 debian112 joined #salt
08:02 ouemt joined #salt
08:04 evle1 joined #salt
08:10 jas02 joined #salt
08:12 abrcdbr_ joined #salt
08:14 johnj joined #salt
08:48 ivanjaros joined #salt
09:14 johnj joined #salt
09:48 pbandark joined #salt
10:06 pbandark joined #salt
10:10 marcaurele joined #salt
10:15 johnj joined #salt
10:38 abrcdbr joined #salt
10:41 abrcdbr joined #salt
10:58 hammer065 joined #salt
11:16 johnj joined #salt
11:39 pualj joined #salt
12:17 johnj joined #salt
12:21 brianthelion joined #salt
12:50 jas02 joined #salt
12:55 pualj_ joined #salt
12:58 Sammichmaker joined #salt
13:00 jlaffaye joined #salt
13:08 pualj_ joined #salt
13:10 pualj joined #salt
13:10 o1e9 joined #salt
13:16 oida_ joined #salt
13:18 johnj joined #salt
13:19 debian1121 joined #salt
13:22 Hybrid joined #salt
13:23 svolentin joined #salt
13:27 tsia joined #salt
13:34 tsia joined #salt
13:39 dendazen joined #salt
13:40 brianthelion joined #salt
13:44 ashmckenzie joined #salt
13:55 vtolstov joined #salt
13:55 Church- joined #salt
13:56 vtolstov hi! does it possible to do math operations in jinja2 templates?
13:56 vtolstov for example i have pillar data device.size that for some device equal 300
13:57 vtolstov i need to inject to file value device.size / 100
13:57 vtolstov i'm try {{ device.size / 100 }} but salt says that  'dict object' has no attribute 'size'
13:58 vtolstov but then i'm remove / 100 = size placec correctly
14:01 fritz09 joined #salt
14:02 pualj_ joined #salt
14:05 ahrs joined #salt
14:07 tsia joined #salt
14:12 evle2 joined #salt
14:14 jeddi joined #salt
14:19 johnj joined #salt
14:34 vtolstov =(
14:35 aldevar joined #salt
14:57 aleph- joined #salt
15:20 johnj joined #salt
15:22 jas02 joined #salt
16:06 marwel joined #salt
16:07 marwel left #salt
16:12 kamellion_ joined #salt
16:21 johnj joined #salt
16:22 pbandark joined #salt
16:26 brianthelion joined #salt
16:39 ikarpov joined #salt
16:49 kamellion_ joined #salt
16:51 tsia joined #salt
17:02 marcaurele joined #salt
17:04 XenophonF try device['size']
17:06 jas02 joined #salt
17:22 johnj_ joined #salt
17:24 pualj joined #salt
17:26 ivanjaros joined #salt
17:26 _pualj_ joined #salt
17:28 pualj_ joined #salt
17:32 abrcdbr joined #salt
17:33 marcaurele joined #salt
17:34 nixjdm joined #salt
17:38 cyborg-one joined #salt
17:41 Tgrv joined #salt
18:03 marcaurele joined #salt
18:12 Guest73 joined #salt
18:16 pualj joined #salt
18:22 johnj_ joined #salt
18:36 cboltz joined #salt
18:36 cboltz hi!
18:37 cboltz I have a salt master running 2016.3.4
18:37 cboltz today I tried to add a minion with a newer version (2017-7.1) and only get a python backtrace instead of working salt :-(
18:39 cboltz full backtrace: http://paste.opensuse.org/69571957
18:39 cboltz is there a way to get salt working with different versions on master and minion?
18:39 coredumb cboltz: yeah you should update the master as well
18:40 cboltz I also still have 2016.3.4 minions - will they continue to work with the newer master?
18:48 JPT cboltz: I don't know. In case they don't, you can use salt-ssh to keep those machines under control
18:49 shoemonkey joined #salt
18:50 nixjdm joined #salt
18:50 nixjdm joined #salt
18:53 debian112 joined #salt
19:04 babilen cboltz: The master has to be at least as new as your newest minion, but some old minions might not work with the new master. I wouldn't expect problems with your combination,but, by and large, you should keep them at the same version
19:04 babilen Older master and newer minion doesn't work
19:08 cboltz I just updated the salt master (hooray to the openSUSE build service for making this so easy!)
19:08 cboltz the new minion works now, and the old minions still work :-)
19:09 cgiroua joined #salt
19:13 tiwula joined #salt
19:13 cgiroua joined #salt
19:15 aldevar left #salt
19:19 tsia joined #salt
19:23 johnj_ joined #salt
19:35 tsia joined #salt
19:36 gmoro_ joined #salt
20:13 oida joined #salt
20:15 debian1121 joined #salt
20:17 pualj joined #salt
20:21 oida_ joined #salt
20:21 sarcasticadmin joined #salt
20:24 johnj_ joined #salt
20:44 jab416171 joined #salt
20:46 Guest73 joined #salt
20:53 XenophonF cboltz: older minions should work with newer masters, but not the other way around
21:02 shoemonkey joined #salt
21:04 justanotheruser joined #salt
21:05 justanotheruser joined #salt
21:06 ozialien joined #salt
21:25 johnj_ joined #salt
21:27 jab416171 joined #salt
21:28 marcaurele joined #salt
21:35 abrcdbr joined #salt
21:50 cyteen joined #salt
21:53 kamellion_ joined #salt
21:55 abrcdbr_ joined #salt
22:00 OliverUK joined #salt
22:06 absolutejam Anyone used docker_image.present to build an image?
22:06 absolutejam I'm getting an error that the container is not running whenver I try to build an image
22:08 absolutejam https://hastebin.com/hibosahowo.sql
22:08 absolutejam Even tried creating a custom base image that does `tail -f /dev/null` to ensure it's running
22:09 absolutejam although I've seen no mention of that being necessary
22:09 absolutejam If I `sudo salt-call --local` - It just runs as current user right?
22:12 XenophonF sudo salt-call runs salt-call as root on that computer
22:13 XenophonF I'm using docker-formula's docker and docker.containers SLSes, but those use cmd.run to execute `docker pull <container-image>`
22:26 johnj_ joined #salt
22:35 oida joined #salt
23:14 justanotheruser joined #salt
23:27 johnj_ joined #salt
23:35 yidhra joined #salt
23:38 shoemonkey joined #salt
23:54 jas02 joined #salt

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