Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
puppetpublic
base
Commits
3842228f
Verified
Commit
3842228f
authored
6 years ago
by
Adam Lewenberg
Browse files
Options
Downloads
Patches
Plain Diff
add parameter to exclude Stanford local repo from sources list
parent
c6b28a0d
No related branches found
No related tags found
1 merge request
!7
Puppet5 lonlone
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
manifests/os/debian.pp
+9
-3
9 additions, 3 deletions
manifests/os/debian.pp
templates/os/sources/stanford.list.erb
+2
-0
2 additions, 0 deletions
templates/os/sources/stanford.list.erb
with
11 additions
and
3 deletions
manifests/os/debian.pp
+
9
−
3
View file @
3842228f
...
...
@@ -36,11 +36,17 @@
# regular debian repository, so some users may not want to use this extra
# source; in that case, they should set this parameter to false.
# Default: true
#
# $debian_stanford_repo_local: Include the Stanford private local (debian-local)
# repository. Since this private repository is firewalled off from most of the internet,
# if your service in the "cloud" you will probably want to set it to false.
# Default: true
class
base::os::debian
(
$apt_cache_notin_tmp
=
false
,
$apt_cache_tmp_dir
=
'/var/cache/apt/tmp'
,
$debian_stanford_backports
=
true
$apt_cache_notin_tmp
=
false
,
$apt_cache_tmp_dir
=
'/var/cache/apt/tmp'
,
$debian_stanford_backports
=
true
,
$debian_stanford_repo_local
=
true
,
){
include
base::newsyslog
...
...
This diff is collapsed.
Click to expand it.
templates/os/sources/stanford.list.erb
+
2
−
0
View file @
3842228f
...
...
@@ -20,10 +20,12 @@
# The Stanford-specific Debian archive and source tree (world-accessible).
deb http://debian.stanford.edu/debian-stanford
<%=
dist
%>
main non-free contrib
deb-src http://debian.stanford.edu/debian-stanford
<%=
dist
%>
main non-free contrib
<%
if
(
@debian_stanford_repo_local
)
-%>
# The Stanford restricted Debian archive and source tree.
deb http://debian.stanford.edu/debian-local
<%=
dist
%>
main non-free contrib
deb-src http://debian.stanford.edu/debian-local
<%=
dist
%>
main non-free contrib
<%
end
-%>
<%
if
(
@debian_stanford_backports
)
&&
(
@lsbdistcodename
==
'wheezy'
||
@lsbdistcodename
==
'jessie'
||
@operatingsystem
==
'Ubuntu'
)
-%>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment