Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pelican-gitreceive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ansible
pelican-gitreceive
Commits
c87c59a7
Commit
c87c59a7
authored
8 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
- Install Python packages in a virtualenv.
parent
773fef59
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tasks/main.yml
+14
-2
14 additions, 2 deletions
tasks/main.yml
templates/receiver.sh
+3
-1
3 additions, 1 deletion
templates/receiver.sh
with
17 additions
and
3 deletions
tasks/main.yml
+
14
−
2
View file @
c87c59a7
...
...
@@ -9,19 +9,31 @@
-
pelican_gitreceive_output is defined
-
name
:
APT install prerequisites
when
:
ansible_pkg_mgr == 'apt'
apt
:
name
:
python-dev
name
:
[
python-dev
,
libssl-dev
,
libffi-dev
,
build-essential
]
state
:
present
update_cache
:
yes
cache_valid_time
:
3600
-
name
:
Create virtualenv directory
file
:
path
:
/var/lib/pelican-gitreceive
owner
:
git
group
:
git
mode
:
0o0700
state
:
directory
-
name
:
pip install
become
:
True
become_user
:
git
with_items
:
-
pelican
-
f
abric
-
F
abric
pip
:
name
:
'
{{
item
}}'
state
:
present
virtualenv
:
/var/lib/pelican-gitreceive
-
name
:
Create directory structure
file
:
...
...
This diff is collapsed.
Click to expand it.
templates/receiver.sh
+
3
−
1
View file @
c87c59a7
...
...
@@ -4,8 +4,10 @@ echo Recieving blog...
tempdir
=
"
$(
mktemp
-d
)
"
cd
$tempdir
tar
-xf
-
echo
Fetching Git submodules
echo
Fetching Git submodules
...
git submodule update
--init
--recursive
echo
Activating virtualenv...
.
/var/lib/pelican-gitreceive/bin/activate
echo
Building blog...
fab build
echo
Syncing blog...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment