This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minion: | |
# salt-call grains.get saltversion | |
local: | |
2016.11.7 | |
# salt-minion --version | |
salt-minion 2016.11.7 (Carbon) | |
======master | |
salt-run manage.versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Minion | |
salt-call grains.get saltversion | |
local: | |
2016.11.7 | |
salt-minion --version | |
salt-minion 2016.11.7 (Carbon) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bsysadmacseenae:create-aws-instance seenae$ ./createInstance2.py -p phab-centos6.5 -l phab102.use1d.i.riva.co -z us-east-1d -a ami-2bbbef4e | |
Namespace(ami='ami-2bbbef4e', az='us-east-1d', disks=None, dry_run=False, ebs_optimized=False, host_name='phab102.use1d.i.riva.co', iam-instance-profile=None, instance_type=None, key_name=None, nodns=False, project='phab-centos6.5', reference_host=None, security_group_ids=None, snapshot=None, stack='prod', user_data=None) | |
Running some validations.. | |
<type 'exceptions.ValueError'>:AMI search for ami-2bbbef4e gave invalid result:"[]" | |
bsysadmacseenae:create-aws-instance seenae$ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A: | |
- 1 | |
- 2 | |
- 3 | |
B: | |
-4 | |
-5 | |
-6 | |
D: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@saltm pillar]# salt `hostname` pillar.get my_hosts:profiles | |
saltm.prod.riva.com: | |
- app.profiles.abc.prod | |
- app.profiles.base | |
- app.profiles.abc.xyz.prod | |
- app.profiles.abc.redis.prod | |
[root@saltm pillar]# ll profiles/ | |
total 4 | |
-rw-r--r-- 1 root root 528 Nov 26 07:57 app.profiles.base | |
-rw-r--r-- 1 root root 0 Nov 26 07:45 app.profiles.abc.xyz.prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pillar: | |
my_host: | |
- packages: | |
-base.pkg | |
-base.apache | |
- hostType: "vm" | |
{% for pkgs, args in pillar.get('my_hosts', {}).iteritems() %} | |
{% for value in args['profile'] %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: ip-172-30-0-252 | |
[DEBUG ] Configuration file path: /etc/salt/master | |
[DEBUG ] LazyLoaded fileserver.update | |
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc | |
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2015-08-19T06:05:47.163987'} | |
[DEBUG ] Sending event - data = {'fun': 'runner.fileserver.update', 'jid': '20150819060547163056', 'user': 'sudo_root', '_stamp': '2015-08-19T06:05:47.165262'} | |
[DEBUG ] Error loading runners.nacl: libnacl import error, perhaps missing python libnacl package | |
[DEBUG ] pygit2 gitfs_provider enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DEBUG ] Reading configuration from /etc/salt/master | |
[DEBUG ] Using cached minion ID from /etc/salt/minion_id: ip-172-30-0-252 | |
[DEBUG ] Configuration file path: /etc/salt/master | |
[DEBUG ] LazyLoaded fileserver.update | |
[DEBUG ] MasterEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc | |
[DEBUG ] MasterEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc | |
[DEBUG ] Sending event - data = {'_stamp': '2015-08-19T06:05:47.163987'} | |
[DEBUG ] Sending event - data = {'fun': 'runner.fileserver.update', 'jid': '20150819060547163056', 'user': 'sudo_root', '_stamp': '2015-08-19T06:05:47.165262'} | |
[DEBUG ] Error loading runners.nacl: libnacl import error, perhaps missing python libnacl package | |
[DEBUG ] pygit2 gitfs_provider enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (exists $brokenhash{'beap'}) { | |
my $beapbroken=join(",",@{$brokenhash{'beap'}}); | |
my $beap_broken_num=scalar (@{$brokenhash{'beap'}}); | |
$total_broken=$total_broken+scalar (@{$brokenhash{'beap'}}); | |
$total_broken=$total_broken+scalar (@{$brokenhash{'beap'}}); | |
my $beaprange=`er $beapbroken 2> /dev/null`; | |
} | |
if (exists $brokenhash{'ims'}) { | |
my $imsbroken=join(",",@{$brokenhash{'ims'}}); | |
my $ims_broken_num=scalar (@{$brokenhash{'ims'}}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (exists $brokenhash{'beap'}) { | |
my $beapbroken=join(",",@{$brokenhash{'beap'}}); | |
my $beap_broken_num=scalar (@{$brokenhash{'beap'}}); | |
$total_broken=$total_broken+scalar (@{$brokenhash{'beap'}}); | |
$total_broken=$total_broken+scalar (@{$brokenhash{'beap'}}); | |
my $beaprange=`er $beapbroken 2> /dev/null`; | |
} | |
if (exists $brokenhash{'ims'}) { | |
my $imsbroken=join(",",@{$brokenhash{'ims'}}); | |
my $ims_broken_num=scalar (@{$brokenhash{'ims'}}); |
NewerOlder