russell.ballestrini.net
Russell Ballestrini– Securely publish Jenkins build artifacts on Salt Master
http://russell.ballestrini.net/securely-publish-jenkins-build-artifacts-on-salt-master
Securely publish Jenkins build artifacts on Salt Master. Do you want a secure setup for publishing and staging build artifacts from a Jenkins build server to a Salt Master? This guide describes my fully automated pipeline to transport binaries using Salt's encrypted bus. We start off with some Salt States to stand up a Jenkins build server client:. On the Salt Master we must enable MinionFS and restart Salt Master process:. Fileserver backend: - roots - minion file recv: True. I also have build triggers ...
russell.ballestrini.net
Russell Ballestrini– Filtering AWS resources with Boto3
http://russell.ballestrini.net/filtering-aws-resources-with-boto3
Filtering AWS resources with Boto3. This post will be updated frequently when as I learn more about how to filter AWS resources using Boto3 library. Filtering VPCs by tags. In this example we want to filter a particular VPC by the Name tag with the value of 'webapp01'. You can also filter on the value of the 'tag-key' or the 'tag-value' like so:. Taco key filter = [{'Name':'tag-key', 'Values':['taco']}] nacho value filter = [{'Name':'tag-value', 'Values':['nacho']}]. Thats all for now! Working with botoc...
russell.ballestrini.net
Russell Ballestrini– SmartOS Ubuntu guest, apt-get not working because IPv6
http://russell.ballestrini.net/smartos-ubuntu-guest-apt-get-not-working-because-ipv6
SmartOS Ubuntu guest, apt-get not working because IPv6. Turns out I don't have IPv6 setup properly in my network so when apt attempts to connect to the Internet it tries IPv6 and fails. To disable IPv6 on the ubuntu guest, add this to end of /etc/sysctl.conf and restart the guest:. Sudo vim /etc/sysctl.conf:. Netipv6.conf.all.disable ipv6 = 1 net.ipv6.conf.default.disable ipv6 = 1 net.ipv6.conf.lo.disable ipv6 = 1. Thanks for reading, leave comments please. Sat 09 May 2015. Did you enjoy reading this?
russell.ballestrini.net
Russell Ballestrini– Working with botocore's ~/.aws/config
http://russell.ballestrini.net/working-with-botocores-awsconfig
Working with botocore's /.aws/config. I ran into a bug. In botocore and this post will serve to document a work around as well as show how to use botocore session object to work with the values stored in /.aws/config. Pretend you have an aws config with two accounts for two separate projects, like so:. Now instead of using a single object, we create multiple objects, one for each profile we intend to use. Also figured out how to get at the `account id` integer:. Import botocore.session sessions = [] ...
russell.ballestrini.net
Russell Ballestrini– Setting region programmatically in Boto3
http://russell.ballestrini.net/setting-region-programmatically-in-boto3
Setting region programmatically in Boto3. At work I'm looking into the possibility of porting parts of our AWS automation codebase from Boto2 to Boto3. We desire to perform this port because Boto2's record and result pagination appears defective. I started to familiarize myself with Boto3 by using the Interactive Python interpreter. Here I show myself trying to connect to the RDS AWS endpoint following the docs:. What, No region? OK - how do I set a region? That all for now! Fri 24 April 2015. He also en...
russell.ballestrini.net
Russell Ballestrini– Migrating libvirt KVM guest to SmartOS KVM guest
http://russell.ballestrini.net/migrating-libvirt-kvm-guest-to-smartos-kvm-guest
Migrating libvirt KVM guest to SmartOS KVM guest. The following tutorial documents how to migrate a libvirt/KVM guest from Ubuntu to SmartOS. These commands were run on akuma:. These commands were run on guy:. Create the following file on guy - setup-ubuntu-sagat.json:. We then create a new KVM guest on guy:. Root@guy /opt/setup-jsons]# vmadm create -f setup-ubuntu-sagat.json Successfully created VM aa0f603c-9572-4cb0-b96f-4c79eb431223. List out the virtual block devices on the new KVM guest:. Root@g...
russell.ballestrini.net
Russell Ballestrini– List all installed package names in Python
http://russell.ballestrini.net/list-all-installed-package-names-in-python
List all installed package names in Python. Here we define a function called. This function returns a list of package resource objects. We then define two more functions:. Last we show how to use invoke these functions:. Pycrypto= 2.6.1. Virt-back= 0.1.0. Xmltodict= 0.9.2. Sat 04 July 2015. Did you enjoy reading this? Blogs about tech, and practices permaculture. He also enjoys conversation so you should contact.
russell.ballestrini.net
Russell Ballestrini– Set postgres user password on PostgreSQL SmartOS Zone
http://russell.ballestrini.net/set-postgres-user-password-on-postgresql-smartos-zone
Set postgres user password on PostgreSQL SmartOS Zone. Connect to zone and determine the auto generated password for postgres user:. Cat /var/svc/log/system-zoneinit :default.log grep PGSQL PW. Document the result and log into postgres with the following command, entering the password when prompted:. Root@psql ]# psql - user postgres. Alter the postgres role's password:. Postgres=# ALTER ROLE postgres UNENCRYPTED PASSWORD 'new-password';. Then try to log in with the new password. Wed 21 January 2015.
russell.ballestrini.net
Russell Ballestrini– My Mentor
http://russell.ballestrini.net/my-mentor
He taught me the fundamentals of kindness and guided me on the righteous path. He gave great advice, and even though I didn't always listen, he respected my thoughts and wishes. If he ever caused an accident he would always admit fault. He emits honor, honesty, and courage and never lies to or manipulates the people around him. Although we have had our differences, I think about you each day. I love you. Thank you and happy father's day, dad. Sun 21 June 2015. Did you enjoy reading this?