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
ccc81d07
Commit
ccc81d07
authored
11 years ago
by
John Jarvis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updating git.py from sysadmin
parent
a704f356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
25 deletions
+15
-25
fabfile/git.py
+15
-25
No files found.
fabfile/git.py
View file @
ccc81d07
...
@@ -262,21 +262,21 @@ def deploy(auto_migrate=False):
...
@@ -262,21 +262,21 @@ def deploy(auto_migrate=False):
_install_gemfile
(
pkg
)
_install_gemfile
(
pkg
)
_install_npm_package
(
pkg
)
_install_npm_package
(
pkg
)
#
with dog_stats_api.timer(metric_name, tags=repo_tags + ['step:fact']):
with
dog_stats_api
.
timer
(
metric_name
,
tags
=
repo_tags
+
[
'step:fact'
]):
#
# drop a file for puppet so it knows that
# drop a file for puppet so it knows that
#
# code is installed for the service
# code is installed for the service
#
with cd('/etc/facter/facts.d'):
with
cd
(
'/etc/facter/facts.d'
):
#
pkg_config = PackageInfo()
pkg_config
=
PackageInfo
()
#
if pkg.repo_name in pkg_config.service_repos:
if
pkg
.
repo_name
in
pkg_config
.
service_repos
:
#
# facts can't have dashes so they are converted
# facts can't have dashes so they are converted
#
# to underscores
# to underscores
#
noopable(sudo)(
noopable
(
sudo
)(
#
'echo "{0}_installed=true" > {0}_installed.txt'.format(
'echo "{0}_installed=true" > {0}_installed.txt'
.
format
(
#
pkg.repo_name.replace("-", "_")))
pkg
.
repo_name
.
replace
(
"-"
,
"_"
)))
#
with dog_stats_api.timer(metric_name, tags=package_tags +
with
dog_stats_api
.
timer
(
metric_name
,
tags
=
package_tags
+
#
['step:pkg_version']):
[
'step:pkg_version'
]):
#
pkg_version()
pkg_version
()
with
dog_stats_api
.
timer
(
metric_name
,
tags
=
package_tags
+
with
dog_stats_api
.
timer
(
metric_name
,
tags
=
package_tags
+
[
'step:post_commands'
]):
[
'step:post_commands'
]):
...
@@ -384,15 +384,6 @@ def _install_requirements(pkg):
...
@@ -384,15 +384,6 @@ def _install_requirements(pkg):
# suspended
# suspended
sudo
(
'{0} {1}'
.
format
(
AA_COMPLAIN
,
AA_SANDBOX_POLICY
))
sudo
(
'{0} {1}'
.
format
(
AA_COMPLAIN
,
AA_SANDBOX_POLICY
))
# Run old-style requirements TODO: remove
_run_if_changed
(
pkg
,
'pre-requirements.txt'
,
partial
(
pip_install
,
file
=
'pre-requirements.txt'
,
venv
=
'/opt/edx'
),
'cat *requirements.txt'
)
_run_if_changed
(
pkg
,
'requirements.txt'
,
partial
(
pip_install
,
file
=
'requirements.txt'
,
venv
=
'/opt/edx'
),
'cat *requirements.txt'
)
# end old-style requirements
# Run new-style requirements
# Run new-style requirements
for
venv
in
VIRTUAL_ENVS
:
for
venv
in
VIRTUAL_ENVS
:
if
not
files
.
exists
(
venv
):
if
not
files
.
exists
(
venv
):
...
@@ -409,7 +400,6 @@ def _install_requirements(pkg):
...
@@ -409,7 +400,6 @@ def _install_requirements(pkg):
if
files
.
exists
(
AA_ENFORCE
)
and
files
.
exists
(
AA_SANDBOX_POLICY
):
if
files
.
exists
(
AA_ENFORCE
)
and
files
.
exists
(
AA_SANDBOX_POLICY
):
sudo
(
'{0} {1}'
.
format
(
AA_ENFORCE
,
AA_SANDBOX_POLICY
))
sudo
(
'{0} {1}'
.
format
(
AA_ENFORCE
,
AA_SANDBOX_POLICY
))
@task
@task
@runs_once
@runs_once
def
deploy_with_puppet
():
def
deploy_with_puppet
():
...
...
This diff is collapsed.
Click to expand it.
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