Perl 6 - the future is here, just unevenly distributed

IRC log for #salt, 2018-01-29

| 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:00 alexlist joined #salt
00:17 tiwula joined #salt
00:36 tiwula joined #salt
00:38 oida_ joined #salt
00:41 stanchan joined #salt
00:55 tiwula joined #salt
01:03 chesty joined #salt
01:19 shiranaihito joined #salt
01:30 cswang joined #salt
01:34 justan0theruser joined #salt
01:47 rawzone joined #salt
01:50 tiwula joined #salt
01:55 rawzone joined #salt
02:03 nomeed joined #salt
02:19 zerocoolback joined #salt
02:19 ipsecguy viq: I was thinking along those lines as well, update something an when the update is not happening restart the minion. Kinda brute-force.
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
02:59 zerocoolback joined #salt
03:20 evle joined #salt
03:23 gnomethrower joined #salt
03:50 toolshed joined #salt
03:50 zerocoolback joined #salt
03:51 JPT_ joined #salt
03:51 zerocoolback joined #salt
04:24 zulutango joined #salt
04:27 tiwula joined #salt
04:31 taylorbyte is there a way to check if a source file on the salt server exists i tried the following but it still sems to thing the file exists if its not there: {%- if file.exists('salt://' + map.salt_files + file.name) -%}
04:42 tiwula joined #salt
04:44 zerocoolback joined #salt
04:46 MTecknology Can ssh_auth.present handle setting an allowed command?
04:52 MTecknology or do I need to find a way to iterate through lists of keys and prepend a string of text?
04:55 whytewolf MTecknology: maybe options?
04:55 whytewolf taylorbyte: file.exists works on the local filesystem not the fileserver. you want to see if your file is in cp.master_list
04:56 whytewolf sorry. switchedthat around should be cp.list_master
05:00 taylorbyte whytewolf: thanks
05:02 taylorbyte i'm doing this check so that i can use file.touch if the source file doesn't exist because file.managed fails if the file doesn't exist unless there is a more easier way from file.managed?
05:04 whytewolf ... why would the source be missing? that seems odd.
05:04 whytewolf also a file.touched wouldn't change the source
05:04 whytewolf unless you are running it on the master
05:07 taylorbyte im trying to make a formula for a web panel app that someone else has made and im looking at their install procedure / scripts and some parts are cat some text to a file some are sed this and that and other parts are touch. so in my defaults.yml i just made a section called files: for now
05:08 zerocoolback joined #salt
05:08 zerocoolback joined #salt
05:09 whytewolf sounds crappy
05:09 taylorbyte yep web panels in general seem crappy at their installation process especially thos things that just say "curl and run this bash script"
05:11 taylorbyte i wonder if anyone has made a web panel that uses salt to commit changes?
05:37 stanchan joined #salt
05:43 golodhrim joined #salt
06:30 zerocoolback joined #salt
06:57 zerocoolback joined #salt
07:07 colttt joined #salt
07:08 taylorbyte is there a way for a salt master to read states from a mysql db instead of sls files. Or an import_mysql instead of import_yaml for maps and dicts?
07:11 stanchan joined #salt
07:17 gnomethrower joined #salt
07:22 sh123124213 joined #salt
07:41 rgrundstrom Good morning
07:47 jrenner joined #salt
07:48 jas02 joined #salt
07:52 hoonetorg joined #salt
07:56 Ricardo1000 joined #salt
07:57 impi joined #salt
07:59 jas02 joined #salt
08:11 Tucky joined #salt
08:11 aldevar joined #salt
08:17 cswang joined #salt
08:26 zerocoolback joined #salt
08:29 zerocoolback joined #salt
08:31 aldevar joined #salt
08:31 cswang joined #salt
08:35 colegatron joined #salt
08:42 masber joined #salt
08:42 chowmeined joined #salt
08:51 darioleidi joined #salt
09:01 Hybrid joined #salt
09:07 Hybrid joined #salt
09:16 bdrung_work joined #salt
09:35 zerocoolback joined #salt
09:38 zerocoolback joined #salt
09:39 Hybrid joined #salt
09:43 zerocool_ joined #salt
09:47 zerocoolback joined #salt
09:52 Mattch joined #salt
09:57 Hybrid joined #salt
10:00 agwanta joined #salt
10:27 Nham joined #salt
10:31 viq taylorbyte: there's a python renderer, so I guess you could use that to get the rest of the data from elsewhere
10:31 kiorky joined #salt
10:43 oida joined #salt
10:52 Hybrid joined #salt
10:54 defsdoor joined #salt
11:02 stanchan joined #salt
11:36 Hybrid joined #salt
11:44 zerocoolback joined #salt
11:53 ivanjaros joined #salt
12:04 Hybrid joined #salt
12:07 mindo joined #salt
12:14 mindo joined #salt
12:18 _val_ What command do I run on master node to retrieve the path.data and path.logs values from clients ?
12:27 saltslackbridge <mts-salt> do you mean pillar data?
12:27 _val_ yes
12:28 saltslackbridge <mts-salt> you probably want something like: salt '*' pillar.get path.logs
12:29 _val_ returns hostname only
12:30 saltslackbridge <mts-salt> aye. deliberate error :slightly_smiling_face:  it'll be path:logs
12:31 saltslackbridge <mts-salt> basically it needs to match the pillar item you're looking for, and since i don't have that i had to guess
12:31 rockey erm, does someone know why saltutil.list_extmods lists custom modules coded in the fashion of latest reference material is listed as "__init__" instead of <modulename> ?
12:53 kettlewell joined #salt
12:59 evle1 joined #salt
13:19 Nahual joined #salt
13:20 colegatron joined #salt
13:28 tiwula joined #salt
13:28 jas02 joined #salt
13:35 numkem joined #salt
14:04 tiwula joined #salt
14:15 jas02 joined #salt
14:17 gh34 joined #salt
14:22 mchlumsky joined #salt
14:30 anonlizard joined #salt
14:32 racooper joined #salt
14:38 dendazen joined #salt
14:43 BitBandit joined #salt
14:48 indistylo joined #salt
14:50 izombie joined #salt
14:51 izombie left #salt
14:52 izombie joined #salt
14:53 izombie Is there a better way to define variable one pillar and refer it in another pillar?
14:53 saltslackbridge <mts-salt> better than what?
14:55 viq izombie: I believe you need https://docs.saltstack.com/en/latest/ref/pillar/all/salt.pillar.stack.html#module-salt.pillar.stack to be able to reference pillars from pillars
14:56 saltslackbridge <ryan.walder> or use a common jinja file which you import in each/all pillars
14:56 viq That's more "variables to be loaded into multiple pillars", but yeah
14:57 major joined #salt
14:58 major_ joined #salt
14:59 major joined #salt
14:59 major_ joined #salt
15:00 major joined #salt
15:03 jas02 joined #salt
15:04 saltslackbridge <ryan.walder> sure, but it also means not having to switch your entire pillar system ;)
15:04 saltslackbridge <mts-salt> i don't know how pillarstack interacts with git_pillar :S
15:04 saltslackbridge <mts-salt> i suspect it doesn't
15:05 babilen If pillarstack comes first you can reference values in there
15:05 saltslackbridge <mts-salt> my point is, all our pillar data is in git
15:05 TooLmaN joined #salt
15:06 cgiroua joined #salt
15:06 zerocoolback joined #salt
15:07 saltslackbridge <ryan.walder> am I missing something or is pillar stack basically just  ``` base:   '*':     - foo     - {{ salt.grains.get('os') }}     - ignore_missing: true ```  but with the option for specific merging strategies?
15:08 saltslackbridge <ryan.walder> (and `pillar_merge_lists: true` enabled in the master confgi)
15:08 saltslackbridge <mts-salt> there's more jinja options available than just that
15:09 saltslackbridge <mts-salt> the point is being able to reference pillar itself in the config file, my guess would be it's not recursive, merely stacked. so your pillar variables must have been defined by an earlier merge
15:10 _val_ when doing salt '*' grains.get mem_total   I'm getting the total memory from the minions. How do I see all options?
15:10 tracphil joined #salt
15:10 _val_ I want do see what the diskspace is for example.
15:11 saltslackbridge <mts-salt> `grains.items`
15:11 _val_ I could use cmd.run 'df -....'  but this seems less salty
15:11 _val_ Ah
15:11 saltslackbridge <mts-salt> can be pretty noisy, mind
15:12 saltslackbridge <ryan.walder> _val_ grains are for semi static infor and loaded when the minions starts iirc so diskspace being not static means it's not included iirc
15:12 saltslackbridge <ryan.walder> could always write a script to set the grain every few mins though
15:13 _val_ ryan.walder: that a good idea. I'll check that option
15:13 _val_ .items works nicely for now.
15:14 KyleG joined #salt
15:14 KyleG joined #salt
15:20 mindo joined #salt
15:26 pcn _val_: Is there a reason you need this to be a grain, and not e.g. an execution module you can invoke?
15:27 rh10 joined #salt
15:33 pcn It's not hard to e.g. invoke invoke disk.usage, status.diskstats, or whatever other modules you want to and just return the subset of things that you care about.
15:35 saltslackbridge <mts-salt> i do something similar and store the value in a jinja variable so i can conditionally include a state to make adjustments if the value is high enough
15:35 edrocks joined #salt
15:35 TooLmaN joined #salt
15:36 TooLmaN joined #salt
15:40 pcn That's pretty nifty.  You do it as a grain, you mean?
15:40 pcn Yeah, it wouldn't make sense otherwise.
15:41 saltslackbridge <mts-salt> no grains, no. i don't trust grains because they can be set and overwritten by the minion
15:42 fredvd joined #salt
15:42 saltslackbridge <mts-salt> {% set disksize=salt.cmd.run("powershell -command [math]::round((Get-WmiObject win32_logicaldisk -filter \"deviceid='C:'\").Size/1MB)") -%}
15:42 saltslackbridge <mts-salt> bit evil but it works for my case :slightly_smiling_face:
15:43 stanchan joined #salt
15:44 saltslackbridge <mts-salt> nothing stopping you using salt.disk.usage instead
15:44 TooLmaN joined #salt
15:46 pcn _val_ what he said
15:48 _JZ_ joined #salt
15:53 JPT joined #salt
15:54 stanchan joined #salt
15:59 stanchan joined #salt
16:03 chadhs joined #salt
16:04 stduolc joined #salt
16:04 izombie viq: thanks!
16:08 ivanjaros joined #salt
16:17 izombie I was trying to create virtualenv through salt state. The state failed complaining virtualenv command cannot be executed. Am I missing any pre-req?
16:19 saltslackbridge <mts-salt> what was the command, and did the debug messages show any error?
16:20 viq izombie: do you have virtualenv command on the system?
16:20 izombie viq: it doesn't have that. I was finding way to install it through salt
16:20 viq izombie: you need virtualenv to use virtualenv
16:21 viq Usually installed from system packages
16:21 izombie viq: let me find how I can get this done through salt. thanks!
16:21 viq izombie: pkg.installed
16:22 viq Though you need to find the proper package name
16:22 saltslackbridge <mts-salt> =b
16:29 DammitJim joined #salt
16:32 stanchan joined #salt
16:33 nixjdm joined #salt
16:36 jas02 joined #salt
16:50 ooboyle joined #salt
16:52 ooboyle using publisher_acl in the master file, is there a way to specifically allow a user to install only one specific package? Right now, I'm allowing them to install all packages, but that's a bit risky for some of my users...
16:55 aldevar left #salt
16:56 Eric_The1 joined #salt
16:58 jas02 joined #salt
17:12 aCodinMan joined #salt
17:17 xet7 joined #salt
17:34 jas02 joined #salt
17:35 Edgan joined #salt
17:37 callmecabman joined #salt
17:43 mpanetta joined #salt
17:53 Dev0n joined #salt
17:53 Hybrid joined #salt
17:54 irated joined #salt
18:01 pipps joined #salt
18:03 pipps joined #salt
18:06 scbunn joined #salt
18:13 onlyanegg joined #salt
18:14 izombie left #salt
18:15 jas02 joined #salt
18:16 Majes joined #salt
18:19 DammitJim joined #salt
18:26 cyteen joined #salt
18:34 tzero joined #salt
18:35 Corey joined #salt
18:46 aCodinMan joined #salt
18:48 jas02 joined #salt
18:55 jas02 joined #salt
19:02 aCodinMan joined #salt
19:03 pipps joined #salt
19:09 jas02 joined #salt
19:09 swa_work joined #salt
19:09 Antiarc joined #salt
19:15 pipps joined #salt
19:19 oida joined #salt
19:21 edrocks joined #salt
19:26 lordcirth_work ooboyle, if it's only one package, why not install it yourself?
19:26 lordcirth_work or are you giving them the permission on many machines?
19:26 pipps joined #salt
19:27 pipps99 joined #salt
19:30 sjorge joined #salt
19:31 ecdhe joined #salt
19:33 cyteen joined #salt
19:35 pipps joined #salt
19:35 pipps joined #salt
19:37 ooboyle i'm giving them permission to do it on 1200 minions + new ones that arrive
19:37 ooboyle i do not want to do that myself
19:38 sjorge joined #salt
19:43 Trauma joined #salt
19:45 jas02 joined #salt
19:51 ymasson joined #salt
19:52 La_Tourista joined #salt
19:56 garyoak44 joined #salt
20:03 aCodinMan joined #salt
20:12 tracphil_ joined #salt
20:13 alvinstarr joined #salt
20:17 lordcirth_work ooboyle, is the package doing to be installed on all of them?
20:24 jas02 joined #salt
20:32 ooboyle no
20:32 ooboyle we need to do this manually for now
20:33 ooboyle but the pkg def file is created and it can be pushed out properly vias salt. i just need a human eye on it at the moment so they do them in chunks, by location
20:38 Hybrid joined #salt
20:39 Trauma joined #salt
20:47 AvengerMoJo joined #salt
20:48 stanchan joined #salt
20:57 pipps joined #salt
21:05 pbandark joined #salt
21:07 jas02 joined #salt
21:14 stanchan joined #salt
21:15 XenophonF Is there a salty way of doing the equivalent of git clone && cd dir && git pull --rebase origin pull/123/head?
21:15 XenophonF Or should I just string the necessary commands together in a cmd.run state?
21:15 saltslackbridge <gtmanfred> git.latest with a rev of `pull/123/head`
21:15 XenophonF What if I need to rebase twice?
21:15 saltslackbridge <gtmanfred> or are you wanting to pull it ontop of a different rev?
21:15 aldevar joined #salt
21:16 saltslackbridge <gtmanfred> then yeah i don’t know
21:16 XenophonF that's ok - it's pretty esoteric, I'll admit
21:16 XenophonF thanks for the clue :)
21:16 saltslackbridge <gtmanfred> doesn’t look like git.pull allows for rebase=true
21:16 saltslackbridge <gtmanfred> https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.git.html#salt.modules.git.pull
21:17 saltslackbridge <gtmanfred> oh, yes it does
21:17 saltslackbridge <gtmanfred> opts=‘--rebase origin master’
21:17 saltslackbridge <gtmanfred> so i would do a git.latest, and then do a module.run of git.pull
21:18 XenophonF I wonder if it'd be simpler to fork the repo and apply the patches to a new branch there.
21:20 saltslackbridge <gtmanfred> that will def be simpler
21:22 major joined #salt
21:24 viq joined #salt
21:30 xet7_ joined #salt
21:31 major joined #salt
21:32 xet7_ joined #salt
21:36 fredvd joined #salt
21:59 Trauma joined #salt
21:59 aldevar left #salt
22:00 XenophonF for the record, I forked the repo on github, cloned it, and configured a remote named upstream that's pointed at the original
22:02 jas02 joined #salt
22:03 DammitJim joined #salt
22:03 XenophonF then I ran git pull --rebase upstream pull/123/head etc.
22:07 pipps99 joined #salt
22:08 noraatepernos joined #salt
22:09 noraatepernos https://github.com/saltstack-formulas/node-formula this formula presents an issue where a fixed version of npm is not used, see bug https://github.com/npm/npm/issues/17858
22:09 noraatepernos Trying to figure out how to specify both a node version and npm version.  This is a node issue, not a salt issue heh.
22:10 pipps joined #salt
22:12 stanchan joined #salt
22:24 KyleG joined #salt
22:24 KyleG joined #salt
22:31 spiette joined #salt
22:33 cmichel joined #salt
22:33 onlyanegg joined #salt
22:37 stewgoin joined #salt
22:40 jas02 joined #salt
22:41 baikal joined #salt
22:41 noraatepernos joined #salt
22:43 stanchan joined #salt
22:50 cgiroua joined #salt
22:58 onlyanegg joined #salt
23:05 onlyanegg joined #salt
23:25 jas02 joined #salt
23:41 bd_ joined #salt
23:44 pipps joined #salt
23:50 stanchan joined #salt
23:50 nledez joined #salt
23:50 nledez joined #salt
23:50 PFault joined #salt
23:51 zerocoolback joined #salt
23:51 dagb joined #salt
23:51 _val_ joined #salt
23:51 beardo joined #salt
23:51 gomerus[m]1 joined #salt
23:51 benjiale[m] joined #salt
23:51 theanalyst joined #salt
23:51 descrepes joined #salt
23:51 iggy joined #salt
23:51 hexa- joined #salt
23:52 hexa- joined #salt
23:53 sh123124213 joined #salt

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