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
OpenEdx
configuration
Commits
1c7fe1b3
Unverified
Commit
1c7fe1b3
authored
Jul 04, 2016
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proper YAML syntax for rewriting ansible tasks
parent
8e202d61
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
43 deletions
+47
-43
playbooks/roles/minos/tasks/main.yml
+47
-43
No files found.
playbooks/roles/minos/tasks/main.yml
View file @
1c7fe1b3
...
@@ -35,27 +35,29 @@
...
@@ -35,27 +35,29 @@
#
#
#TODO: remove
#TODO: remove
-
name
:
m
aintain backwards-compatable config location
-
name
:
M
aintain backwards-compatable config location
file
:
>
file
:
path={{ COMMON_CFG_DIR }}/{{ minos_service_name }}/{{ minos_service_name }}.yml
src
:
"
{{
COMMON_CFG_DIR
}}/{{
minos_service_name
}}.yml"
state=link
dest
:
"
{{
COMMON_CFG_DIR
}}/{{
minos_service_name
}}/{{
minos_service_name
}}.yml"
s
rc={{ COMMON_CFG_DIR }}/{{ minos_service_name }}.yml
s
tate
:
link
owner
=
root
owner
:
root
group
=
root
group
:
root
-
name
:
c
reate minos config directory
-
name
:
C
reate minos config directory
file
:
>
file
:
path
={{ minos_voter_cfg }}
path
:
"
{{
minos_voter_cfg
}}"
state
=
directory
state
:
directory
owner
=
root
owner
:
root
group
=
root
group
:
root
mode
=0755
mode
:
"
0755"
-
name
:
create minos voters configs
-
name
:
Create minos voters configs
template
:
>
template
:
dest={{ minos_voter_cfg }}/{{ item }}.yml
dest
:
"
{{
minos_voter_cfg
}}/{{
item
}}.yml"
src=edx/etc/minos/conf.d/{{ item }}.yml.j2
src
:
"
edx/etc/minos/conf.d/{{
item
}}.yml.j2"
mode=0755 owner=root group=root
mode
:
"
0755"
owner
:
root
group
:
root
with_items
:
with_items
:
-
"
BellwetherVoter"
-
"
BellwetherVoter"
-
"
ProccessQuiescenceVoterPython"
-
"
ProccessQuiescenceVoterPython"
...
@@ -63,33 +65,35 @@
...
@@ -63,33 +65,35 @@
-
"
ZippedTrackingLogVoter"
-
"
ZippedTrackingLogVoter"
-
"
RolledTrackingLogVoter"
-
"
RolledTrackingLogVoter"
# Optional auth for git
# Optional auth for git
-
name
:
c
reate ssh script for git (not authenticated)
-
name
:
C
reate ssh script for git (not authenticated)
template
:
>
template
:
src
=tmp/git-identity.sh.j2 dest={{ minos_git_ssh }}
src
:
"
tmp/git-identity.sh.j2"
mode=750
dest
:
"
{{
minos_git_ssh
}}"
when
:
mode
:
"
0750"
-
MINOS_GIT_IDENTITY is not defined
when
:
MINOS_GIT_IDENTITY is not defined
-
name
:
c
reate ssh script for git (authenticated)
-
name
:
C
reate ssh script for git (authenticated)
template
:
>
template
:
src
=tmp/git-identity.sh.j2 dest={{ minos_git_ssh }}
src
:
"
tmp/git-identity.sh.j2"
mode=750
dest
:
"
{{
minos_git_ssh
}}"
when
:
mode
:
"
0750"
-
MINOS_GIT_IDENTITY is defined
when
:
MINOS_GIT_IDENTITY is defined
-
name
:
install read-only ssh key
-
name
:
Install read-only ssh key
copy
:
>
copy
:
content="{{ MINOS_GIT_IDENTITY }}" dest="{{ minos_git_identity }}"
content
:
"
{{
MINOS_GIT_IDENTITY
}}"
force=yes mode=0600
dest
:
"
{{
minos_git_identity
}}"
force
:
yes
mode
:
"
0600"
-
name
:
i
nstall python custom-requirements
-
name
:
I
nstall python custom-requirements
pip
:
>
pip
:
name
=
"{{ item }}"
name
:
"
{{
item
}}"
virtualenv
=
"{{ minos_app_dir }}/venvs/"
virtualenv
:
"
{{
minos_app_dir
}}/venvs/"
state
=
present
state
:
present
extra_args
=
"--exists-action w"
extra_args
:
"
--exists-action
w"
version
=
"{{ minos_edx_server_tools_version }}"
version
:
"
{{
minos_edx_server_tools_version
}}"
environment
:
environment
:
GIT_SSH
:
"
{{
minos_git_ssh
}}"
GIT_SSH
:
"
{{
minos_git_ssh
}}"
with_items
:
with_items
:
...
...
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