Comments (6)
Currently doing
class { 'docker':
use_upstream_package_source => false,
ensure => 'absent',
}
But that has the issue of uninstalling the latest and installing docker.io
my current thinking is ensure => 'unmanaged'
from garethr-docker.
This is what is currently working for me.
apt::source { 'docker':
location => 'http://get.docker.io/ubuntu',
release => 'docker',
repos => 'main',
include_src => false,
key => 'A88D21E9',
key_server => 'keyserver.ubuntu.com',
}
exec { '/usr/bin/apt-get install -y lxc-docker':
before => Class['docker'],
require => Class['Apt::Update'],
}
class { 'docker':
use_upstream_package_source => false,
ensure => 'absent',
}
from garethr-docker.
Hi @hackzilla, could you post the manifest that is causing this error? I'm not sure how you're triggering it? Are you by some chance using a different Apt module to the Puppetlabs one?
from garethr-docker.
My use of Apt:
apt::source { 'newrelic':
location => 'http://apt.newrelic.com/debian/',
release => 'newrelic',
repos => 'non-free',
include_src => false,
key => '548C16BF',
key_server => 'subkeys.pgp.net',
}
class { 'apt':
always_apt_update => true
}
->
exec { '/usr/bin/apt-get -y install acl': }
->
exec { '/bin/mount -o remount,acl /': }
from garethr-docker.
Using puppet labs apt v1.4.2
FORGE
remote: http://forge.puppetlabs.com
specs:
garethr/docker (0.13.0)
puppetlabs/apt (>= 1.1.0)
puppetlabs/stdlib (>= 4.1.0)
stahnma/epel (>= 0.0.6)
nightfly/ssh_keys (0.0.1)
puppetlabs/concat (>= 1.0.0)
puppetlabs/apt (1.4.2)
puppetlabs/stdlib (>= 2.2.1)
puppetlabs/concat (1.1.0)
puppetlabs/stdlib (>= 4.0.0)
puppetlabs/git (0.0.3)
puppetlabs/ntp (3.0.3)
puppetlabs/stdlib (>= 0.1.6)
puppetlabs/stdlib (4.2.1)
stahnma/epel (0.0.6)
from garethr-docker.
I've added a manage_package
param to the init which makes sure the package resource for docker isn't defined. Commit here: 5e395f8. This I think should deal with your usecase I think, using the following:
class { 'docker':
use_upstream_package_source => false,
manage_package => false,
}
Let me know if that doesn't fix things and I've misunderstood. Cheers
from garethr-docker.
Related Issues (20)
- docker::run ensure=> 'absent' inconsistent HOT 1
- env attribute does not work when a "-" is present HOT 4
- Using registry mirror
- CentOS/7 : Having "INSECURE_REGISTRY" option HOT 1
- Use docker::swarm as an exported resource HOT 5
- Error while evaluating a Resource Statement, Apt::Source[docker] HOT 3
- docker image, docker_tar and restart containers only on update? HOT 4
- Allow Docker to configure direct-lvm mode
- Docker 17.06 cannot get HOT 7
- Connecting to Docker Hub HOT 1
- RHEL 7 extra repository error
- Support docker-ce
- Please mark this module as deprecated and redirect to puppetlabs/puppetlabs-docker HOT 1
- Amazon Linux 2 support HOT 2
- Ubuntu: Install docker-ce instead of docker-engine? HOT 1
- Notice of Newer PuppetLabs Module HOT 1
- Docker registry auth doesn't check if it authed already? HOT 1
- $docker::service_provider is not respected by docker::run HOT 1
- support for Centos 8 HOT 1
- Please point users of this module to https://github.com/puppetlabs/puppetlabs-docker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garethr-docker.