Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
66cb8262
Commit
66cb8262
authored
Apr 11, 2016
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
migrate slapos_configurator to new bt format
parent
786eb339
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
39 deletions
+31
-39
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList.py
...sinessConfiguration_invokeSlapOSMasterPromiseAlarmList.py
+19
-0
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList.xml
...inessConfiguration_invokeSlapOSMasterPromiseAlarmList.xml
+0
-23
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_setupSlapOSMasterStandardBT5.py
...tor/BusinessConfiguration_setupSlapOSMasterStandardBT5.py
+12
-0
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_setupSlapOSMasterStandardBT5.xml
...or/BusinessConfiguration_setupSlapOSMasterStandardBT5.xml
+0
-16
No files found.
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList.py
0 → 100644
View file @
66cb8262
"""
Solve all alarms which starts with id as "promise_vifib*".
(rafael): This approach could be generalized on
configurator level, by providing a list of
alarms to be invoked always.
"""
alarm_to_solve_list
=
[
'promise_certificate_autority_tool'
,
'promise_conversion_server'
,
'promise_kumofs_server'
,
'promise_mailhost_configuration'
,
'promise_memcached_server'
]
for
alarm
in
context
.
portal_alarms
.
contentValues
():
alarm_id
=
alarm
.
getId
()
if
alarm_id
.
startswith
(
"promise_slapos"
)
or
\
alarm_id
in
alarm_to_solve_list
:
context
.
log
(
"Solve %s"
%
alarm_id
)
alarm
.
solve
()
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_invokeSlapOSMasterPromiseAlarmList.xml
View file @
66cb8262
...
@@ -48,29 +48,6 @@
...
@@ -48,29 +48,6 @@
</object>
</object>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""\n
Solve all alarms which starts with id as "promise_vifib*".\n
\n
(rafael): This approach could be generalized on \n
configurator level, by providing a list of \n
alarms to be invoked always.\n
"""\n
alarm_to_solve_list = [\'promise_certificate_autority_tool\',\n
\'promise_conversion_server\',\n
\'promise_kumofs_server\',\n
\'promise_mailhost_configuration\',\n
\'promise_memcached_server\']\n
\n
for alarm in context.portal_alarms.contentValues():\n
alarm_id = alarm.getId()\n
if alarm_id.startswith("promise_slapos") or \\\n
alarm_id in alarm_to_solve_list:\n
context.log("Solve %s" % alarm_id)\n
alarm.solve()\n
</string>
</value>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
...
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_setupSlapOSMasterStandardBT5.py
0 → 100644
View file @
66cb8262
configuration_save
=
context
.
restrictedTraverse
(
configuration_save_url
)
bt5_update_catalog_list
=
(
'erp5_ingestion_mysql_innodb_catalog'
,
'slapos_cloud'
,
'erp5_accounting'
,
'erp5_movement_table_catalog'
)
bt5_installation_list
=
bt5_update_catalog_list
+
(
'slapos_erp5'
,)
for
name
in
bt5_installation_list
:
configuration_save
.
addConfigurationItem
(
"Standard BT5 Configurator Item"
,
title
=
name
,
bt5_id
=
name
,
update_catalog
=
(
name
in
bt5_update_catalog_list
))
master/bt5/slapos_configurator/SkinTemplateItem/portal_skins/slapos_configurator/BusinessConfiguration_setupSlapOSMasterStandardBT5.xml
View file @
66cb8262
...
@@ -48,22 +48,6 @@
...
@@ -48,22 +48,6 @@
</object>
</object>
</value>
</value>
</item>
</item>
<item>
<key>
<string>
_body
</string>
</key>
<value>
<string>
configuration_save = context.restrictedTraverse(configuration_save_url)\n
\n
bt5_update_catalog_list = (\'erp5_ingestion_mysql_innodb_catalog\',\n
\'slapos_cloud\', \'erp5_accounting\',\n
\'erp5_movement_table_catalog\')\n
\n
bt5_installation_list = bt5_update_catalog_list + (\'slapos_erp5\',)\n
\n
for name in bt5_installation_list:\n
configuration_save.addConfigurationItem("Standard BT5 Configurator Item",\n
title=name, bt5_id=name,\n
update_catalog=(name in bt5_update_catalog_list))\n
</string>
</value>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
configuration_save_url=None, **kw
</string>
</value>
<value>
<string>
configuration_save_url=None, **kw
</string>
</value>
...
...
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