reformatted whitespace to match recommended style
of 2 space indentation.
This commit is contained in:
parent
27ebdfc57f
commit
77d2b0dd05
8 changed files with 108 additions and 107 deletions
|
@ -29,19 +29,19 @@ class apt(
|
|||
package { "python-software-properties": }
|
||||
|
||||
file { "sources.list":
|
||||
name => "${apt::params::root}/sources.list",
|
||||
ensure => present,
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 644,
|
||||
}
|
||||
name => "${apt::params::root}/sources.list",
|
||||
|
||||
file { "sources.list.d":
|
||||
name => "${apt::params::root}/sources.list.d",
|
||||
ensure => directory,
|
||||
owner => root,
|
||||
group => root,
|
||||
}
|
||||
name => "${apt::params::root}/sources.list.d",
|
||||
|
||||
exec { "apt_update":
|
||||
command => "${apt::params::provider} update",
|
||||
|
|
|
@ -6,14 +6,14 @@ define apt::pin(
|
|||
$priority = 0
|
||||
) {
|
||||
|
||||
include apt::params
|
||||
|
||||
file { "${name}.pref":
|
||||
name => "${apt::params::root}/preferences.d/${name}",
|
||||
ensure => file,
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 644,
|
||||
content => "# ${name}\nPackage: ${packages}\nPin: release a=${name}\nPin-Priority: ${priority}",
|
||||
}
|
||||
include apt::params
|
||||
|
||||
name => "${apt::params::root}/preferences.d/${name}",
|
||||
}
|
||||
|
|
|
@ -4,12 +4,12 @@ class apt::release (
|
|||
$release_id
|
||||
) {
|
||||
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 644,
|
||||
}
|
||||
include apt::params
|
||||
|
||||
file { "${apt::params::root}/apt.conf.d/01release":
|
||||
owner => root,
|
||||
group => root,
|
||||
mode => 644,
|
||||
content => "APT::Default-Release \"${release_id}\";"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,11 @@ define apt::source(
|
|||
$pin = false
|
||||
) {
|
||||
|
||||
include apt::params
|
||||
|
||||
|
||||
file { "${name}.list":
|
||||
name => "${apt::params::root}/sources.list.d/${name}.list",
|
||||
ensure => file,
|
||||
owner => root,
|
||||
group => root,
|
||||
|
@ -25,11 +29,13 @@ define apt::source(
|
|||
}
|
||||
|
||||
exec { "${name} apt update":
|
||||
command => "${apt::params::provider} update",
|
||||
subscribe => File["${name}.list"],
|
||||
refreshonly => true,
|
||||
}
|
||||
|
||||
if $required_packages != false {
|
||||
exec { "${apt::params::provider} -y install ${required_packages}":
|
||||
subscribe => File["${name}.list"],
|
||||
refreshonly => true,
|
||||
}
|
||||
|
@ -41,9 +47,4 @@ define apt::source(
|
|||
before => File["${name}.list"],
|
||||
}
|
||||
}
|
||||
include apt::params
|
||||
|
||||
name => "${apt::params::root}/sources.list.d/${name}.list",
|
||||
command => "${apt::params::provider} update",
|
||||
exec { "${apt::params::provider} -y install ${required_packages}":
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue