Browse Source

fix the upgrade script

keep-around/0c405c963b8024036a07360f93e70a95127600bb
Loïc Dachary 11 months ago
committed by Loic Dachary
parent
commit
0c405c963b
Signed by: dachary GPG Key ID: 992D23B392F9E4F2
  1. 1
      bootstrap
  2. 3
      converge-from-tag.sh
  3. 10
      dev-links.sh

1
bootstrap

@ -4,6 +4,5 @@ sudo apt-get install curl virtualenv python3 gcc libffi-dev libssl-dev python3-d
virtualenv --python=python3 ../virtualenv
source ../virtualenv/bin/activate
pip install -r requirements-dev.txt
ln -sf ~/.enough/dev/inventory/*.yml inventory/group_vars/all
pip install -e .
chmod 600 infrastructure_key # cannot be stored in git

3
converge-from-tag.sh

@ -19,5 +19,4 @@ else
cd $d
source ../virtualenv/bin/activate
fi
tox -e $what
tox -e $what -- --enough-no-destroy playbooks/$what/tests

10
dev-links.sh

@ -1,10 +1,10 @@
#!/bin/bash
mkdir -p ~/.enough/dev
ln -sf ~/.enough/dev/clouds.yml inventory/group_vars/all/clouds.yml
ln -sf ~/.enough/dev/domain.yml inventory/group_vars/all/domain.yml
if ! test -e ~/.enough/dev/domain.yml ; then
cat > ~/.enough/dev/domain.yml <<EOF
mkdir -p ~/.enough/dev/inventory
ln -sf ~/.enough/dev/inventory/clouds.yml inventory/group_vars/all/clouds.yml
ln -sf ~/.enough/dev/inventory/domain.yml inventory/group_vars/all/domain.yml
if ! test -e ~/.enough/dev/inventory/domain.yml ; then
cat > ~/.enough/dev/inventory/domain.yml <<EOF
---
domain: enough.community
EOF

Loading…
Cancel
Save