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
f99404dd
Commit
f99404dd
authored
Nov 07, 2013
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using var for global bashrc update
parent
018e6887
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
1 deletions
+8
-1
playbooks/roles/common/defaults/main.yml
+3
-0
playbooks/roles/common/tasks/main.yml
+1
-0
playbooks/roles/common/templates/bash.bashrc.j2
+1
-1
util/jenkins/ansible-provision.sh
+2
-0
util/jenkins/create-var-file.sh
+1
-0
No files found.
playbooks/roles/common/defaults/main.yml
View file @
f99404dd
...
...
@@ -21,6 +21,8 @@ COMMON_GIT_MIRROR: 'github.com'
# override this var to set a different hostname
COMMON_HOSTNAME
:
!!null
# override this var to add a prefix to the prompt
# also need to set commont_update_bashrc for to
# update the system bashrc default
COMMON_PROMPT
:
"
"
...
...
@@ -45,3 +47,4 @@ common_pip_pkgs:
common_web_user
:
www-data
common_web_group
:
www-data
common_log_user
:
syslog
common_update_bashrc
:
false
playbooks/roles/common/tasks/main.yml
View file @
f99404dd
...
...
@@ -63,3 +63,4 @@
-
name
:
common | set global bashrc
template
:
src=bash.bashrc.j2 dest=/etc/bash.bashrc
when
:
common_update_bashrc
playbooks/roles/common/templates/bash.bashrc.j2
View file @
f99404dd
...
...
@@ -18,7 +18,7 @@ if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
fi
# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='{{
hostname_prompt
}}${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
PS1='{{
COMMON_PROMPT
}}${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
...
...
util/jenkins/ansible-provision.sh
View file @
f99404dd
...
...
@@ -94,6 +94,8 @@ gh_users:
-
${
github_username
}
dns_zone:
$dns_zone
rabbitmq_refresh: True
common_update_bashrc: true
COMMON_PROMPT: '[
$name_tag
] '
EOF
cat
$extra_vars
# run the tasks to launch an ec2 instance from AMI
...
...
util/jenkins/create-var-file.sh
View file @
f99404dd
...
...
@@ -28,4 +28,5 @@ ease_version: $ease_version
rabbitmq_ip: "127.0.0.1"
rabbitmq_refresh: True
common_hostname: edx-server
EOF
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