Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-01-19

| 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:02 stanchan joined #salt
00:02 Deliant joined #salt
00:14 Ryan_Lane Edgan: yw
00:20 strobelight joined #salt
00:22 edrocks joined #salt
00:34 fatal_exception joined #salt
00:34 pipps joined #salt
00:35 stanchan joined #salt
00:40 tzero joined #salt
00:41 pipps joined #salt
00:45 pipps joined #salt
00:47 pipps joined #salt
01:23 hashwagon Is it possible to include an external state file when an onchanges is triggered in a state file?
01:32 xet7 joined #salt
01:43 fullstop left #salt
02:01 kukacz_ joined #salt
02:01 art123 joined #salt
02:02 hashwagon NVM it looks like I can use require: -sls: myexternalstate
02:02 lkthomas joined #salt
02:03 lkthomas how could I test salt with specific grains on minion
02:03 lkthomas default grains item is wrong
02:03 saltslackbridge <adam.toy> hi all.. is there a way to set object metadata when pushing an object to a bucket via the S3 module? the docs don’t seem to say.
02:05 hashwagon lkthomas, could you be more specific? Also covers most of it: https://docs.saltstack.com/en/latest/topics/targeting/
02:08 ouemt joined #salt
02:10 ouemt joined #salt
02:18 nomeed joined #salt
02:22 lkthomas salt '*' state.highstate saltenv=base grains.set region USA <- this one not work
02:22 lkthomas any idea why
02:25 cyteen joined #salt
02:25 saltslackbridge <adam.toy> think you need to drop the `state.highstate` and just do `salt '*' grains.set region USA`
02:33 lkthomas sigh, seems somehow region getting reset after each run
02:35 MTecknology hemebond: debian dev
02:56 taylorbyte joined #salt
02:56 lkthomas that's fine, I hardcoded it
02:58 ilbot3 joined #salt
02:58 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
03:04 ouemt joined #salt
03:08 major joined #salt
03:13 lkthomas how could I apply specific sls file to minion ?
03:14 hemebond lkthomas: state.apply mystate
03:16 lkthomas hemebond, thanks
03:19 Heartsbane joined #salt
03:20 lompik joined #salt
03:28 demize joined #salt
03:32 evle joined #salt
03:39 ouemt joined #salt
03:39 lkthomas Only one of "pkgs" and "sources" is permitted.
03:39 lkthomas hmm
03:40 lkthomas how could I have pkgs and sources live altogether ?
03:41 MTecknology what do you mean?
03:42 MTecknology you wanna install two packages from the same source?
03:42 lkthomas no, I have a section which is pkgs:
03:42 lkthomas then on same level, I have sources:
03:43 lkthomas but minion complains
03:43 MTecknology how do you think salt should decouple that logic? Which source is for what package?
03:43 lkthomas I have one specific package which doesn't have repo, have to get rpm from source directly
03:43 lkthomas it's http URL
03:44 lkthomas MTecknology, sorry I am new to this
03:45 ouemt joined #salt
03:45 MTecknology put what you have on dpaste.com
03:46 lkthomas http://dpaste.com/3GKC0YC
03:47 MTecknology don't use -pkgs for that, use -name or just use that as the state tag
03:51 MTecknology https://docs.saltstack.com/en/latest/ref/states/all/salt.states.pkg.html#salt.states.pkg.installed
03:53 shiranaihito joined #salt
03:54 MTecknology lkthomas: oh.. I get what you were trying for.. you'll need two states for that one, or you'll have to update the state source.
03:55 lkthomas so I need to have another pkg.installed ?
03:55 MTecknology that seems to be the case
03:57 justan0theruser joined #salt
03:57 lkthomas Conflicting ID 'pkg.installed' <-
03:57 MTecknology they can't have the same id..
03:57 lkthomas oh, hmm
03:58 MTecknology otherwise they couldn't be uniquely referenced
04:03 stanchan joined #salt
04:08 lkthomas seems working, thanks MTecknology
04:11 rewbycraft joined #salt
04:21 prasant joined #salt
04:22 prasant joined #salt
04:23 Lionel_Debroux_ joined #salt
04:28 prasant joined #salt
04:46 tpaul joined #salt
05:08 prasant joined #salt
05:09 prasant Is it possible to configure salt-minion to append MAC Address to its 'id'? This helps identifying the system that is requesting to be added to the salt-master...
05:13 saltslackbridge <adam.toy> prasant: You can configure the minion’s id in the ‘/etc/salt/minion’ file.. Just need to uncomment the ‘# id:’ line and set it to whatever you want. Don’t think there’s a way to automate adding the MAC address natively to the ID. It defaults to the hostname if that field in the config file is commented.
05:15 prasant @saltslackbridge: thanks for info... but I cannot do this manually. I was looking at something automated...
05:15 ouemt joined #salt
05:17 prasant one option is to modify the python source.. but before I do that I want to make sure whether there is a support for this ...
05:36 MTecknology you should always prefer .d/ dirs, whenever possible... with the exception of id
05:36 MTecknology you can stick a minion id into /etc/salt/minion_id, otherwise I'd say /etc/salt/minion.d/id.conf
05:42 jacksontj joined #salt
05:44 DoomPatrol joined #salt
05:52 ouemt joined #salt
06:07 zulutango joined #salt
06:12 LocaMocha joined #salt
06:28 zulutango joined #salt
06:30 threwahway joined #salt
06:31 ouemt joined #salt
06:35 tpaul joined #salt
06:40 lkthomas how could I define version number when I am using pkg.installed: - sources:
07:01 xet7 joined #salt
07:17 prasant joined #salt
07:19 Ricardo1000 joined #salt
07:26 prasant @MTecknology: Thanks for info... I just checked.. both minion_id & .d/id.conf does not seem to work...
07:27 prasant to each of these files.. I added one line 'id: name-macaddr" and does not work.. same works immediately when I add the line to "etc/salt/minion"
07:31 saltslackbridge <adam.toy> no need to add ‘id: ’ to the file.. it should JUST contain the minion ID you want to use.
07:36 xet7 joined #salt
07:38 prasant one quick question.... I'm changing my minion ID to test various things.. say "minion-id-format1" , "minion-id-format2", "minion-id-format3".. so on... my salt master still shows old formats in the "Unaccepted keys" list.. How can I tell salt-key to forget unaccepted keys for minions that do no exist any more..
07:40 saltslackbridge joined #salt
07:45 impi joined #salt
07:45 threwahway_ joined #salt
07:49 jpsharp You need to delete them on the master.  salt-key -d unwanted-minion-id
07:50 Tucky joined #salt
08:04 aldevar joined #salt
08:07 Hybrid joined #salt
08:12 kuromagi joined #salt
08:13 gnomethrower joined #salt
08:17 yuhl joined #salt
08:18 threwahway joined #salt
08:19 rideh joined #salt
08:20 aviau joined #salt
08:28 esharpmajor joined #salt
08:31 hemebond joined #salt
08:33 Eugene joined #salt
08:37 rgrundstrom Good morning everyone
08:39 coredumb morning
08:41 theblazehen joined #salt
08:41 packeteer joined #salt
08:42 fujexo[m] joined #salt
08:43 c4rc4s joined #salt
08:43 sxar joined #salt
08:43 chutzpah joined #salt
08:48 rgrundstrom coredumb: Hey, its been a too long :)
08:48 coredumb yeah holidays etc ..
08:48 coredumb happy new year :)
08:48 pjs joined #salt
08:48 rgrundstrom You too :)
09:20 Laogeodritt joined #salt
09:21 sol7 joined #salt
09:26 mavhq joined #salt
09:27 pbandark joined #salt
09:31 Lionel_Debroux joined #salt
09:33 rh10 joined #salt
09:39 sayyid9000 joined #salt
09:54 bowen joined #salt
09:56 yuhl_ joined #salt
10:03 DanyC joined #salt
10:05 _JZ_ joined #salt
10:16 prasant @jpsharp: Thanks for the info... it worked...
10:31 GrisKo joined #salt
10:31 sol7 joined #salt
10:32 major joined #salt
10:32 threwahway_ joined #salt
10:33 mrueg joined #salt
10:41 threwahway joined #salt
10:49 threwahway_ joined #salt
10:53 Naresh joined #salt
10:55 GrisKo joined #salt
11:20 impi joined #salt
11:24 evle1 joined #salt
11:38 bdrung_work joined #salt
12:13 impi joined #salt
12:14 XenophonF hey babilen, I did something wrong enabling tcp transport because now my minions won't connect to the master
12:15 XenophonF https://gist.github.com/xenophonf/f2011bf66d3758ed0fc6aae5823afc7b
12:17 XenophonF oh forgot to add the master config to that
12:17 XenophonF there, it's added
12:17 oida joined #salt
12:18 sayyid9000 joined #salt
12:18 XenophonF from what I read, the TCP transport needs TLS enabled, but maybe that's wrong
12:20 kettlewell joined #salt
12:23 XenophonF commenting out the ssl config fixes it
12:26 gmoro_ joined #salt
12:27 viq joined #salt
12:27 carmony joined #salt
12:28 KevinAn2757 joined #salt
12:28 cliluw joined #salt
12:28 Eugene joined #salt
12:28 Heartsbane joined #salt
12:28 impi joined #salt
12:28 colttt joined #salt
12:28 chutzpah joined #salt
12:28 __peke__ joined #salt
12:28 georgemarshall joined #salt
12:28 shoogz joined #salt
12:28 pfallenop joined #salt
12:29 GnuLxUsr joined #salt
12:29 wryfi joined #salt
12:30 notCalle joined #salt
12:30 heaje joined #salt
12:31 XenophonF kinda - salt minions still time out
12:32 nledez joined #salt
12:33 Vye joined #salt
12:35 JoshL joined #salt
12:38 Kelsar joined #salt
12:52 xet7 joined #salt
12:55 Creme joined #salt
12:55 ebbex does "ini.options_present:" eat away at comments to a file? My file just went from 4421 bytes down to 1677.
12:57 Creme left #salt
12:57 Creme joined #salt
13:03 Creme joined #salt
13:07 Hybrid1 joined #salt
13:14 Nahual joined #salt
13:18 babilen ebbex: I wouldn't be surprised if it does
13:19 darioleidi joined #salt
13:25 Hybrid joined #salt
13:34 sayyid9000 joined #salt
13:38 Hybrid1 joined #salt
13:38 `mist joined #salt
13:51 JawnAuz joined #salt
13:54 Creme joined #salt
14:09 numkem joined #salt
14:14 Muir joined #salt
14:15 mchlumsky joined #salt
14:26 numkem joined #salt
14:30 dendazen joined #salt
14:40 cgiroua joined #salt
14:40 strobelight joined #salt
14:40 XenophonF I had to disable the tcp transport :(
14:47 kojiro joined #salt
14:48 racooper joined #salt
14:48 ntropy XenophonF: tcp transport works fine here and all i have is 'transport: tcp'
14:55 qman__ joined #salt
15:07 cyteen_ joined #salt
15:12 XenophonF I want to run both tcp and 0mq side-by-side.
15:12 XenophonF s/want/need/ in order to transition existing minions
15:17 stanchan joined #salt
15:18 nledez joined #salt
15:23 Tucky_ joined #salt
15:28 impi joined #salt
15:29 stanchan joined #salt
15:31 Aleks3Y joined #salt
15:34 XenophonF ok so I re-enabled TCP on ports 4605 and 4606 per the docs, and that seems to work
15:35 XenophonF now to reconfigure a minion
15:40 saltslackbridge <netcho> hi all, can salt use slack webhook tokens instead legacy ones in post.messsage?
15:42 saltslackbridge <netcho> for api_key
15:43 heaje joined #salt
15:45 RandyT joined #salt
15:45 RandyT joined #salt
15:59 kukacz joined #salt
16:01 07EAASXDN joined #salt
16:02 edrocks joined #salt
16:04 Ricardo1000 joined #salt
16:21 cyteen__ joined #salt
16:25 av_ joined #salt
16:26 darioleidi joined #salt
16:46 Lionel_Debroux joined #salt
16:46 tiwula joined #salt
16:50 Lionel_Debroux joined #salt
16:51 sayyid9000 joined #salt
16:52 Deliant joined #salt
16:57 RandyT joined #salt
16:57 RandyT joined #salt
17:00 gmoro joined #salt
17:12 pppingme joined #salt
17:25 yuhl joined #salt
17:28 pipps joined #salt
17:30 pipps joined #salt
17:42 evle joined #salt
17:45 pipps joined #salt
17:46 pipps99 joined #salt
17:47 ymasson joined #salt
17:48 pipps99 joined #salt
17:52 sayyid9000 joined #salt
17:58 pocketprotector joined #salt
18:04 ouemt joined #salt
18:05 pipps joined #salt
18:22 sayyid9000 joined #salt
18:32 justanotheruser joined #salt
18:42 DammitJim joined #salt
18:51 evle2 joined #salt
18:54 evle1 joined #salt
18:56 lordcirth_work joined #salt
19:01 pipps joined #salt
19:05 pipps joined #salt
19:07 rewbycraft joined #salt
19:16 anonlizard joined #salt
19:19 viq joined #salt
19:22 DanyC joined #salt
19:25 pbandark joined #salt
19:28 sjorge joined #salt
19:33 pipps joined #salt
19:43 Muir joined #salt
19:51 anonlizard When using gitfs as a fileserver backend, does (should?) salt poll the git remotes for changes?
19:52 Edgan anonlizard: it is auto
19:52 sjorge joined #salt
19:53 anonlizard auto meaning once an update is committed it will trigger the state run?
19:54 RandyT joined #salt
19:54 RandyT joined #salt
19:55 aldevar joined #salt
19:56 saltslackbridge <gtmanfred> it is checked by the maintenance thread in the salt-master
19:56 saltslackbridge <gtmanfred> or you can trigger one yourself with `salt-run fileserver.update backend=git`
19:57 saltslackbridge <gtmanfred> but it should be automatically refreshed on every loop_interval, which is 1 minute by default
19:58 ouemt joined #salt
20:03 pipps joined #salt
20:03 anonlizard gtmanfred: good to know. my top.sls is stored in git remote, if new changes occur that affect how hosts are targeted, are those new changed implemented immediately or does that wait till the next highstate occurs?
20:04 Lionel_Debroux joined #salt
20:04 emerson joined #salt
20:04 saltslackbridge <gtmanfred> you have to apply a highstate
20:04 saltslackbridge <gtmanfred> salt does not automatically do anything for applying states
20:04 saltslackbridge <gtmanfred> it shouldn’t need to
20:04 saltslackbridge <gtmanfred> eventual consistency is stupid
20:05 saltslackbridge <gtmanfred> i use webhooks from github to trigger salt to update when a new push is made to my state repository
20:06 saltslackbridge <gtmanfred> Here is a blog about using masterless minions https://blog.gtmanfred.com/masterless-reactor.html  but you can just use the regular salt api webhooks to do the same thing
20:07 pipps99 joined #salt
20:08 saltslackbridge <gtmanfred> there are also examples of using git hooks to trigger updates https://docs.saltstack.com/en/latest/topics/tutorials/gitfs.html#refreshing-gitfs-upon-push
20:09 pipps joined #salt
20:09 anonlizard ive been entertaining that myself - currently, i've talked myself into a scheduled(lazy)  24h high state run as being good enough (as I don't currently have a need to be immediate with commits). what was your reasoning behind that approach?
20:10 saltslackbridge <gtmanfred> what is the point of a 24 hour highstate, it doesn’t allow you to control when your stuff updates, like applying deployments of new code
20:10 saltslackbridge <gtmanfred> i want it to update once I make a push to my master git repository
20:11 saltslackbridge <gtmanfred> so it can be scheduled
20:12 Hybrid joined #salt
20:13 anonlizard make sense  for that use case - my use case is a little more relaxed where timing / coordination / being expeditious  isn't so important.
20:14 pipps joined #salt
20:14 JAuz joined #salt
20:19 stanchan joined #salt
20:20 edrocks joined #salt
20:21 pipps joined #salt
20:24 pipps99 joined #salt
20:24 Lionel_Debroux joined #salt
20:26 pipps_ joined #salt
20:28 ouemt joined #salt
20:31 Hybrid joined #salt
20:35 rh10 joined #salt
20:35 pipps joined #salt
20:37 pipps99 joined #salt
20:42 pipps joined #salt
20:47 pipps joined #salt
20:48 JawnAuz__ joined #salt
20:50 JawnAuz joined #salt
20:53 schemanic joined #salt
20:54 schemanic Hi I'm getting this error when trying to call state.apply, saltutil.sync_all, etc
20:54 schemanic Passed invalid arguments to state.apply: argument of type 'NoneType' is not iterable
20:55 schemanic I recently ran a highstate, but changed nothing regarding salt config
21:03 ouemt joined #salt
21:04 _JZ_ joined #salt
21:05 pipps joined #salt
21:11 Deliant joined #salt
21:11 anonlizard_ joined #salt
21:22 englishm_work joined #salt
21:25 robot joined #salt
21:29 stanchan joined #salt
21:31 pipps joined #salt
21:33 pipps joined #salt
21:35 pipps99 joined #salt
21:42 Deliant joined #salt
21:47 fatal_exception joined #salt
21:49 Hybrid joined #salt
21:49 pipps joined #salt
21:52 Deliant joined #salt
21:55 edrocks joined #salt
21:56 DammitJim joined #salt
21:56 pipps joined #salt
21:57 pipps joined #salt
21:59 stanchan joined #salt
22:09 Hybrid joined #salt
22:10 ouemt joined #salt
22:14 Creme joined #salt
22:15 cgiroua joined #salt
22:15 xangelo joined #salt
22:15 xangelo left #salt
22:17 xangelol joined #salt
22:27 pbandark1 joined #salt
22:29 xangelol left #salt
22:29 RandyT joined #salt
22:30 RandyT joined #salt
22:30 otaria joined #salt
22:37 stanchan joined #salt
22:46 mpanetta joined #salt
22:54 stanchan joined #salt
22:56 zulutango joined #salt
23:04 Trauma joined #salt
23:05 pipps joined #salt
23:11 pipps joined #salt
23:16 pipps joined #salt
23:17 ouemt joined #salt
23:23 snath joined #salt
23:48 pipps joined #salt
23:53 hemebond left #salt
23:55 stanchan joined #salt
23:55 nledez joined #salt
23:55 nledez joined #salt
23:56 RandyT joined #salt
23:56 RandyT joined #salt

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