Skip to content

Support file mode #77

@joshcooper

Description

@joshcooper

Use Case

Puppet enforces mode 0644 for yum repos, but if the repo contains credentials (as specified via username and password properties), then it should be possible for the repo to not be world-readable.

We should possibly warn if a password is specified and the mode is not managed?

Describe the Solution You Would Like

yumrepo { 'puppetcore8':
  ensure    => 'present',
  username  => '...',
  password  => Sensitive("..."),
  mode      => "0600",
  ...
}

Apply this manifest should result in 0600.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeaturetriagedJira issue has been created for this

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions