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
reactor: | |
- salt/queue/bigjob/process | |
- /srv/reactor/salt-queue.sls |
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
# Preface | |
# | |
# Customers will be able to log into our GUI and create any number of "Infrastrcutures". | |
# They can then add any number of "Sites" to those infrastructures. We will be using the | |
# "Infrastructure ID" as part of the naming convention for the minion IDs to keep track of | |
# what servers belong to what customer account. | |
# Example: Customer creates an Infrastrcture called "My Infrastructure" that get's a unique | |
# id assigned to in my GUI as "123". There will also be another Infrastructure below (Inf ID: 456) | |
# as an example of how the Pillar Data is mapped. |
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
db.pillar.insert({ | |
_id: 'inf-123-webserver-1', | |
mongo_pillar: { | |
sites: { | |
somesite.com: { | |
multisite: False, | |
other_values: etc | |
}, | |
someothersite.com: { | |
multisite: True, |
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
# Infrastrucutre Data Example: | |
infrastructure: | |
name: Some Infrastructure | |
id: 123 | |
enabled_environments: | |
- staging | |
- development | |
backups: true | |
size_resources: |
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
Hey guys, I’m having a real hard time figuring out how to handle my Gluster situation for the web hosting setup I’m working on. Here’s the rundown of what I’m trying to accomplish: | |
- Load-balanced web nodes (2 nodes right now), each with multiple LXD containers in them (1 container per website) | |
- Gluster vols mounted into the containers (I probably need site-specific volumes, not mounting the same volume into all of them) | |
Here are 3 scenarios I’ve come up with for a replica 3 (possibly w/ arbiter): | |
Option 1. 3 Gluster nodes, one large volume, divided up into subdirs (1 for each website), mounting the respective subdirs into their containers & using ACLs & LXD’s u/g id maps (mixed feelings about security here) | |
Option 2. 3 Gluster nodes, website-specifc bricks on each, creating website-specific volumes, then mounting those respective volumes into their containers. Example: |
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
lxd: | |
lxd: | |
run_init: True | |
init: | |
trust_password: BooseGumps21 | |
network_address: "[::]" | |
network_port: 8443 | |
python: | |
use_pip: True |
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
app_runtime_2: | |
---------- | |
ID: pip | |
Function: pkg.installed | |
Name: python-pip | |
Result: True | |
Comment: The following packages were installed/updated: python-pip | |
Started: 00:45:25.314551 | |
Duration: 21431.701 ms | |
Changes: |
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
app_runtime_1: | |
---------- | |
ID: pip | |
Function: pkg.installed | |
Name: python-pip | |
Result: True | |
Comment: The following packages were installed/updated: python-pip | |
Started: 01:09:18.306701 | |
Duration: 25342.397 ms | |
Changes: |
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
app_runtime_1: | |
---------- | |
ID: pip | |
Function: pkg.installed | |
Name: python-pip | |
Result: True | |
Comment: Package python-pip is already installed | |
Started: 01:25:24.290411 | |
Duration: 524.518 ms | |
Changes: |
OlderNewer