Sha256: fee80f5a2a4c858e26e596796b99f14ece7e2740898d5309aad63f7c52005012

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

#!/bin/bash

STAGE='/tmp/magnum-vagrant-stage'

FIXTURES_DIR='/vagrant/spec/fixtures/modules'
VAGRANT_PUPPET_ENV_DIR='/tmp/vagrant-puppet/environments/vagrant'

if [ ! -e $STAGE ]; then

  echo "Initial provision, running the magnum-vagrant shell provisioner script..."

  apt-get update

  mkdir -p $VAGRANT_PUPPET_ENV_DIR
  ln -sfn $FIXTURES_DIR $VAGRANT_PUPPET_ENV_DIR/modules

  touch $STAGE

else
  echo "Not initial provision, skipping the magnum-vagrant shell provisioner script..."
fi

exit 0

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
puppet-magnum-3.0.1 generator_files/vagrant/init.sh.erb
puppet-magnum-3.0.0 generator_files/vagrant/init.sh.erb