Install python-novaclient
2.30.2
pip install -I python-novaclient==2.30.2
Install python-openstackclient
pip install python-openstackclient
Create your config file:
vi ~/.config/openstack/clouds.yaml
dreamcompute:
#!/bin/bash -x | |
# DESCRIPTION: The following UserData script is created to configure a Rackspace Cloud server | |
# with all the necessary things you might want. | |
# Recommended flavor is a minimum 4-8GB as the disk partitions for /tmp and /var/log are 4-8GB | |
# | |
# Can be used from CLI with nova or supernova | |
# example: | |
# supernova lincusa boot --image "Ubuntu 14.04 LTS (Trusty Tahr) (PVHVM)" --flavor performance1-8 --key-name {YOUR_KEY} --user-data "ubuntu-init-script.sh" --config-drive true {YOUR_SERVER_NAME} | |
# |
1.) FIND: ' {AMANAME}: ' | |
REPLACE WITH: ' {AMANAME}! ' | |
2.) FIND: '\[[0-9]{1,2}:[0-9]{2} PM\] ([^:]+)\: ([^\[]+)' | |
REPLACE WITH: '**Q (\1) : \2** | |
' | |
3.) FIND: ' | |
** |
Install python-novaclient
2.30.2
pip install -I python-novaclient==2.30.2
Install python-openstackclient
pip install python-openstackclient
Create your config file:
vi ~/.config/openstack/clouds.yaml
dreamcompute:
variable "region" { | |
default = "tr2" | |
description = "The region of openstack, for image/flavor/network lookups." | |
} | |
variable "image" { | |
default = { | |
tr2 = "eee08821-c95a-448f-9292-73908c794661" | |
tr2-1 = "" | |
RegionOne = "WRONG VALUE" |
#!/bin/bash | |
# | |
# terraform-app | |
# | |
# This to terraform the servers for the Galleon App | |
# By storing the date now, we can calculate the duration of provisioning at the | |
# end of this script. | |
start_seconds="$(date +%s)" |
I hereby claim:
To claim this, I am signing this object:
Galleon.PH is a e-commerce logistics company that enables Filipinos to buy any product from anywhere in the world.
We foster a culture that enables its developers to grow and flourish.
version: "3" | |
services: | |
redis: | |
image: redis:alpine | |
ports: | |
- "6379" | |
networks: | |
- frontend | |
deploy: |
# On Master Server purge binary logs up to latest log file | |
PURGE BINARY LOGS TO 'mysql-bin.010'; | |
# On Slave Servers, clear relay logs | |
SET GLOBAL relay_log_purge=1; | |
FLUSH LOGS; | |
# wait for relay logs to get deleted | |
SET GLOBAL relay_log_purge=0; |