Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2017-05-21

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

All times shown according to UTC.

Time Nick Message
00:05 AndroUser2 joined #salt
00:09 viccuad joined #salt
00:29 viccuad joined #salt
00:38 rav_ joined #salt
00:46 AndroUser2 joined #salt
00:48 sh123124213 joined #salt
01:17 cyborg-one joined #salt
01:17 sh123124213 joined #salt
01:36 Nahual joined #salt
01:48 ilbot3 joined #salt
01:48 Topic for #salt is now Welcome to #salt! <+> Latest Versions: 2016.3.6, 2016.11.5 <+> Support: https://www.saltstack.com/support/ <+> SaltStack Webinar on Carbon, Nitrogen, and Enterprise 5.1 on May 18, 2017 https://goo.gl/PvsOvQ <+> Logs: http://irclog.perlgeek.de/salt/ <+> Paste: https://gist.github.com/ <+> See also: #salt-devel, #salt-offtopic <+> Due to spam, please register with NickServ
02:03 manji joined #salt
02:18 onlyanegg joined #salt
02:44 schemanic joined #salt
02:45 schemanic Hi, dumb question but, Can I call multiple state modules from the same state?
02:46 schemanic so If I want a state to first install a package group and then a list of individual packages could I do that?
02:52 iggy schemanic: you can only use one module per ID
02:52 iggy so... it kind of depends on what you mean by state
02:53 iggy if you mean each stanza, no, if you mean each file, yes (as long as they are different IDs)
02:58 schemanic I'm trying to do this: https://gist.github.com/devinnasar/17005c2ce7ab6f44b26e8b90f0c32434
02:58 schemanic I'm afraid I don't understand what you're referring to by 'stanza'
03:02 schemanic iggy I'm seeing other states that do similar things
03:04 iggy stanza = everything under a single ID
03:04 iggy so yeah, you can't do that
03:04 iggy use different IDs
03:06 iggy you can use 1 ID with different state modules (like ID:\n  user.present\n  pkg.installed)
03:14 jalaziz joined #salt
03:20 schemanic i see, so the pkg is what breaks it
03:21 VR-Jack-H joined #salt
03:21 schemanic Okay, next question. iggy, Which file method do I use to create a file and set it's content? I don't want managed because I just want this one line file to be created, and I'm looking for a method that will work if I run my state over and over
03:22 schemanic ie, I don't want to accidentally write the same line to the file many times if I re-run the state
03:25 iggy file.managed with contents
03:25 iggy or file.append (it won't append if the line is already there)
03:26 schemanic I see, I can use file.managed without supplying a jinja template
03:27 schemanic Ah okay, I had read up to 'source' and understood that I had to supply a file from the statetree
03:33 iggy nah, you can feed data to it in a number of ways
03:34 iggy the docs can be a little overwhelming for the first... oh... year or so ????
03:36 schemanic Sigh. I've known and studied about Salt for about 2 years but I've only just been given leeway to work with it in our dev environment, so I'm getting put through all kinds of paces.
03:37 schemanic I've so far written my own special bootstrapper because many of the formulas in the github repos don't account for Amazon Linux idiosyncracies
03:40 zerocoolback joined #salt
03:49 AndroUser2 joined #salt
03:50 AndroUser2 joined #salt
03:52 AndroUser2 joined #salt
04:05 manji joined #salt
04:20 ahrs joined #salt
04:27 edrocks joined #salt
04:34 Xenophon1 joined #salt
04:38 zerocoolback joined #salt
04:43 zerocoolback joined #salt
04:44 zerocoolback joined #salt
04:45 zerocoolback joined #salt
04:50 schemanic I have a state that spits out a TON of output because it's compiling code, and one of my states failed. Anyone have a way of going back and looking at just what failed?
05:16 onlyanegg joined #salt
05:17 nkuttler schemanic: doesn't the build leave a log somewhere?
05:18 schemanic hello nkuttler, I figured out how to get salt to show me terse output
05:18 nkuttler i mean the build process on the minion itself. if not, you might want to adjust your command
05:21 fracklen joined #salt
06:38 evle joined #salt
06:44 Inveracity joined #salt
06:46 onlyanegg joined #salt
06:56 _KaszpiR_ joined #salt
07:47 onlyanegg joined #salt
08:04 oida joined #salt
08:06 inad922 joined #salt
08:47 sh123124213 joined #salt
08:52 viccuad ok, so file.recurse doesn't copy symlinks, copies the files, even with `keep_symlinks: True`. `rsync.synchronized` doesn't have a `runas: localuser`, so it fails short for my case, and `cmd.run:  \nrunas: localuser` doesn't work for me. Are there any other options?
09:37 fracklen joined #salt
09:48 onlyanegg joined #salt
09:48 viccuad and this will fail because of salt:// : cmd.run `su - {{ user }} -c "rsync -a salt://{{ slspath }}/files/ /home/{{ user }}/"`
09:51 GnuLxUsr joined #salt
10:04 tru_tru joined #salt
10:05 Orrrrr joined #salt
10:14 preludedrew joined #salt
10:22 viq Why do you need to run rsync as a certain user?
10:22 viq And if keep_symlinks doesn't work, then please create a bug report
10:22 viccuad because the bug report is https://github.com/saltstack/salt/issues/39939
10:23 viccuad s/because/
10:23 viccuad because I would like to set it up once, and not do rsync and later file.managed to change chown
10:24 viq Right, thanks.
10:27 viq How about a workaround of a tar archive or making it a git repo?
10:27 viccuad that may help, because I was already using a .gitignore with file.recurse, and with rsync it gets complicated
10:27 viccuad but buf
10:28 viccuad too much work to get 10 symlinks correctly
10:29 viccuad that bug comes from 2013, see https://github.com/saltstack/salt/issues/5645
10:30 viccuad seems to be fixed in 2016.3.4 at least :)
10:31 viccuad but now I'm not fond of having salt-minion in the system, and I would prefer an ansible approach, where I don't have bugs depending on the version that resides on the provisioned system..
10:33 edrocks joined #salt
10:34 * viq stays out of that discussion
10:48 Praematura joined #salt
11:49 onlyanegg joined #salt
12:16 manji joined #salt
12:22 evle joined #salt
12:41 manji joined #salt
12:50 debian112 left #salt
12:50 Praematura joined #salt
12:58 sh123124213 joined #salt
13:03 peters-tx joined #salt
13:06 aldevar joined #salt
13:13 zerocoolback joined #salt
13:14 synical joined #salt
13:21 XenophonF joined #salt
13:24 Vasya666 joined #salt
13:27 manji joined #salt
13:27 puzzlingWeirdo joined #salt
13:35 edrocks joined #salt
13:52 aldevar left #salt
13:53 c_g joined #salt
13:53 c_g joined #salt
14:02 manji joined #salt
14:12 ssplatt joined #salt
14:16 orrr joined #salt
14:21 sh123124213 joined #salt
14:22 Aaditya-en joined #salt
14:22 _KaszpiR_ joined #salt
14:23 sh123124213 joined #salt
14:52 Praematura joined #salt
14:54 sh123124213 joined #salt
14:56 J0hnSteel joined #salt
15:01 LA-Clone left #salt
15:02 LordOfLA joined #salt
15:03 viccuad joined #salt
15:03 cyborg-one joined #salt
15:07 wangofett joined #salt
15:09 Aaditya-en left #salt
15:09 manji joined #salt
15:12 wangofett joined #salt
15:18 wangofett joined #salt
15:23 wangofett joined #salt
15:27 XenophonF joined #salt
15:35 manji joined #salt
15:37 edrocks joined #salt
15:59 manji joined #salt
16:21 onlyanegg joined #salt
16:23 manji joined #salt
16:29 manji joined #salt
16:30 SaucyElf joined #salt
16:30 gmoro joined #salt
16:33 SaucyElf_ joined #salt
16:42 SaucyElf joined #salt
16:45 justanotheruser joined #salt
16:52 SaucyElf joined #salt
16:56 SaucyElf_ joined #salt
17:00 SaucyElf joined #salt
17:05 cyteen joined #salt
17:10 jalaziz joined #salt
17:15 manji joined #salt
17:21 aldevar joined #salt
17:21 aldevar left #salt
17:39 manji joined #salt
17:39 edrocks joined #salt
17:42 Lionel_Debroux joined #salt
18:00 tom[] joined #salt
18:03 PatrolDoom joined #salt
18:21 SaucyElf joined #salt
18:34 bfoxwell joined #salt
18:36 fracklen joined #salt
18:47 Praematura joined #salt
18:51 puzzlingWeirdo joined #salt
18:53 mquin joined #salt
18:56 swills joined #salt
18:57 puzzlingWeirdo joined #salt
19:01 sh123124213 joined #salt
19:01 debian112 joined #salt
19:03 Trauma joined #salt
19:10 dspec12 joined #salt
19:14 hexa- grains.get ip6_interfaces is empty since 2016.11.5+ds-2
19:16 cyborg-one joined #salt
19:20 manji joined #salt
19:20 druonysus joined #salt
19:31 Sauvin joined #salt
19:38 tom[] joined #salt
19:41 edrocks joined #salt
19:46 manji joined #salt
19:46 sjorge joined #salt
19:49 iggy not going to miss that one
20:02 schemanic joined #salt
20:04 sh123124213 joined #salt
20:06 snc joined #salt
20:09 sh123124213 joined #salt
20:11 cebreidian joined #salt
20:19 wangofett joined #salt
20:25 Vasya666 joined #salt
20:29 Bock joined #salt
20:30 schemanic joined #salt
20:30 schemanic I can't seem to get s3fs working. Are there any OS dependencies necessary?
20:38 manji joined #salt
20:39 Praematura joined #salt
20:49 druonysus joined #salt
20:51 whytewolf schemanic: only dependency i see is requests
21:02 manji joined #salt
21:02 Bock joined #salt
21:13 hemebond joined #salt
21:15 swills joined #salt
21:15 onmeac joined #salt
21:16 jmiven joined #salt
21:19 dps joined #salt
21:27 manji joined #salt
21:28 bennabiy Is there a good way to set up vim for salt files?
21:28 bennabiy or atom?
21:28 holeblack93 joined #salt
21:28 hemebond There are addons for Sublime Text :-)
21:28 hemebond Though I usually just use Jinja syntax anyway.
21:29 hemebond Oh, I suppose you're after some sort of IDE-type stuff.
21:29 bennabiy I just mean for setting tabstop on .sls files etc
21:29 bennabiy no, just making editing without (space space etc)
21:30 whytewolf https://github.com/saltstack/salt-vim
21:30 bennabiy I wasn't sure if someone wrote something to make either auto spacing work
21:30 whytewolf https://github.com/Glench/Vim-Jinja2-Syntax
21:30 whytewolf also my vimrc, which needs a bit of tweeking. https://github.com/whytewolf/dotfiles/blob/master/vim/vimrc
21:35 bennabiy thank you
21:42 edrocks joined #salt
21:45 Diaoul joined #salt
21:59 fracklen joined #salt
22:07 lorengordon joined #salt
22:19 manji joined #salt
22:20 onlyanegg joined #salt
22:36 wangofett joined #salt
22:40 sh123124213 joined #salt
23:04 schemanic why wouldn't s3fs work properly?
23:09 sh123124213 joined #salt
23:11 whytewolf schemanic: lots of reasons. bad config, you don't have requests installed.
23:11 sh123124213 joined #salt
23:11 whytewolf you can't connect to the aws endpoints.
23:11 schemanic whytewolf, I've got requests installed. I've got my key/secret in
23:12 schemanic I'm wonderinf if the notation of the bucket is incorrect
23:12 schemanic right now I just have it as 's3.buckets:\n  - my-bucket'
23:13 schemanic I think it might need to be 's3.buckets:\n  - s3:\\my-bucket
23:13 whytewolf schemanic: no, you are correct on the first one
23:14 schemanic then how do I debug this?
23:14 schemanic would a problem in a previous fileserver cause salt to somehow 'not get to' my s3fs?
23:14 whytewolf salt-run fileserver.update -l trace
23:14 sarcasticadmin joined #salt
23:15 Antiarc joined #salt
23:18 schemanic I don't get it - it showed saltstack finding those files, but when I run salt-run fileserver.file_list I don't see my files in s3
23:20 whytewolf enviroments?
23:21 schemanic I'm not using environments
23:21 schemanic at least I dont think so
23:21 schemanic I have gitfs set up as well
23:21 schemanic do I need to make it match whatever is happening there?
23:22 whytewolf try this s3.buckets:\n  - base:\n    - my-bucket
23:23 whytewolf or alternativly. move all of your files in the bucket into a directory named base
23:24 schemanic which one is more 'conventional'?
23:24 whytewolf sigh. either. niether.
23:25 whytewolf first one is quickest to impliment and won't cost to move files around s3
23:25 schemanic That worked
23:25 schemanic Thank you
23:26 schemanic so the files need to be logically grouped by environment
23:27 whytewolf in a sense. basicly there are two ways to arrange buckets with s3fs. singlebucket per enviroment or mutiple enviroments per bucket
23:27 whytewolf this is all covered here https://docs.saltstack.com/en/latest/ref/file_server/all/salt.fileserver.s3fs.html
23:28 schemanic Yes, I looked there. I had thought that I set it up properly before
23:28 schemanic OHHH
23:28 schemanic I see my mistake now
23:28 whytewolf there ya go
23:29 schemanic the final warning pertained specifically to the second example. I had taken the example to mean 'you don't need to worry about specifying environments if you do it this way, they all get files from the same place.'
23:29 schemanic Is it a correct statement to say that 'base' IS an environment?
23:29 whytewolf yes
23:30 whytewolf it is the default enviroment
23:30 svij1 joined #salt
23:30 schemanic Very well
23:30 schemanic Okay, well thank you for helping me solve that guy
23:31 whytewolf no problem
23:32 manji joined #salt
23:35 mrueg joined #salt
23:37 druonysus joined #salt
23:39 dps joined #salt
23:57 manji joined #salt

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