Skip to content

Commit

Permalink
Dev: Configure the bundle using crmsh on the webui machine
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoub-belarbi committed Feb 10, 2018
1 parent b884948 commit ca84039
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/salt/hawkdev/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,7 @@ apply_initial_configuration:
- user: root
- group: root
- mode: 755

salt://utils/configure_bundle_crm.sh:
cmd.script:
- runas: root
10 changes: 10 additions & 0 deletions salt/salt/utils/configure_bundle_crm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
crm configure primitive httpd-apache ocf:heartbeat:apache
crm configure bundle httpd \
docker image=abelarbi/bundle_test:apache replicas=3 \
network ip-range-start=10.13.37.10 host-netmask=24 \
port-mapping port=80 \
storage \
storage-mapping id=httpd-root target-dir=/var/www/html source-dir=/srv/www options=rw \
storage-mapping id=httpd-logs target-dir=/var/log/apache2 source-dir=/var/log/pacemaker/bundles options=rw \
primitive httpd-apache

0 comments on commit ca84039

Please sign in to comment.