This file contains hidden or 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/bash | |
set -e | |
sudo apt-get update | |
sudo apt-get install apache2 -y | |
sudo a2ensite default-ssl | |
sudo a2enmod ssl | |
sudo service apache2 restart |
This file contains hidden or 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/bash | |
set -e | |
REGISTRY_ID=YOUR_ID_HERE | |
REGION=us-YOUR_REGION_HERE | |
PROJECT_ID=YOUR_PROJECT_HERE | |
DEVICE_ID=YOUR_DEVICE_ID_HERE | |
echo "Creating RSA Key for device authentication" |
This file contains hidden or 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/python | |
''' Target: python 3.6 | |
This is a very simplistic CloudSearch query builder. | |
The intent is that this will ensure values are encoded and have a valid syntax. | |
Combine and nest the operators along with a query type, a field, or fields, or a value: | |
Query types: Term, Matchall, Prefix, Phrase, Near, and Range. | |
Operators: And, Or, Not | |
Conditionals: If |
This file contains hidden or 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
--- | |
- hosts: all | |
gather_facts: false | |
connection: local | |
become: yes | |
vars: | |
packages: | |
- apache2 | |
- mysql-server |
This file contains hidden or 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
--- | |
- hosts: all | |
gather_facts: false | |
connection: local | |
become: yes | |
tasks: | |
- name: Install our packages | |
apt: | |
name: "{{ item }}" |