Skip to content

Cannot alter sources file name #8

@threepistons

Description

@threepistons

The cloud-init files used by our build system and this module both try to add the source for mdatp, but with different names. I can resolve this conflict by parameterising the name of the sources file in the module so that I can set the sources file name in the control repo to match the build system, without altering the default behaviour of this module for anyone else who might use it.

The workflow for this task looks like:

  1. I will raise an issue against the mdatp module,
  2. I add the parameterisation feature,
  3. I tag a new release.
  4. I alter the controlrepo:
    • bump the mdatp module version used in the control repo,
    • set the parameterised source name in Hiera, and
    • add a file resource to remove the old sources file.

The kind of output I see from Apt is

W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/microsoft.list:1 and /etc/apt/sources.list.d/microsoftpackages.list:3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions