Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9123770
datastax_repo.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
datastax_repo.pp
View Options
# == Class: cassandra::datastax_repo
#
# Please see the README for this module for full details of what this class
# does as part of the module and how to use it.
#
class
cassandra
::
datastax_repo
(
$descr
=
'DataStax Repo for Apache Cassandra'
,
$key_id
=
'7E41C00F85BFC1706C4FFFB3350200F2B999A372'
,
$key_url
=
'http://debian.datastax.com/debian/repo_key'
,
$pkg_url
=
undef
,
$release
=
'stable'
)
{
case
$::osfamily
{
'RedHat'
:
{
if
$pkg_url
!=
undef
{
$baseurl
=
$pkg_url
}
else
{
$baseurl
=
'http://rpm.datastax.com/community'
}
yumrepo
{
'datastax'
:
ensure
=>
present
,
descr
=>
$descr,
baseurl
=>
$baseurl,
enabled
=>
1
,
gpgcheck
=>
0
,
}
}
'Debian'
:
{
include
apt
include
apt
::
update
apt
::
key
{
'datastaxkey'
:
id
=>
$key_id,
source
=>
$key_url,
before
=>
Apt
::
Source
[
'datastax'
]
}
if
$pkg_url
!=
undef
{
$location
=
$pkg_url
}
else
{
$location
=
'http://debian.datastax.com/community'
}
apt
::
source
{
'datastax'
:
location
=>
$location,
comment
=>
$descr,
release
=>
$release,
include
=>
{
'src'
=>
false
},
notify
=>
Exec
[
'update-cassandra-repos'
]
}
# Required to wrap apt_update
exec
{
'update-cassandra-repos'
:
refreshonly
=>
true
,
command
=>
'/bin/true'
,
require
=>
Exec
[
'apt_update'
],
}
}
default
:
{
warning
(
"OS family ${::osfamily} not supported"
)
}
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jun 21, 6:06 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3353228
Attached To
R208 puppet-puppet-cassandra
Event Timeline
Log In to Comment