Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
aes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
liu-puppet-modules
aes
Commits
61d01347
Commit
61d01347
authored
4 years ago
by
Filip Strömbäck
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
manifests/aes_broker.pp
+34
-3
34 additions, 3 deletions
manifests/aes_broker.pp
with
34 additions
and
3 deletions
manifests/aes_broker.pp
+
34
−
3
View file @
61d01347
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
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