Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Christopher Hauser
OpenStack-Cloud
Commits
876abaed
Commit
876abaed
authored
Oct 22, 2014
by
Jan Siersch
Browse files
fix for chown before user is added
also made sql statements re-executable (with database drops)
parent
ca8dba39
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
16 additions
and
10 deletions
+16
-10
installation/controlnode/cinder.sql
installation/controlnode/cinder.sql
+1
-0
installation/controlnode/glance.sql
installation/controlnode/glance.sql
+1
-0
installation/controlnode/heat.sql
installation/controlnode/heat.sql
+1
-0
installation/controlnode/keystone.sql
installation/controlnode/keystone.sql
+1
-0
installation/controlnode/neutron.sql
installation/controlnode/neutron.sql
+1
-0
installation/controlnode/nova.sql
installation/controlnode/nova.sql
+1
-0
installation/controlnode/trove.sql
installation/controlnode/trove.sql
+1
-0
installation/storagenode/sub-install.sh
installation/storagenode/sub-install.sh
+9
-10
No files found.
installation/controlnode/cinder.sql
View file @
876abaed
DROP
DATABASE
IF
EXISTS
cinder
;
CREATE
DATABASE
cinder
;
GRANT
ALL
PRIVILEGES
ON
cinder
.
*
TO
'cinder'
@
'localhost'
IDENTIFIED
BY
'$CINDER_DBPASS'
;
GRANT
ALL
PRIVILEGES
ON
cinder
.
*
TO
'cinder'
@
'%'
IDENTIFIED
BY
'$CINDER_DBPASS'
;
installation/controlnode/glance.sql
View file @
876abaed
DROP
DATABASE
IF
EXISTS
glance
;
CREATE
DATABASE
glance
;
GRANT
ALL
PRIVILEGES
ON
glance
.
*
TO
'glance'
@
'localhost'
IDENTIFIED
BY
'$GLANCE_DBPASS'
;
GRANT
ALL
PRIVILEGES
ON
glance
.
*
TO
'glance'
@
'%'
IDENTIFIED
BY
'$GLANCE_DBPASS'
;
installation/controlnode/heat.sql
View file @
876abaed
DROP
DATABASE
IF
EXISTS
heat
;
CREATE
DATABASE
heat
;
GRANT
ALL
PRIVILEGES
ON
heat
.
*
TO
'heat'
@
'localhost'
IDENTIFIED
BY
'$HEAT_DBPASS'
;
GRANT
ALL
PRIVILEGES
ON
heat
.
*
TO
'heat'
@
'%'
IDENTIFIED
BY
'$HEAT_DBPASS'
;
installation/controlnode/keystone.sql
View file @
876abaed
DROP
DATABASE
IF
EXISTS
keystone
;
CREATE
DATABASE
keystone
;
GRANT
ALL
PRIVILEGES
ON
keystone
.
*
TO
'keystone'
@
'localhost'
IDENTIFIED
BY
'$KEYSTONE_DBPASS'
;
GRANT
ALL
PRIVILEGES
ON
keystone
.
*
TO
'keystone'
@
'%'
IDENTIFIED
BY
'$KEYSTONE_DBPASS'
;
installation/controlnode/neutron.sql
View file @
876abaed
DROP
DATABASE
IF
EXISTS
neutron
;
CREATE
DATABASE
neutron
;
GRANT
ALL
PRIVILEGES
ON
neutron
.
*
TO
'neutron'
@
'localhost'
IDENTIFIED
BY
'$NEUTRON_DBPASS'
;
GRANT
ALL
PRIVILEGES
ON
neutron
.
*
TO
'neutron'
@
'%'
IDENTIFIED
BY
'$NEUTRON_DBPASS'
;
installation/controlnode/nova.sql
View file @
876abaed
DROP
DATABASE
IF
EXISTS
nova
;
CREATE
DATABASE
nova
;
GRANT
ALL
PRIVILEGES
ON
nova
.
*
TO
'nova'
@
'localhost'
IDENTIFIED
BY
'$NOVA_DBPASS'
;
GRANT
ALL
PRIVILEGES
ON
nova
.
*
TO
'nova'
@
'%'
IDENTIFIED
BY
'$NOVA_DBPASS'
;
installation/controlnode/trove.sql
View file @
876abaed
DROP
DATABASE
IF
EXISTS
trove
;
CREATE
DATABASE
trove
;
GRANT
ALL
PRIVILEGES
ON
trove
.
*
TO
trove
@
'localhost'
IDENTIFIED
BY
'$TROVE_DBPASS'
;
GRANT
ALL
PRIVILEGES
ON
trove
.
*
TO
trove
@
'%'
IDENTIFIED
BY
'$TROVE_DBPASS'
;
installation/storagenode/sub-install.sh
View file @
876abaed
...
...
@@ -160,11 +160,6 @@ if [[ $installConfig == true ]]; then
for
i
in
$(
find
"../config/storagenode"
-type
f
)
;
do
placeConfigFile
"
$i
"
"
${
i
:21
}
"
done
chmod
"755"
$(
find
"/etc/cinder"
-type
d
)
chmod
"640"
$(
find
"/etc/cinder"
-type
f
)
chown
-R
"cinder:cinder"
"/etc/cinder"
fi
# 7. Add a networking service
...
...
@@ -179,6 +174,12 @@ if [[ $installCinder == true ]]; then
# This node contains the disk that serves volumes.
echo
"### installing block storage ###"
# Add a filter entry to the devices section in the /etc/lvm/lvm.conf file to keep LVM from scanning devices used by virtual machines:
#setConfigValue "filter" '[ "a/sda1/", "a/sdb/", "r/.*/" ]' "/etc/lvm/lvm.conf"
# After you configure the operating system, install the appropriate packages for the Block Storage service:
yum
install
-y
openstack-cinder scsi-target-utils
mkdir
-p
"/var/lib/cinder"
chmod
"750"
"/var/lib/cinder"
chown
"cinder:cinder"
"/var/lib/cinder"
...
...
@@ -191,11 +192,9 @@ if [[ $installCinder == true ]]; then
chmod
"750"
"/var/lock/cinder"
chown
"cinder:cinder"
"/var/lock/cinder"
# Add a filter entry to the devices section in the /etc/lvm/lvm.conf file to keep LVM from scanning devices used by virtual machines:
#setConfigValue "filter" '[ "a/sda1/", "a/sdb/", "r/.*/" ]' "/etc/lvm/lvm.conf"
# After you configure the operating system, install the appropriate packages for the Block Storage service:
yum
install
-y
openstack-cinder scsi-target-utils
chmod
"755"
$(
find
"/etc/cinder"
-type
d
)
chmod
"640"
$(
find
"/etc/cinder"
-type
f
)
chown
-R
"cinder:cinder"
"/etc/cinder"
# Configure the iSCSI target service to discover Block Storage volumes.
# Add the following line to the beginning of the "/etc/tgt/targets.conf" file, if it is not already present:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment