#!/bin/bash -x
#
# Build - Apply Salt States and Ansible Playbooks
#

# Exit on errors
#
set -e
set -u
set -o pipefail

# Create Salt Links for States and Pillar
# Create Ansible Links for Playbooks and Variables
#
mkdir -p /srv
ln -sf "$(pwd)/salt/roots" /srv/salt
ln -sf "$(pwd)/salt/pillar" /srv/pillar
ln -sf "$(pwd)/ansible" /srv/ansible

# Apply Salt States
#
salt-call --local -l debug state.apply

# Apply Ansible Plays
#
cd /srv/ansible && /usr/bin/ansible-playbook -i hosts site.yml -vv --limit=travis-ci

exit 0
#!/bin/bash -x
#
# Build - Apply Salt States and Ansible Playbooks
#

# Exit on errors
#
set -e
set -u
set -o pipefail

# Create Salt Links for States and Pillar
# Create Ansible Links for Playbooks and Variables
#
mkdir -p /srv
ln -sf "$(pwd)/salt/roots" /srv/salt
ln -sf "$(pwd)/salt/pillar" /srv/pillar
ln -sf "$(pwd)/ansible" /srv/ansible

# Apply Salt States
#
salt-call --local -l info state.apply

# Apply Ansible Plays
#
cd /srv/ansible && /usr/bin/ansible-playbook -i hosts site.yml --limit=travis-ci

exit 0
Reduce log volume as Travis CI log too big to view online
Reduce log volume as Travis CI log too big to view online
