Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
a2f97466
Commit
a2f97466
authored
Jul 20, 2016
by
Brian Beggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go-server playbook now adds new admins to the config.xml
parent
347c7b21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
playbooks/library/xml
+0
-0
playbooks/roles/go-server/tasks/main.yml
+28
-0
No files found.
playbooks/library/xml
0 → 100644
View file @
a2f97466
This diff is collapsed.
Click to expand it.
playbooks/roles/go-server/tasks/main.yml
View file @
a2f97466
...
...
@@ -136,6 +136,34 @@
tags
:
-
local_password
-
name
:
install XML requirements
apt
:
name
:
"
python-lxml"
update_cache
:
yes
state
:
present
tags
:
-
local_password
-
name
:
install lxml
command
:
"
pip
install
lxml"
become_user
:
"
root"
tags
:
-
local_password
-
name
:
Replace the XML
xml
:
file
:
"
{{
GO_SERVER_CONF_HOME
}}/cruise-config.xml"
xpath
:
"
/cruise/server/security/admins"
add_children
:
-
user
:
"
{{
item
}}"
with_items
:
-
"
{{
GO_SERVER_ADMIN_USERNAME
}}"
-
"
{{
GO_SERVER_BACKUP_USERNAME
}}"
-
"
{{
GO_SERVER_GOMATIC_USERNAME
}}"
when
:
item is defined
tags
:
-
local_password
-
name
:
restart go-server
service
:
name
:
"
{{
GO_SERVER_SERVICE_NAME
}}"
...
...
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