Coder Social home page Coder Social logo

Comments (8)

dwerder avatar dwerder commented on September 15, 2024

The question is: Why is the install.pp executed twice? ;-)

You should call the main class redis::install only once. Its a class, not a defined type.

from puppet-redis.

gajus avatar gajus commented on September 15, 2024

Any chance of this getting sorted before the end of the day? I am using https://vagrantcloud.com/puppetlabs/boxes/centos-7.0-64-puppet, if thats helps.

from puppet-redis.

dwerder avatar dwerder commented on September 15, 2024

Did you also open an Issue for the puppet nodejs maintainers? They seem to have the same issue by not using ensure_packages. I will see to it. Or you can send me a PR ;)

from puppet-redis.

dwerder avatar dwerder commented on September 15, 2024

So try it with this master. It should work now.

from puppet-redis.

gajus avatar gajus commented on September 15, 2024

Getting:

==> default: Error: Could not find dependent Anchor['redis::prepare_build'] for Package[make]

Change:

'Debian', 'Ubuntu': {
    ensure_packages('build-essential', {'before' => Anchor['redis::prepare_build']} )
}
'Fedora', 'RedHat', 'CentOS', 'OEL', 'OracleLinux', 'Amazon': {
    ensure_packages(['make', 'gcc', 'glibc-devel'], {'before' => Anchor['redis::prepare_build']})
}

from puppet-redis.

gajus avatar gajus commented on September 15, 2024

Why is this closed if it has not been released yet?

from puppet-redis.

dwerder avatar dwerder commented on September 15, 2024

because it it fixed in the master. But dont worry, there will be a new release soon.

from puppet-redis.

jfrost avatar jfrost commented on September 15, 2024

Sadly, the 'before' => Anchor part of this:

ensure_packages('build-essential', {'before' => Anchor['redis::prepare_build']} )

makes it throw a duplicate declaration error because I also use ensure_packages in a different module like this:

  ensure_packages([
    'atop',
    'bc',
    'build-essential',
    'curl',
    'git-core',
    'glances',
    'htop',
    'libpam-cracklib',
    'locate',
    'logrotate',
    'lsof',
    'mailutils',
    'ncdu',
    'nethogs',
    'nscd',
    'ntp',
    'psmisc',
    'rsync',
    'silversearcher-ag',
    'snmpd',
    'sysstat',
    'tmpreaper',
    'unzip',
    'vim',
    'wget',
    'zsh',
    ]
  )

If you remove that, then the catalog compiles fine. Just putting this here for anyone else who runs into it.

from puppet-redis.

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.