matrix-dimension #43
1 changed files with 7 additions and 7 deletions
|
@ -10,20 +10,20 @@ directories = {
|
|||
|
||||
git_deploy = {
|
||||
node.metadata['matrix-dimension']['install_dir']: {
|
||||
'rev': node.metadata.get('matrix-dimension', {}).get('version', 'master'), # doesn't have releases yet
|
||||
'rev': node.metadata.get('matrix-dimension/version', 'master'), # doesn't have releases yet
|
||||
sophie marked this conversation as resolved
Outdated
|
||||
'repo': 'https://github.com/turt2live/matrix-dimension.git',
|
||||
'triggers': {
|
||||
'action:matrix_dimension_build',
|
||||
},
|
||||
'needs': {
|
||||
'directory:{}'.format(node.metadata['matrix-dimension']['install_dir']),
|
||||
'directory:{}'.format(node.metadata['matrix-dimension']['data_dir']),
|
||||
'directory:{}'.format(node.metadatai.get('matrix-dimension/install_dir'),
|
||||
'directory:{}'.format(node.metadata.get('matrix-dimension/data_dir'),
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
files = {
|
||||
'{}/config/production.yaml'.format(node.metadata['matrix-dimension']['install_dir']): {
|
||||
'{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir'): {
|
||||
'owner': 'matrix-dimension',
|
||||
'group': 'matrix-dimension',
|
||||
'content_type': 'mako',
|
||||
|
@ -32,7 +32,7 @@ files = {
|
|||
},
|
||||
'needs': {
|
||||
'action:element-web_yarn',
|
||||
'directory:{}'.format(node.metadata['matrix-dimension']['install_dir']),
|
||||
'directory:{}'.format(node.metadata.get('matrix-dimension/install_dir'),
|
||||
},
|
||||
'triggers': {
|
||||
'svc_systemd:matrix-dimension:restart',
|
||||
|
@ -52,7 +52,7 @@ files = {
|
|||
|
||||
actions = {
|
||||
'matrix_dimension_build': {
|
||||
'command': 'cd ' + node.metadata['matrix-dimension']['install_dir'] + ' && sudo -u matrix-dimension npm install && sudo -u matrix-dimension npm run build',
|
||||
'command': 'cd ' + node.metadata.get('matrix-dimension/install_dir') + ' && sudo -u matrix-dimension npm install && sudo -u matrix-dimension npm run build',
|
||||
'needs': {
|
||||
'pkg_apt:nodejs',
|
||||
},
|
||||
|
@ -67,7 +67,7 @@ svc_systemd = {
|
|||
'matrix-dimension': {
|
||||
'needs': {
|
||||
'action:matrix_dimension_build',
|
||||
'file:{}/config/production.yaml'.format(node.metadata['matrix-dimension']['install_dir']),
|
||||
'file:{}/config/production.yaml'.format(node.metadata.get('matrix-dimension/install_dir'),
|
||||
'postgres_db:matrix-dimension',
|
||||
'postgres_role:matrix-dimension',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue
`node.metadata.get('matrix-dimension/version', 'master')