For the purpose of testing cloud-init local datasource, we can use vagrant to get a bare bones trusty box quick.
Look here for examples: https://cloudinit.readthedocs.org/en/latest/topics/examples.html
mkdir -p cloud-init/local-provider/vagrant
#to fight or lay...... | |
# mysequ | |
# What some would call working against the language.... | |
def sequ(minimum, maximum, incrementer=None): | |
seqarry = [] | |
if not incrementer: | |
incrementer = 1 |
#!/usr/bin/env python | |
""" | |
Real time log files watcher supporting log rotation. | |
Author: Giampaolo Rodola' <g.rodola [AT] gmail [DOT] com> | |
License: MIT | |
""" | |
import os |
server { listen 80; | |
server_name example.com; | |
access_log /var/log/example.com/nginx.access.log; | |
error_log /var/log/example.com/nginx.error.log; | |
root /var/www/apps/example.com/public; | |
charset utf-8; | |
location / { | |
rewrite ^ https://$host$request_uri? permanent; | |
} |
For the purpose of testing cloud-init local datasource, we can use vagrant to get a bare bones trusty box quick.
Look here for examples: https://cloudinit.readthedocs.org/en/latest/topics/examples.html
mkdir -p cloud-init/local-provider/vagrant
#!/bin/bash | |
# Bootstrap juju/add bootstrap node | |
juju bootstrap --to kilo-bootstrap.tfawint.com | |
sleep 5 | |
# Deploy multi-host by tag | |
juju add-machine --constraints tags="multi" | |
sleep 5 | |
# Deploy ceph-osd | |
juju deploy ceph-osd --constraints tags="osd" --config charmconf.yaml -n 3 | |
sleep 5 |
relations: | |
- - nova-compute:amqp | |
- rabbitmq-server:amqp | |
- - neutron-gateway:amqp | |
- rabbitmq-server:amqp | |
- - keystone:shared-db | |
- mysql:shared-db | |
- - nova-cloud-controller:identity-service | |
- keystone:identity-service | |
- - glance:identity-service |
https://lxadm.wordpress.com/2012/10/17/lvm-thin-provisioning/ |
#!/bin/bash | |
apt install python-dev python3-dev python3-pip python-pip libtiff5-dev libjpeg8-dev zlib1g-dev \ | |
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk virtualenv | |
virtualenv -p python3 oscar | |
. ./oscar/bin/activate | |
pip install django-oscar |
series: xenial | |
description: | | |
Consul, Consul-agent, Vault bundle | |
tags: | |
- security | |
services: | |
vault: | |
charm: cs:~jamesbeedy/vault-12 | |
num_units: 3 | |
annotations: |