|
@ -102,8 +102,8 @@ is err '' |
|
|
try " |
|
|
try " |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export BASE_CHARM_NAME='\$BASE_CHARM_NAME' |
|
|
|
|
|
export MASTER_TARGET_CHARM_NAME='\$MASTER_TARGET_CHARM_NAME' |
|
|
|
|
|
|
|
|
export BASE_SERVICE_NAME='\$BASE_SERVICE_NAME' |
|
|
|
|
|
export MASTER_TARGET_SERVICE_NAME='\$MASTER_TARGET_SERVICE_NAME' |
|
|
DOMAIN=www.example.com |
|
|
DOMAIN=www.example.com |
|
|
DOCKER_SITE_PATH=/var/www/\$DOMAIN |
|
|
DOCKER_SITE_PATH=/var/www/\$DOMAIN |
|
|
CFG=' |
|
|
CFG=' |
|
@ -115,22 +115,22 @@ ssl: |
|
|
' |
|
|
' |
|
|
apache_vhost_create" |
|
|
apache_vhost_create" |
|
|
noerror |
|
|
noerror |
|
|
is out part 'file_put $CONFIGSTORE/$BASE_CHARM_NAME/etc/ssl/certs/www.example.com.pem |
|
|
|
|
|
|
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/certs/www.example.com.pem |
|
|
| c' |
|
|
| c' |
|
|
is out part 'file_put $CONFIGSTORE/$BASE_CHARM_NAME/etc/ssl/private/www.example.com.key |
|
|
|
|
|
|
|
|
is out part 'file_put $CONFIGSTORE/$BASE_SERVICE_NAME/etc/ssl/private/www.example.com.key |
|
|
| a |
|
|
| a |
|
|
| b' |
|
|
| b' |
|
|
is out reg 'config-add' |
|
|
is out reg 'config-add' |
|
|
is out reg ' - \$CONFIGSTORE/\$BASE_CHARM_NAME/etc/ssl/certs/www.example.com.pem:/etc/ssl/certs/www.example.com.pem:ro' |
|
|
|
|
|
is out reg ' - \$CONFIGSTORE/\$BASE_CHARM_NAME/etc/ssl/private/www.example.com.key:/etc/ssl/private/www.example.com.key:ro' |
|
|
|
|
|
|
|
|
is out reg ' - \$CONFIGSTORE/\$BASE_SERVICE_NAME/etc/ssl/certs/www.example.com.pem:/etc/ssl/certs/www.example.com.pem:ro' |
|
|
|
|
|
is out reg ' - \$CONFIGSTORE/\$BASE_SERVICE_NAME/etc/ssl/private/www.example.com.key:/etc/ssl/private/www.example.com.key:ro' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try " |
|
|
try " |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export BASE_CHARM_NAME='\$BASE_CHARM_NAME' |
|
|
|
|
|
export MASTER_TARGET_CHARM_NAME='\$MASTER_TARGET_CHARM_NAME' |
|
|
|
|
|
|
|
|
export BASE_SERVICE_NAME='\$BASE_SERVICE_NAME' |
|
|
|
|
|
export MASTER_TARGET_SERVICE_NAME='\$MASTER_TARGET_SERVICE_NAME' |
|
|
DOMAIN=www.example.com |
|
|
DOMAIN=www.example.com |
|
|
DOCKER_SITE_PATH=/var/www/\$DOMAIN |
|
|
DOCKER_SITE_PATH=/var/www/\$DOMAIN |
|
|
export CFG=' |
|
|
export CFG=' |
|
@ -151,8 +151,8 @@ try " |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export BASE_CHARM_NAME='\$BASE_CHARM_NAME' |
|
|
|
|
|
export MASTER_TARGET_CHARM_NAME='\$MASTER_TARGET_CHARM_NAME' |
|
|
|
|
|
|
|
|
export BASE_SERVICE_NAME='\$BASE_SERVICE_NAME' |
|
|
|
|
|
export MASTER_TARGET_SERVICE_NAME='\$MASTER_TARGET_SERVICE_NAME' |
|
|
export CFG=' |
|
|
export CFG=' |
|
|
creds: |
|
|
creds: |
|
|
toto: xxx |
|
|
toto: xxx |
|
@ -166,8 +166,8 @@ export DATASTORE='\$DATASTORE' |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export BASE_CHARM_NAME='\$BASE_CHARM_NAME' |
|
|
|
|
|
export MASTER_TARGET_CHARM_NAME='\$MASTER_TARGET_CHARM_NAME' |
|
|
|
|
|
|
|
|
export BASE_SERVICE_NAME='\$BASE_SERVICE_NAME' |
|
|
|
|
|
export MASTER_TARGET_SERVICE_NAME='\$MASTER_TARGET_SERVICE_NAME' |
|
|
export CFG=' |
|
|
export CFG=' |
|
|
domain: www.example.com |
|
|
domain: www.example.com |
|
|
creds: |
|
|
creds: |
|
@ -175,7 +175,7 @@ creds: |
|
|
' |
|
|
' |
|
|
apache_publish_dir" |
|
|
apache_publish_dir" |
|
|
is errlvl 0 |
|
|
is errlvl 0 |
|
|
is err reg 'setfacl -R -m g:<GID>:rx \$DATASTORE/\$BASE_CHARM_NAME/var/www/www.example.com' |
|
|
|
|
|
|
|
|
is err reg 'setfacl -R -m g:<GID>:rx \$DATASTORE/\$BASE_SERVICE_NAME/var/www/www.example.com' |
|
|
is err reg 'cached_cmd_on_base_image apache id -g www-data' |
|
|
is err reg 'cached_cmd_on_base_image apache id -g www-data' |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -184,8 +184,8 @@ export DATASTORE='\$DATASTORE' |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export BASE_CHARM_NAME='\$BASE_CHARM_NAME' |
|
|
|
|
|
export MASTER_TARGET_CHARM_NAME='\$MASTER_TARGET_CHARM_NAME' |
|
|
|
|
|
|
|
|
export BASE_SERVICE_NAME='\$BASE_SERVICE_NAME' |
|
|
|
|
|
export MASTER_TARGET_SERVICE_NAME='\$MASTER_TARGET_SERVICE_NAME' |
|
|
export CFG=' |
|
|
export CFG=' |
|
|
domain: www.example.com |
|
|
domain: www.example.com |
|
|
creds: |
|
|
creds: |
|
@ -197,8 +197,8 @@ data-dirs: |
|
|
' |
|
|
' |
|
|
apache_publish_dir" |
|
|
apache_publish_dir" |
|
|
is errlvl 0 |
|
|
is errlvl 0 |
|
|
is err reg 'setfacl -R -m g:<GID>:rwx \$DATASTORE/\$BASE_CHARM_NAME/var/www/www.example.com/a \$DATASTORE/\$BASE_CHARM_NAME/var/www/www.example.com/b \$DATASTORE/\$BASE_CHARM_NAME/var/www/www.example.com/c' |
|
|
|
|
|
is err reg 'setfacl -R -d -m g:<GID>:rwx \$DATASTORE/\$BASE_CHARM_NAME/var/www/www.example.com/a \$DATASTORE/\$BASE_CHARM_NAME/var/www/www.example.com/b \$DATASTORE/\$BASE_CHARM_NAME/var/www/www.example.com/c' |
|
|
|
|
|
|
|
|
is err reg 'setfacl -R -m g:<GID>:rwx \$DATASTORE/\$BASE_SERVICE_NAME/var/www/www.example.com/a \$DATASTORE/\$BASE_SERVICE_NAME/var/www/www.example.com/b \$DATASTORE/\$BASE_SERVICE_NAME/var/www/www.example.com/c' |
|
|
|
|
|
is err reg 'setfacl -R -d -m g:<GID>:rwx \$DATASTORE/\$BASE_SERVICE_NAME/var/www/www.example.com/a \$DATASTORE/\$BASE_SERVICE_NAME/var/www/www.example.com/b \$DATASTORE/\$BASE_SERVICE_NAME/var/www/www.example.com/c' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try " |
|
|
try " |
|
@ -206,9 +206,9 @@ export DATASTORE='\$DATASTORE' |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export DOCKER_BASE_IMAGE=docker/apache |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export SERVICE_CONFIGSTORE='\$SERVICE_CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export CONFIGSTORE='\$CONFIGSTORE' |
|
|
export BASE_CHARM_NAME='\$BASE_CHARM_NAME' |
|
|
|
|
|
export MASTER_BASE_CHARM_NAME='\$MASTER_BASE_CHARM_NAME' |
|
|
|
|
|
export MASTER_TARGET_CHARM_NAME='\$MASTER_TARGET_CHARM_NAME' |
|
|
|
|
|
|
|
|
export BASE_SERVICE_NAME='\$BASE_SERVICE_NAME' |
|
|
|
|
|
export MASTER_BASE_SERVICE_NAME='\$MASTER_BASE_SERVICE_NAME' |
|
|
|
|
|
export MASTER_TARGET_SERVICE_NAME='\$MASTER_TARGET_SERVICE_NAME' |
|
|
export CFG=' |
|
|
export CFG=' |
|
|
domain: www.example.com |
|
|
domain: www.example.com |
|
|
location: /opt/apps/newlocation |
|
|
location: /opt/apps/newlocation |
|
@ -223,7 +223,7 @@ apache_publish_dir" |
|
|
is errlvl 0 |
|
|
is errlvl 0 |
|
|
is err reg 'mkdir -p /opt/apps/newlocation' |
|
|
is err reg 'mkdir -p /opt/apps/newlocation' |
|
|
is err reg 'setfacl -R -m g:<GID>:rx /opt/apps/newlocation' |
|
|
is err reg 'setfacl -R -m g:<GID>:rx /opt/apps/newlocation' |
|
|
is out part ' | $MASTER_BASE_CHARM_NAME: |
|
|
|
|
|
|
|
|
is out part ' | $MASTER_BASE_SERVICE_NAME: |
|
|
| volumes: |
|
|
| volumes: |
|
|
| - /opt/apps/newlocation:/var/www/www.example.com' |
|
|
| - /opt/apps/newlocation:/var/www/www.example.com' |
|
|
|
|
|
|
|
|