Giter Club home page Giter Club logo

Comments (6)

hackzilla avatar hackzilla commented on September 13, 2024

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.

hackzilla avatar hackzilla commented on September 13, 2024

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.

garethr avatar garethr commented on September 13, 2024

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.

hackzilla avatar hackzilla commented on September 13, 2024

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.

hackzilla avatar hackzilla commented on September 13, 2024

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.

garethr avatar garethr commented on September 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.