Skip to content

Running the example code for systemd::manage_unit from REFERENCE.md causes an error: #414

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
zbentley opened this issue Feb 27, 2024 · 0 comments · Fixed by #415
Closed

Comments

@zbentley
Copy link
Contributor

zbentley commented Feb 27, 2024

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.27.0
  • Ruby: 3.0.6
  • Distribution: Arch linux
  • Module version: 6.4.0

How to reproduce (e.g Puppet code you use)

Apply a manifest containing the code as written in REFERENCE.md for manage_unit:

  systemd::manage_unit { 'x86_energy_perf_policy.service':
    # unit_entry    => {
    #   'Description' => 'My great service',
    # },
    service_entry => {
      'Type'      => 'oneshot',
      'ExecStart' => '/usr/bin/x86_energy_perf_policy --epb 4',
    },
    install_entry => {
      WantedBy => 'multi-user.target',
    },
    enable        => true,
    active        => true,
  }

What are you seeing

A syntax error: Resource type not found: WantedBy

What behaviour did you expect instead

Successful manifest application

Output log

Starting: apply catalog on lap
Failed on lap:
  Apply failed to compile for lap: Evaluation Error: Resource type not found: WantedBy (file: /Users/zac/Desktop/Projects/Personal/zbox/modules/arch_linux/manifests/init.pp, line: 36, column: 7) on node lap
Finished: apply catalog with 1 failure in 1.7 sec
Failed on 1 target: lap
Ran on 1 target in 10.93 sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants