Skip to content
Snippets Groups Projects
Commit 61d01347 authored by Filip Strömbäck's avatar Filip Strömbäck
Browse files

Started a module for the Broker. It currently only creates the user and not much more.

parent 190638e0
No related branches found
No related tags found
No related merge requests found
class aes::broker { class aes::broker {
$broker_user = broker
$broker_group "${broker_user}"
$broker_home = "/srv/${broker_user}"
$broker_service = "${broker_user}"
# Sadly, it does not seem like we can only install asio, so we need
# to install the Boost as a whole.
# It is easiest to install just "boost", even if that is a bit older
# than what is available (others require modifying the include path).
# It is still enough for the broker.
package { package {
[ [
'devtoolset-7-gcc', 'boost',
'devtoolset-7-gcc-c++', 'boost-devel',
'boost169', 'krb5-libs',
'krb5-devel',
]: ]:
ensure => installed, ensure => installed,
} }
user { "${broker_user}" :
ensure => present,
home => "${broker_user}",
comment => 'Message broker for AES',
managehome => false,
membership => inclusive,
system => true,
shell => '/sbin/nologin',
}
file { "${broker_home}" :
ensure => directory,
owner => "${broker_user}",
group => "${broker_group}",
mode => '0755',
}
# TODO: We still need to download the source from Git as needed and update the broker and auth service.
# To compile the broker, we need to do "source /opt/rh/devtoolset-7/enable" first. Otherwise, we will not get a good enough GCC.
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment