remove phanpy
This commit is contained in:
parent
f9ef74600f
commit
60fffd6714
3 changed files with 0 additions and 80 deletions
|
@ -1,29 +0,0 @@
|
|||
repo.libs.tools.require_bundle(node, 'nodejs')
|
||||
|
||||
directories = {
|
||||
'/opt/phanpy': {}
|
||||
}
|
||||
|
||||
git_deploy = {
|
||||
'/opt/phanpy': {
|
||||
'rev': node.metadata.get('phanpy/version'),
|
||||
'repo': 'https://github.com/cheeaun/phanpy.git',
|
||||
'triggers': {
|
||||
'action:phanpy_build',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
actions = {
|
||||
'phanpy_build': {
|
||||
'command': ' && '.join([
|
||||
'cd /opt/phanpy',
|
||||
'npm install ',
|
||||
'npm run build',
|
||||
]),
|
||||
'needs': {
|
||||
'pkg_apt:nodejs',
|
||||
},
|
||||
'triggered': True,
|
||||
},
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
defaults = {
|
||||
'zfs': {
|
||||
'datasets': {
|
||||
'tank/phanpy': {
|
||||
'mountpoint': '/opt/phanpy',
|
||||
'needed_by': {
|
||||
'directory:/opt/phanpy',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'nginx/vhosts/phanpy',
|
||||
)
|
||||
def nginx_config(metadata):
|
||||
return {
|
||||
'nginx': {
|
||||
'vhosts': {
|
||||
'phanpy': {
|
||||
'domain': metadata.get('phanpy/url'),
|
||||
'webroot': '/opt/phanpy/dist/',
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@metadata_reactor.provides(
|
||||
'icinga2_api/phanpy/services',
|
||||
)
|
||||
def icinga_check_for_new_release(metadata):
|
||||
return {
|
||||
'icinga2_api': {
|
||||
'phanpy': {
|
||||
'services': {
|
||||
'PHANPY UPDATE': {
|
||||
'command_on_monitored_host': '/usr/local/share/icinga/plugins/check_github_for_new_release cheeaun/phanpy {}'.format(metadata.get('phanpy/version')),
|
||||
'vars.notification.mail': True,
|
||||
'check_interval': '60m',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue