Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the license header to all the shell scripts

  • Loading branch information...
commit 41bc2d9243a4eea976acadd41f23e8bbafcdca16 1 parent db4de83
@beloglazov authored
Showing with 991 additions and 1 deletion.
  1. +15 −0 01-network-gateway/01-iptables-nat.sh
  2. +15 −0 01-network-gateway/02-ip-forward.sh
  3. +15 −0 01-network-gateway/03-copy-hosts.sh
  4. +15 −0 02-glusterfs-all/01-iptables-flush.sh
  5. +15 −0 02-glusterfs-all/02-selinux-permissive.sh
  6. +15 −0 02-glusterfs-all/03-glusterfs-install.sh
  7. +15 −0 02-glusterfs-all/04-glusterfs-start.sh
  8. +15 −0 03-glusterfs-controller/01-glusterfs-probe.sh
  9. +15 −0 03-glusterfs-controller/02-glusterfs-create-volume.sh
  10. +15 −0 04-glusterfs-all/01-glusterfs-mount.sh
  11. +15 −0 05-kvm-compute/01-kvm-install.sh
  12. +16 −1 05-kvm-compute/02-kvm-modprobe.sh
  13. +15 −0 05-kvm-compute/03-libvirt-install.sh
  14. +15 −0 05-kvm-compute/04-libvirt-config.sh
  15. +15 −0 05-kvm-compute/05-libvirt-start.sh
  16. +15 −0 06-openstack-all/01-epel-add-repo.sh
  17. +15 −0 06-openstack-all/02-ntp-install.sh
  18. +15 −0 06-openstack-all/03-ntp-config.sh
  19. +15 −0 06-openstack-all/04-ntp-start.sh
  20. +15 −0 07-openstack-controller/01-source-configrc.sh
  21. +15 −0 07-openstack-controller/02-mysql-install.sh
  22. +15 −0 07-openstack-controller/03-mysql-start.sh
  23. +15 −0 07-openstack-controller/04-keystone-install.sh
  24. +15 −0 07-openstack-controller/05-keystone-create-db.sh
  25. +15 −0 07-openstack-controller/06-keystone-generate-admin-token.sh
  26. +15 −0 07-openstack-controller/07-keystone-config.sh
  27. +15 −0 07-openstack-controller/08-keystone-init-db.sh
  28. +15 −0 07-openstack-controller/09-keystone-permissions.sh
  29. +15 −0 07-openstack-controller/10-keystone-start.sh
  30. +15 −0 07-openstack-controller/11-keystone-create-users.sh
  31. +15 −0 07-openstack-controller/12-glance-install.sh
  32. +15 −0 07-openstack-controller/13-glance-create-db.sh
  33. +15 −0 07-openstack-controller/14-glance-config.sh
  34. +15 −0 07-openstack-controller/15-glance-init-db.sh
  35. +15 −0 07-openstack-controller/16-glance-permissions.sh
  36. +15 −0 07-openstack-controller/17-glance-start.sh
  37. +15 −0 07-openstack-controller/18-add-cirros.sh
  38. +15 −0 07-openstack-controller/19-add-ubuntu.sh
  39. +15 −0 07-openstack-controller/20-nova-install.sh
  40. +15 −0 07-openstack-controller/21-nova-create-db.sh
  41. +15 −0 07-openstack-controller/22-nova-permissions.sh
  42. +15 −0 07-openstack-controller/23-nova-config.sh
  43. +15 −0 07-openstack-controller/24-nova-init-db.sh
  44. +15 −0 07-openstack-controller/25-nova-start.sh
  45. +15 −0 08-openstack-compute/01-source-configrc.sh
  46. +15 −0 08-openstack-compute/02-install-nova.sh
  47. +15 −0 08-openstack-compute/03-nova-permissions.sh
  48. +15 −0 08-openstack-compute/04-nova-config.sh
  49. +15 −0 08-openstack-compute/05-nova-compute-start.sh
  50. +15 −0 09-openstack-gateway/01-source-configrc.sh
  51. +15 −0 09-openstack-gateway/02-nova-start.sh
  52. +15 −0 09-openstack-gateway/03-nova-network-create.sh
  53. +15 −0 09-openstack-gateway/04-nova-secgroup-add.sh
  54. +15 −0 09-openstack-gateway/05-dashboard-install.sh
  55. +15 −0 09-openstack-gateway/06-dashboard-config.sh
  56. +15 −0 09-openstack-gateway/07-dashboard-start.sh
  57. +15 −0 10-openstack-controller/01-source-configrc.sh
  58. +15 −0 10-openstack-controller/02-keypair-add.sh
  59. +15 −0 10-openstack-controller/03-boot-cirros.sh
  60. +15 −0 10-openstack-controller/04-boot-ubuntu.sh
  61. +15 −0 10-openstack-controller/05-ssh-ubuntu-vm.sh
  62. +15 −0 10-openstack-controller/06-nova-volume-create.sh
  63. +15 −0 10-openstack-controller/07-nova-volume-attach.sh
  64. +15 −0 lib/nova-config.sh
  65. +15 −0 lib/prepend-license-header-sh.sh
  66. +15 −0 lib/vmip.sh
View
15 01-network-gateway/01-iptables-nat.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Flush the iptables rules. For production it is recommented to open
# the specific required ports.
iptables -F
View
15 01-network-gateway/02-ip-forward.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Enable IP packet forwarding
sed -i 's/net.ipv4.ip_forward = 0/net.ipv4.ip_forward = 1/g' /etc/sysctl.conf
View
15 01-network-gateway/03-copy-hosts.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Copy the hosts file into the local configuration
cp ../config/hosts /etc/
View
15 02-glusterfs-all/01-iptables-flush.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Flush the iptables rules. For production it is recommented to open
# the specific required ports.
iptables -F
View
15 02-glusterfs-all/02-selinux-permissive.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Set SELinux into the permissive mode
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config
echo 0 > /selinux/enforce
View
15 02-glusterfs-all/03-glusterfs-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install GlusterFS and its dependencies
yum -y install openssh-server wget fuse fuse-libs openib libibverbs http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-3.3.0-1.el6.x86_64.rpm http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-fuse-3.3.0-1.el6.x86_64.rpm http://download.gluster.org/pub/gluster/glusterfs/LATEST/CentOS/glusterfs-server-3.3.0-1.el6.x86_64.rpm
View
15 02-glusterfs-all/04-glusterfs-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the GlusterFS service
service glusterd restart
chkconfig glusterd on
View
15 03-glusterfs-controller/01-glusterfs-probe.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Probe GlusterFS peer hosts
gluster peer probe compute1
gluster peer probe compute2
View
15 03-glusterfs-controller/02-glusterfs-create-volume.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a gluster volume replicated over 4 gluster hosts
gluster volume create vm-instances replica 4 compute1:/export/gluster compute2:/export/gluster compute3:/export/gluster compute4:/export/gluster
View
15 04-glusterfs-all/01-glusterfs-mount.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Mount the gluster volume
mkdir -p /var/lib/nova/instances
echo "localhost:/vm-instances /var/lib/nova/instances glusterfs defaults 0 0" >> /etc/fstab
View
15 05-kvm-compute/01-kvm-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install KVM and the related tools
yum -y install kvm qemu-kvm qemu-kvm-tools
View
17 05-kvm-compute/02-kvm-modprobe.sh
@@ -1,7 +1,22 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a script for enabling the KVM kernel module
-echo "#!/bin/sh
+echo "
modprobe kvm
# Uncomment this line if the host has an AMD CPU
View
15 05-kvm-compute/03-libvirt-install.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install libvirt and its dependecies
yum -y install libvirt libvirt-python python-virtinst avahi dmidecode
View
15 05-kvm-compute/04-libvirt-config.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Enable the communication with libvirt over TCP without
# authentication. This configuration is required to enable live
# migration through OpenStack.
View
15 05-kvm-compute/05-libvirt-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the libvirt service
service libvirtd restart
chkconfig libvirtd on
View
15 06-openstack-all/01-epel-add-repo.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Add the EPEL repo: http://fedoraproject.org/wiki/EPEL
yum install -y http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-7.noarch.rpm
View
15 06-openstack-all/02-ntp-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install NTP
yum install -y ntp
View
15 06-openstack-all/03-ntp-config.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Fetch the NTP servers specified in ../config/ntp.conf
SERVER1=`cat ../config/ntp.conf | sed '1!d;q'`
SERVER2=`cat ../config/ntp.conf | sed '2!d;q'`
View
15 06-openstack-all/04-ntp-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the NTP service
service ntpdate restart
chkconfig ntpdate on
View
15 07-openstack-controller/01-source-configrc.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
echo "To make the environmental variables available in the current session, run: "
echo ". 01-source-configrc.sh"
View
15 07-openstack-controller/02-mysql-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install the MySQL server
yum install -y mysql mysql-server
View
15 07-openstack-controller/03-mysql-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the MySQL service
service mysqld start
chkconfig mysqld on
View
15 07-openstack-controller/04-keystone-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install OpenStack utils and Keystone -- the identity management service
yum install -y openstack-utils openstack-keystone
View
15 07-openstack-controller/05-keystone-create-db.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a database for Keystone
../lib/mysqlq.sh "CREATE DATABASE keystone;"
View
15 07-openstack-controller/06-keystone-generate-admin-token.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Generate an admin token for Keystone and save it into
# ./keystone-admin-token
openssl rand -hex 10 > keystone-admin-token
View
15 07-openstack-controller/07-keystone-config.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Set the generated admin token in the Keystone configuration
openstack-config --set /etc/keystone/keystone.conf DEFAULT admin_token `cat keystone-admin-token`
View
15 07-openstack-controller/08-keystone-init-db.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Initialize the database for Keystone
keystone-manage db_sync
View
15 07-openstack-controller/09-keystone-permissions.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Set restrictive permissions on the Keystone config file since it
# contains the MySQL password and admin token
chmod 640 /etc/keystone/keystone.conf
View
15 07-openstack-controller/10-keystone-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the Keystone service
service openstack-keystone restart
chkconfig openstack-keystone on
View
15 07-openstack-controller/11-keystone-create-users.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install PyYAML, a YAML Python library
yum install -y PyYAML
View
15 07-openstack-controller/12-glance-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install OpenStack Glance -- an image management service
yum install -y openstack-glance
View
15 07-openstack-controller/13-glance-create-db.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a database for Glance
../lib/mysqlq.sh "CREATE DATABASE glance;"
View
15 07-openstack-controller/14-glance-config.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Make Glance API use Keystone as the identity management service
openstack-config --set /etc/glance/glance-api.conf paste_deploy flavor keystone
View
15 07-openstack-controller/15-glance-init-db.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Initialize the database for Glance
glance-manage db_sync
View
15 07-openstack-controller/16-glance-permissions.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Set restrictive permissions for the Glance config files
chmod 640 /etc/glance/*.conf
chmod 640 /etc/glance/*.ini
View
15 07-openstack-controller/17-glance-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the Glance Registry and API services
service openstack-glance-registry restart
service openstack-glance-api restart
View
15 07-openstack-controller/18-add-cirros.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Download the Cirros VM image
mkdir /tmp/images
cd /tmp/images
View
15 07-openstack-controller/19-add-ubuntu.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Download an Ubuntu Cloud image
mkdir /tmp/images
cd /tmp/images
View
15 07-openstack-controller/20-nova-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install OpenStack Nova (compute service) and the Qpid AMQP message broker
yum install -y openstack-nova* qpid-cpp-server
View
15 07-openstack-controller/21-nova-create-db.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a database for Nova
../lib/mysqlq.sh "CREATE DATABASE nova;"
View
15 07-openstack-controller/22-nova-permissions.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Set restrictive permissions for the Nova config file
chmod 640 /etc/nova/nova.conf
View
15 07-openstack-controller/23-nova-config.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Run the Nova configuration script defined in ../lib/nova-config.sh
../lib/nova-config.sh
View
15 07-openstack-controller/24-nova-init-db.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Initialize the database for Nova
nova-manage db sync
View
15 07-openstack-controller/25-nova-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the Qpid AMQP message broker
service qpidd restart
View
15 08-openstack-compute/01-source-configrc.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
echo "To make the environmental variables available in the current session, run: "
echo ". 01-source-configrc.sh"
View
15 08-openstack-compute/02-install-nova.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install OpenStack Nova and utils
yum install -y openstack-nova* openstack-utils
View
15 08-openstack-compute/03-nova-permissions.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Set restrictive permissions for the Nova config file
chmod 640 /etc/nova/nova.conf
View
15 08-openstack-compute/04-nova-config.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Run the Nova configuration script defined in ../lib/nova-config.sh
../lib/nova-config.sh
View
15 08-openstack-compute/05-nova-compute-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the libvirt and Nova services
service libvirtd restart
service openstack-nova-compute restart
View
15 09-openstack-gateway/01-source-configrc.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
echo "To make the environmental variables available in the current session, run: "
echo ". 01-source-configrc.sh"
View
15 09-openstack-gateway/02-nova-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# It is assumed that the gateway host is one of the compute hosts,
# therefore, the openstack-nova-* service are already installed.
View
15 09-openstack-gateway/03-nova-network-create.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a Nova network for VM instances: 10.0.0.0/24
nova-manage network create --label=public --fixed_range_v4=10.0.0.0/24 --num_networks=1 --network_size=256 --bridge=br100
View
15 09-openstack-gateway/04-nova-secgroup-add.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Enable ping for VMs
nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0
View
15 09-openstack-gateway/05-dashboard-install.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Install OpenStack Dashboard
yum install -y openstack-dashboard
View
15 09-openstack-gateway/06-dashboard-config.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Set the OpenStack management host
sed -i 's/OPENSTACK_HOST = "127.0.0.1"/OPENSTACK_HOST = "controller"/g' /etc/openstack-dashboard/local_settings
View
15 09-openstack-gateway/07-dashboard-start.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Start the HTTPD service. The dashboard will be available at:
# http://localhost/dashboard
service httpd restart
View
15 10-openstack-controller/01-source-configrc.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
echo "To make the environmental variables available in the current session, run: "
echo ". 01-source-configrc.sh"
View
15 10-openstack-controller/02-keypair-add.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a keypair, which can be used for auto-injection into VMs for
# password-less SSH connections
nova keypair-add test > ../config/test.pem
View
15 10-openstack-controller/03-boot-cirros.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a VM instances from the Cirros image
nova boot --image cirros-0.3.0-x86_64 --flavor m1.small cirros
View
15 10-openstack-controller/04-boot-ubuntu.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a VM instances from the Ubuntu Cloud image and inject the
# generated public key for password-less SSH connections
nova boot --image ubuntu --flavor m1.small --key_name test ubuntu
View
15 10-openstack-controller/05-ssh-ubuntu-vm.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# SSH into a VM instance.
if [ $# -ne 2 ]
View
15 10-openstack-controller/06-nova-volume-create.sh
@@ -1,4 +1,19 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Create a 2GB volume called myvolume
nova volume-create --display_name myvolume 2
View
15 10-openstack-controller/07-nova-volume-attach.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# Attach the created volume to a VM instance as /dev/vdc.
if [ $# -ne 2 ]
View
15 lib/nova-config.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# This is a Nova configuration shared by the compute hosts, gateway and controller
# Enable verbose output
View
15 lib/prepend-license-header-sh.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# This script prepends the license header provided in the
# license-header file to the file specified as an argument if the
# header has not yet been prepended.
View
15 lib/vmip.sh
@@ -1,5 +1,20 @@
#!/bin/sh
+# Copyright 2012 Anton Beloglazov
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
# This script returns the IP address of a VM instance by its name
# defined in libvirt. The scripts accepts a parameter specifying the
# VM instance name.

0 comments on commit 41bc2d9

Please sign in to comment.
Something went wrong with that request. Please try again.