Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Forks
Puppet Portage
Commits
068169c9
Commit
068169c9
authored
Aug 10, 2011
by
Lance Albertson
Browse files
misc fixes, typoes, etc
parent
d792224b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
27 additions
and
25 deletions
+27
-25
manifests/init.pp
manifests/init.pp
+1
-1
manifests/keywords.pp
manifests/keywords.pp
+4
-4
manifests/makeconf.pp
manifests/makeconf.pp
+5
-3
manifests/postsync.pp
manifests/postsync.pp
+4
-4
manifests/unmask.pp
manifests/unmask.pp
+4
-4
manifests/use.pp
manifests/use.pp
+6
-6
templates/makeconf.conf.erb
templates/makeconf.conf.erb
+2
-2
templates/postsync.sh.erb
templates/postsync.sh.erb
+1
-1
No files found.
manifests/init.pp
View file @
068169c9
...
@@ -21,7 +21,7 @@ class gentoo {
...
@@ -21,7 +21,7 @@ class gentoo {
}
}
concat::fragment
{
"makeconf_base"
:
concat::fragment
{
"makeconf_base"
:
target
=>
$
makeconf
,
target
=>
"/etc/
make
.
conf
"
,
content
=>
template
(
"gentoo/makeconf.base.conf.erb"
),
content
=>
template
(
"gentoo/makeconf.base.conf.erb"
),
order
=>
00
,
order
=>
00
,
}
}
...
...
manifests/keywords.pp
View file @
068169c9
...
@@ -3,9 +3,9 @@ define gentoo::keywords ($source="", $ensure=present) {
...
@@ -3,9 +3,9 @@ define gentoo::keywords ($source="", $ensure=present) {
"gentoo_keywords_
${name}
"
:
"gentoo_keywords_
${name}
"
:
path
=>
"/etc/portage/package.keywords/
${name}
"
,
path
=>
"/etc/portage/package.keywords/
${name}
"
,
source
=>
"
${source}
"
,
source
=>
"
${source}
"
,
ensure
=>
$ensure
,
ensure
=>
$ensure
;
require
=>
File
[
"/etc/portage/package.keywords"
];
#
require => File["/etc/portage/package.keywords"];
"/etc/portage/package.keywords"
:
#
"/etc/portage/package.keywords":
ensure
=>
directory
;
#
ensure => directory;
}
}
}
}
manifests/makeconf.pp
View file @
068169c9
define
gentoo::makeconf
(
$source
=
""
,
$content
=
""
,
comment
=
""
,
$order
=
10
,
define
gentoo::makeconf
(
$source
=
""
,
$content
=
""
,
$
comment
=
""
,
$order
=
10
,
ensure
=
present
)
{
$
ensure
=
present
)
{
include
concat::setup
include
concat::setup
if
$content
{
if
$content
{
...
@@ -7,7 +7,8 @@ define gentoo::makeconf( $source="", $content="", comment="", $order=10,
...
@@ -7,7 +7,8 @@ define gentoo::makeconf( $source="", $content="", comment="", $order=10,
target
=>
"/etc/make.conf"
,
target
=>
"/etc/make.conf"
,
order
=>
$order
,
order
=>
$order
,
ensure
=>
$ensure
,
ensure
=>
$ensure
,
content
=>
template
(
"gentoo/make.conf.erb"
),
content
=>
template
(
"gentoo/makeconf.conf.erb"
),
}
}
}
if
$source
{
if
$source
{
...
@@ -16,5 +17,6 @@ define gentoo::makeconf( $source="", $content="", comment="", $order=10,
...
@@ -16,5 +17,6 @@ define gentoo::makeconf( $source="", $content="", comment="", $order=10,
order
=>
$order
,
order
=>
$order
,
ensure
=>
$ensure
,
ensure
=>
$ensure
,
source
=>
$source
,
source
=>
$source
,
}
}
}
}
}
manifests/postsync.pp
View file @
068169c9
...
@@ -4,9 +4,9 @@ define gentoo::postsync ($content="", $ensure=present) {
...
@@ -4,9 +4,9 @@ define gentoo::postsync ($content="", $ensure=present) {
path
=>
"/etc/portage/postsync.d/
${name}
"
,
path
=>
"/etc/portage/postsync.d/
${name}
"
,
content
=>
template
(
"gentoo/postsync.sh.erb"
),
content
=>
template
(
"gentoo/postsync.sh.erb"
),
mode
=>
755
,
mode
=>
755
,
ensure
=>
$ensure
,
ensure
=>
$ensure
;
require
=>
File
[
"/etc/portage/postsync.d"
];
#
require => File["/etc/portage/postsync.d"];
"/etc/portage/postsync.d"
:
#
"/etc/portage/postsync.d":
ensure
=>
directory
;
#
ensure => directory;
}
}
}
}
manifests/unmask.pp
View file @
068169c9
...
@@ -3,9 +3,9 @@ define gentoo::unmask ($source="", $ensure=present) {
...
@@ -3,9 +3,9 @@ define gentoo::unmask ($source="", $ensure=present) {
"gentoo_unmask_
${name}
"
:
"gentoo_unmask_
${name}
"
:
path
=>
"/etc/portage/package.unmask/
${name}
"
,
path
=>
"/etc/portage/package.unmask/
${name}
"
,
source
=>
"
${source}
"
,
source
=>
"
${source}
"
,
ensure
=>
$ensure
,
ensure
=>
$ensure
;
require
=>
File
[
"/etc/portage/package.unmask"
];
#
require => File["/etc/portage/package.unmask"];
"/etc/portage/package.unmask"
:
#
"/etc/portage/package.unmask":
ensure
=>
directory
;
#
ensure => directory;
}
}
}
}
manifests/use.pp
View file @
068169c9
define
gentoo::use
(
$source
=
""
,
$ensure
=
present
)
{
define
gentoo::use
(
$source
=
''
,
$ensure
=
present
)
{
file
{
file
{
"gentoo_use_
${name}
"
:
"gentoo_use_
${name}
"
:
path
=>
"/etc/portage/package.use/
${name}
"
,
path
=>
"/etc/portage/package.use/
${name}
"
,
source
=>
"
${
source
}
"
,
source
=>
$
source
,
ensure
=>
$ensure
,
ensure
=>
$ensure
;
require
=>
File
[
"/etc/portage/package.use"
];
#
require => File["/etc/portage/package.use"];
"/etc/portage/package.use"
:
#
"/etc/portage/package.use":
ensure
=>
directory
;
#
ensure => directory;
}
}
}
}
templates/makeconf.conf.erb
View file @
068169c9
#
<%=
priority
%><%=
name
%>
#
<%=
order
%><%=
name
%>
<%
if
comment
!=
""
-%>
<%
if
comment
!=
""
-%>
#
<%=
comment
%>
#
<%=
comment
%>
<%
end
-%>
<%
end
-%>
<%
content
%>
<%
=
content
%>
templates/postsync.sh.erb
View file @
068169c9
#!/bin/sh
#!/bin/sh
<%
content
%>
<%
=
content
%>
:
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment