Gitlab Community Edition Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GWDG-Puppet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Benedikt Wegmann
GWDG-Puppet
Commits
210c0972
Commit
210c0972
authored
8 years ago
by
Benedikt Wegmann
Browse files
Options
Downloads
Patches
Plain Diff
docker
parent
c87e3a02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/docker.pp
+53
-0
53 additions, 0 deletions
manifests/docker.pp
with
53 additions
and
0 deletions
manifests/docker.pp
0 → 100644
+
53
−
0
View file @
210c0972
class
ubuntu_server::docker
{
File
{
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
644
,
}
Exec
{
path
=>
$path
,
}
exec
{
'docker-apt-repo'
:
command
=>
"apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D"
,
unless
=>
"apt-key list | grep -q 2C52609D"
,
notify
=>
Exec
[
'apt-get update'
],
}
exec
{
'apt-get update'
:
command
=>
'apt-get update'
,
}
file
{
'/etc/apt/sources.list.d/docker.list'
:
ensure
=>
present
,
content
=>
"deb https://apt.dockerproject.org/repo ubuntu-trusty main"
,
notify
=>
Exec
[
'apt-get update'
],
}
package
{
'lxc-docker'
:
ensure
=>
purged
,
before
=>
Package
[
'docker-engine'
],
}
package
{
'docker-engine'
:
ensure
=>
present
,
require
=>
[
Exec
[
'docker-apt-repo'
],
File
[
'/etc/apt/sources.list.d/docker.list'
],
Exec
[
'ubuntu_server::docker::apt-get update'
]],
}
service
{
'docker'
:
ensure
=>
running
,
require
=>
Package
[
'docker-engine'
],
}
exec
{
'docker-compose'
:
command
=>
'curl -L https://github.com/docker/compose/releases/download/1.6.2/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose'
,
creates
=>
'/usr/local/bin/docker-compose'
,
}
file
{
'/usr/local/bin/docker-compose'
:
mode
=>
750
,
require
=>
Exec
[
'docker-compose'
],
}
}
This diff is collapsed.
Click to expand it.
Benedikt Wegmann
@bwegman1
mentioned in commit
2d19e033
·
8 years ago
mentioned in commit
2d19e033
mentioned in commit 2d19e03364518c657f0619f1e118d6a68b48c797
Toggle commit list
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