Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Start the unattended-upgrades service on every puppet run #4

@yarikdot

Description

@yarikdot

Checking the unattended-upgrades init script I can see:

start|restart|force-reload|status)
    # nothing, just to keep update-rc.d happy (see debian #630732)
    ;;

Is it then required to have:

service { $package:
    ensure    => running,
    subscribe => [ File[$conf_path], File[$apt_path], Package[$package], ],
}

as it doesn't do anything? It just starts the service on every puppet run:

Notice: /Stage[main]/Unattended_upgrades/Service[unattended-upgrades]/ensure: ensure changed 'stopped' to 'running'
Debug: /Stage[main]/Unattended_upgrades/Service[unattended-upgrades]: The container Class[Unattended_upgrades] will propagate my refresh event
Info: /Stage[main]/Unattended_upgrades/Service[unattended-upgrades]: Unscheduling refresh on Service[unattended-upgrades]

OS: Debian Jessie

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions