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
Daniel Baur
cloudify3
Commits
80e6cce2
Commit
80e6cce2
authored
Jun 16, 2015
by
Daniel Baur
Browse files
added again the rel betweent ghost and nodejs, fixed ghost script
parent
da663448
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
12 deletions
+20
-12
ghost-openstack/ghost-openstack-blueprint.yaml
ghost-openstack/ghost-openstack-blueprint.yaml
+3
-9
ghost-openstack/scripts/ghost/start-ubuntu.sh
ghost-openstack/scripts/ghost/start-ubuntu.sh
+14
-0
ghost-openstack/types/ghost.yaml
ghost-openstack/types/ghost.yaml
+3
-3
No files found.
ghost-openstack/ghost-openstack-blueprint.yaml
View file @
80e6cce2
...
...
@@ -168,22 +168,16 @@ node_templates:
# Setting the nodejs connection
################################
#
- type: node_contained_in_nodejs
#
target: nodejs
-
type
:
node_contained_in_nodejs
target
:
nodejs
################################
# Setting the
haproxy
connection
# Setting the
nginx
connection
################################
-
type
:
app_connected_to_nginx
target
:
nginx
########################################
# Note: only ubuntu haproxy installation
# is supported.
########################################
nginx
:
type
:
nginx.nodes.Proxy
relationships
:
...
...
ghost-openstack/scripts/ghost/
in
sta
ll
-ubuntu.sh
→
ghost-openstack/scripts/ghost/sta
rt
-ubuntu.sh
100644 → 100755
View file @
80e6cce2
#!/bin/bash -e
ctx logger info
"Starting ghost"
ctx logger debug
"
${
COMMAND
}
"
sudo
apt-get
install
unzip
curl
-L
https://ghost.org/zip/ghost-latest.zip
-o
ghost.zip
unzip
-uo
ghost.zip
-d
ghost
cd
ghost
\ No newline at end of file
npm
install
--production
npm start
cd
ghost
ctx logger info
"Starting ghost"
ghost-openstack/types/ghost.yaml
View file @
80e6cce2
...
...
@@ -33,7 +33,7 @@ node_types:
derived_from
:
cloudify.nodes.ApplicationServer
interfaces
:
cloudify.interfaces.lifecycle
:
create
:
scripts/nodejs/
in
sta
ll
-ubuntu.sh
start
:
scripts/nodejs/sta
rt
-ubuntu.sh
###########################################################
...
...
@@ -84,8 +84,8 @@ relationships:
# use it to install depenencies with npm
###########################################################
#
node_contained_in_nodejs:
#
derived_from: cloudify.relationships.contained_in
node_contained_in_nodejs
:
derived_from
:
cloudify.relationships.contained_in
# target_interfaces:
# cloudify.interfaces.relationship_lifecycle:
# preconfigure: scripts/nodejs/set-nodejs-root.sh
\ No newline at end of file
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