Skip to content

Commit

Permalink
copy openrc file to local instance filesystem
Browse files Browse the repository at this point in the history
Occasionally vagrant shares aren’t available and this allows locally
sourcing the file rather than typing it in manually.
  • Loading branch information
discoposse committed Mar 26, 2015
1 parent a726f62 commit c1ddac5
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cinder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,6 @@ sudo stop rsyslog
sudo cp /vagrant/rsyslog.conf /etc/rsyslog.conf
sudo echo "*.* @@controller:5140" >> /etc/rsyslog.d/50-default.conf
sudo service rsyslog restart

# Copy openrc file to local instance vagrant root folder in case of loss of file share
sudo cp /vagrant/openrc /home/vagrant
3 changes: 3 additions & 0 deletions compute.sh
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,6 @@ sudo stop rsyslog
sudo cp /vagrant/rsyslog.conf /etc/rsyslog.conf
sudo echo "*.* @@controller:5140" >> /etc/rsyslog.d/50-default.conf
sudo service rsyslog restart

# Copy openrc file to local instance vagrant root folder in case of loss of file share
sudo cp /vagrant/openrc /home/vagrant
3 changes: 3 additions & 0 deletions controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,9 @@ export OS_KEY=/vagrant/cakey.pem
export OS_CACERT=/vagrant/ca.pem
EOF

# Copy openrc file to local instance vagrant root folder in case of loss of file share
sudo cp /vagrant/openrc /home/vagrant

# Hack: restart neutron again...
service neutron-server restart

Expand Down
3 changes: 3 additions & 0 deletions network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,3 +228,6 @@ sudo stop rsyslog
sudo cp /vagrant/rsyslog.conf /etc/rsyslog.conf
sudo echo "*.* @@controller:5140" >> /etc/rsyslog.d/50-default.conf
sudo service rsyslog restart

# Copy openrc file to local instance vagrant root folder in case of loss of file share
sudo cp /vagrant/openrc /home/vagrant
3 changes: 3 additions & 0 deletions swift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,6 @@ swift_restart(){
swift_install
swift_configure
swift_restart

# Copy openrc file to local instance vagrant root folder in case of loss of file share
sudo cp /vagrant/openrc /home/vagrant
3 changes: 3 additions & 0 deletions swift2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,6 @@ swift_restart(){
swift_install
swift_configure
swift_restart

# Copy openrc file to local instance vagrant root folder in case of loss of file share
sudo cp /vagrant/openrc /home/vagrant

0 comments on commit c1ddac5

Please sign in to comment.