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
5e624ace
Commit
5e624ace
authored
Sep 19, 2013
by
Will Daly
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated python egg cache permissions
Removed .bash_profile and .bashrc config
parent
05dc40b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
28 deletions
+2
-28
playbooks/roles/jenkins_worker/files/install_python_pkgs.sh
+1
-1
playbooks/roles/jenkins_worker/tasks/system.yml
+1
-27
No files found.
playbooks/roles/jenkins_worker/files/install_python_pkgs.sh
View file @
5e624ace
...
...
@@ -39,7 +39,7 @@ else
# Create python egg cache and set correct permissions
PYTHON_EGG_CACHE
=
$HOME
/.python-eggs
mkdir
-p
$PYTHON_EGG_CACHE
chmod
600
$PYTHON_EGG_CACHE
chmod
700
-R
$PYTHON_EGG_CACHE
# Create and activate the virtualenv
echo
"No virtualenv found; creating it..."
...
...
playbooks/roles/jenkins_worker/tasks/system.yml
View file @
5e624ace
...
...
@@ -56,32 +56,6 @@
-
unzip
-
xml-twig-tools
-
name
:
jenkins |
Configure
environment variables
-
name
:
jenkins |
Add script to set up
environment variables
template
:
src=jenkins_env.sh.j2 dest=/usr/local/bin/jenkins_env.sh
owner=root group=root mode=0555
-
name
:
jenkins | ensure .bash_profile exists
shell
:
touch {{ jenkins_user_home }}/.bash_profile
sudo_user
:
"
{{
jenkins_user
}}"
-
name
:
jenkins | ensure .bashrc exists
shell
:
touch {{ jenkins_user_home }}/.bashrc
sudo_user
:
"
{{
jenkins_user
}}"
-
name
:
jenkins | Configure bashrc
lineinfile
:
dest={{ jenkins_user_home }}/.bashrc
regexp="source /usr/local/bin/jenkins_env.sh"
line="source /usr/local/bin/jenkins_env.sh"
# Ensure that code executed by the worker can't be
# installed to execute on login.
-
name
:
Set permissions on .bash_profile
file
:
path="{{ jenkins_user_home }}/.bash_profile" state=file
owner="{{ jenkins_user }}" group="{{ jenkins_group }}"
mode=0500
-
name
:
Set permissions on .bashrc
file
:
path="{{ jenkins_user_home }}/.bashrc" state=file
owner="{{ jenkins_user }}" group="{{ jenkins_group }}"
mode=0500
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