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@bouchatestrhel6 ~]# yum --disablerepo=* --enablerepo=saltstack-repo install salt | |
Loaded plugins: product-id, rhnplugin, subscription-manager | |
This system is receiving updates from RHN Classic or RHN Satellite. | |
Setting up Install Process | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package salt.noarch 0:2015.8.0-2.el6 will be installed | |
--> Processing Dependency: python-msgpack > 0.3 for package: salt-2015.8.0-2.el6.noarch | |
--> Processing Dependency: python-tornado >= 4.2.1 for package: salt-2015.8.0-2.el6.noarch | |
--> Processing Dependency: python-futures >= 2.0 for package: salt-2015.8.0-2.el6.noarch |
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@boucharhel7 ~]# yum --disablerepo=* --enablerepo=saltstack-repo install salt-master | |
Loaded plugins: langpacks, product-id, rhnplugin, subscription-manager | |
This system is receiving updates from RHN Classic or Red Hat Satellite. | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package salt-master.noarch 0:2015.8.0-2.el7 will be installed | |
--> Processing Dependency: salt = 2015.8.0-2.el7 for package: salt-master-2015.8.0-2.el7.noarch | |
--> Running transaction check | |
---> Package salt.noarch 0:2015.8.0-2.el7 will be installed | |
--> Processing Dependency: python-msgpack > 0.3 for package: salt-2015.8.0-2.el7.noarch |
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
[ec2-user@ip-10-254-89-84 ~]$ sudo yum --disablerepo=* --enablerepo=saltstack-repo install salt-master | |
Loaded plugins: amazon-id, rhui-lb, security | |
Setting up Install Process | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package salt-master.noarch 0:2015.8.0-2.el6 will be installed | |
--> Processing Dependency: salt = 2015.8.0-2.el6 for package: salt-master-2015.8.0-2.el6.noarch | |
--> Running transaction check | |
---> Package salt.noarch 0:2015.8.0-2.el6 will be installed | |
--> Processing Dependency: python-msgpack > 0.3 for package: salt-2015.8.0-2.el6.noarch |
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
[ec2-user@ip-172-30-0-95 ~]$ sudo yum --disablerepo=* --enablerepo=saltstack-repo install salt-minion | |
Loaded plugins: amazon-id, rhui-lb | |
Resolving Dependencies | |
--> Running transaction check | |
---> Package salt-minion.noarch 0:2015.8.0-2.el7 will be installed | |
--> Processing Dependency: salt = 2015.8.0-2.el7 for package: salt-minion-2015.8.0-2.el7.noarch | |
--> Running transaction check | |
---> Package salt.noarch 0:2015.8.0-2.el7 will be installed | |
--> Processing Dependency: python-msgpack > 0.3 for package: salt-2015.8.0-2.el7.noarch | |
--> Processing Dependency: python-tornado >= 4.2.1 for package: salt-2015.8.0-2.el7.noarch |
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 pillar.environment == 'production' %} | |
Ensure instance1 is configured: | |
file.managed: | |
- name /var/local/instance1/context.xml | |
- source: salt://instance.xml.tmpl | |
- template: jinja | |
- context: | |
somesetting: testme | |
{% else %} | |
Ensure instance1 is configured: |
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
sudo salt-call event.fire_master 'datatuff' 'testtag' |
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
#!/bin/sh | |
# A self-extracting installer for RPMs | |
# | |
# To create: make a gzip-compressed tarball of RPMs (with no subdirectory), | |
# convert to base64, then concatenate onto the end of this file:: | |
# | |
# cd /some/directory/of/rpm/files | |
# tar -cz *.rpm | base64 -w0 >> selfinstaller.bzx | |
main() { |
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
"""pyvbox: setup appliance description and import_machines. | |
""" | |
import virtualbox | |
vbox = virtualbox.VirtualBox() | |
# Create new IAppliance and read the exported machine | |
# called 'ubuntu'. | |
appliance = vbox.create_appliance() | |
appliance.read("~/Documents/ubuntu.ova") |
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
#!/bin/sh | |
# A self-extracting installer for RPMs | |
# | |
# To create: make a gzip-compressed tarball of RPMs (with no subdirectory), | |
# convert to base64, then concatenate onto the end of this file:: | |
# | |
# cd /some/directory/of/rpm/files | |
# tar -cz *.rpm | base64 -w0 >> selfinstaller.bzx | |
main() { |
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
amazon_amazon: | |
provider: aws | |
image: ami-7c807d14 | |
size: t1.micro | |
ssh_username: ec2-user | |
script_args: '-- git 2014.7' | |
amazon_amazon_2014_1_13: | |
provider: aws |