Giter Club home page Giter Club logo

Comments (2)

TheMeier avatar TheMeier commented on June 28, 2024

The array form is explicitly tested in https://github.com/voxpupuli/puppet-systemd/blob/master/spec/defines/manage_unit_spec.rb#L41-L42

In your sample there is an error (extra ] line 11)

Running this code

include systemd

systemd::manage_unit { 'remote-decrypt-containerd.service':
  unit_entry    => {
    'Description' => 'Decrypts and unlock containerd',
  },
  service_entry => {
    'Type'        => 'simple',
    'ExecStart'   => 'remote-decrypt',
    'Environment' => ['URL=https://foo.bar.com/key','DEVICE=/dev/nvme0n1p1','VOLUME_NAME=containerd'],
  },
  install_entry => {
    'WantedBy' => 'multi-user.target',
  },
}

Does produce this result:

# Deployed with puppet
#

[Unit]
Description=Decrypts and unlock containerd

[Service]
Type=simple
ExecStart=remote-decrypt
Environment=URL=https://foo.bar.com/key
Environment=DEVICE=/dev/nvme0n1p1
Environment=VOLUME_NAME=containerd

[Install]
WantedBy=multi-user.target

Please verify that you are actually using the correct module version, also you put the module version under Puppet

from puppet-systemd.

qdii avatar qdii commented on June 28, 2024

Ahh indeed I had version 4.2.0 installed. Once upgrading to 6.6.0 the syntax worked.
Thanks!

from puppet-systemd.

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.