Skip to content
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

Convert apt::key to use anchors #32

Merged
merged 1 commit into from
Mar 15, 2012
Merged

Convert apt::key to use anchors #32

merged 1 commit into from
Mar 15, 2012

Conversation

reidmv
Copy link

@reidmv reidmv commented Mar 7, 2012

Previously, apt::key used a noop exec hack to do exactly what anchors were intended to be used for. This commit removes the exec hack and achieves the same end using Anchor resources from the puppetlabs/stdlib module.

Previously, apt::key used a noop exec hack to do exactly what anchors were
intended to be used for. This commit removes the exec hack and achieves the
same end using Anchor resources from the puppetlabs/stdlib module.
@reidmv
Copy link
Author

reidmv commented Mar 13, 2012

In case it isn't clear what's going on here, I'm pasting some example puppet code and the resulting dependency graph to try and illustrate the cases that necessitate all this complicated looking anchor stuff. It's not completely self-explanatory but it might be somewhat helpful.

Code

apt::source { "ubuntu_partner":
  include_src => true,
  location    => "http://archive.canonical.com/ubuntu",
  key         => "437D05B5",
  key_server  => "pgp.mit.edu",
  repos       => "partner",
}

apt::source { "ubuntu_mirror_wsu":
  location    => "http://ubuntu-releases.eecs.wsu.edu",
  key         => "437D05B5",
  key_server  => "keyserver.ubuntu.com",
  repos       => "main restricted universe multiverse",
}

apt::source { "ubuntu_mirror_psu":
  location    => "http://mirrors.cat.pdx.edu/ubuntu",
  key         => "437D05B5",
  key_server  => "pgp.mit.edu",
  repos       => "main restricted universe multiverse",
}

apt::source { "cat_internal_repo":
  location    => "http://mirrors.cat.pdx.edu/cat",
  key         => "1EE15D43",
  key_server  => "pgp.mit.edu",
  repos       => "main",
} 

Resulting Dependency Graph

Dependency Graph
Full size image

haus added a commit that referenced this pull request Mar 15, 2012
@haus haus merged commit 3dd2d1f into puppetlabs:master Mar 15, 2012
@LukasAud LukasAud added the bugfix label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants