-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fulcrum demo #642
Draft
antmoth
wants to merge
112
commits into
production
Choose a base branch
from
fulcrum-demo
base: production
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Fulcrum demo #642
Changes from all commits
Commits
Show all changes
112 commits
Select commit
Hold shift + click to select a range
1e97517
try updating jdk and tomcat
antmoth 95825aa
fix demo-fedora name
antmoth 9fbebf8
fix demofedora name again?
antmoth 6f75bbc
try disabling ssl for mysql
antmoth 0a9982a
reference demomysql in demofedora
antmoth 4324c5b
set password for demomysql?
antmoth 3b803a9
use override_options for demomysql
antmoth 4f7287d
fix override options hash syntax
antmoth 3c489d2
remove ssl-mode from demomysql
antmoth 78d816f
ensure that the parent directory of the webroot also exists
antmoth fa03380
ensure solr bin dir exists
antmoth 65aede8
try setting JAVA_HOME?
antmoth 83d1e84
Add JAVA_HOME to solr service env vars
antmoth 768c189
Update openjdk to adoptium/temurin, the maintained replacement
antmoth ddbf3b9
undo solr java 11 env var
antmoth 51feb42
change skip-ssl mysqld option to ssl-disable
antmoth 6edfea5
change mysql override_options to just options
antmoth fd5d7db
try to secure mysql?
antmoth fc7ed5c
simplify fulcrum profile
antmoth 55c3d6f
there's already something aliasing mysql-client to mariadb-client
antmoth 914ba70
trying to get puppet to complete
antmoth 884ede0
just remove all of the fulcrum reqs for now
antmoth de18911
adding back in fulcrum base
antmoth d4bd610
add back in fulcrum hosts + app
antmoth 17a7a52
add fulcrum::logrotate back in
antmoth 15af84a
add fulcrum::nginx back in
antmoth 58f586b
add back everything in fulcrum::standalone except mysql and fedora
antmoth bad4ebd
solr needs to use temurin jre
antmoth b0fb327
nginx is failing
antmoth 7fa6814
also comment out shib
antmoth c97f88d
also comment out solr
antmoth 6ee345f
add nginx back into the mix
antmoth abde34e
try pulling in some apache stuff from fulcrum_www_and_app
antmoth ff70e47
do i need to remove the nginx profile file as well?
antmoth 2761645
add .tool-versions to gitignore
antmoth 7dd7e43
comment out most of the apache stuff
antmoth 5a7729c
update www_lib to use temurin jdk
antmoth a4a219c
add apache fulcrum profile
antmoth f663f79
shibboleth?
antmoth 457cb22
odbc-mariadb => mariadb-unixodbc
antmoth 75484cb
take out apache shib config; add back solr
antmoth 81c4e5e
try adding back in mysql
antmoth ab10245
remove mysql securing command thingy
antmoth a8b389c
simplify mysql setup
antmoth f5e0792
finish setting up mysql service
antmoth d210663
does it need mysql-named packages instead of mariadb for some reason?
antmoth c0a47a9
still bashing at mysql
antmoth a80a33f
strip fulcrum standalone role back down to minimum for re-creating
antmoth aa69adc
update .ruby-version to 2.7
antmoth 064259b
add things back in to standalone role
antmoth f5c783a
add www lib perl
antmoth 39bab6e
add in some apache stuff
antmoth 08ca24b
add rest of apache stuff
antmoth 2609ee6
take out shib stuff
antmoth 3ed416e
add back in solr
antmoth 01b9724
mysql...
antmoth 5a9a30f
require mariadb-server instead of mysql-server
antmoth 0cf827d
fix my.cnf?
antmoth 8ae795f
etc my.cnf source is a filepath
antmoth f12cd9b
don't need to do anything to my.cnf probably
antmoth c20c9b0
we do need some kind of mysql.cnf?
antmoth 560e164
only need one my.cnf maybe
antmoth 46be62b
temporarily comment out mysql again
antmoth 04a6a30
put mysql back
antmoth 7ea986a
ensure /etc/mysql/conf.d
antmoth fce4fb0
note about needing to install_db
antmoth 202c4bd
experimental mysqldb function
antmoth ba6ba0d
try function syntax
antmoth 4b8a93e
try a lambda
antmoth cd2f317
exec name problems
antmoth 8fa6233
fix my iterable data
antmoth c98cee1
tyop
antmoth f952039
add the other three mysql dbs
antmoth ff80819
add shib back?
antmoth 90619d9
fix shib pkg names
antmoth aa67458
missed one
antmoth 8f8c887
add shib thing from apache profile?
antmoth 4f55501
remove duplicate decaration
antmoth f558f59
shib?
antmoth d538058
add fedora back in
antmoth c6d1a49
fedora profile is depending on mysql::db resources... deal w/ it later
antmoth a56f45f
Add fedora back in
antmoth 22f6344
require Service mysqld instead of nonexistent Mysql resource
antmoth 4a0f1b2
s/tomcat8/tomcat9
antmoth 11bacc6
debugging tomcat
antmoth d317de2
Revert "debugging tomcat"
antmoth 3de3e09
Revert "Revert "debugging tomcat""
antmoth c37e250
qualify echo path
antmoth 78109ed
test for paradox
antmoth 0db6bd6
put tomcat create command back
antmoth ce0f6e7
fulcrum user may not have permissions to run tomcat create
antmoth 86649ff
remove redundant ensure
antmoth 5e2bbde
force symlinking of /opt/fedora/logs
antmoth 3b8cfb0
update Fedora version
antmoth c878ceb
add capacity to handle symlinks to fulcrum::mounts
antmoth fd59a97
set up mounts and symlinks for fulcrum standalone
antmoth 84c4f93
change name of symlinks config to `config`
antmoth 23dbc09
try adding print debugging to symlinks
antmoth 064bf9f
remove print debugging from symlinks
antmoth 5e1ca31
fulcrum::nginx profile mysteriously disappeared in the merge???
antmoth 6b10789
recursively chown /opt/fedora to fulcrum:fulcrum
antmoth aba2086
qualify chown
antmoth 2c53d82
change /etc/environment to use solr's JAVA_HOME
antmoth ed2e2b0
?? java alternative??
antmoth af14944
add JAVA_HOME to fedora.env
antmoth 448228b
tidy up fulcrum-demo mysql dbs and hosts
antmoth f08e8f4
specify user for fulcrum mysql dbs
antmoth 51664f4
actual code change for prev commit
antmoth c894fde
remove merge conflict marker from .gitignore
antmoth 101ceda
pull standalone fulcrum perl into its own file
antmoth e4d09f0
fix solr tests
antmoth 098e1dc
add fulcrum mysql root_password to fixture data
antmoth File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ | |
.DS_Store | ||
/modules/ | ||
Puppetfile.lock | ||
.tool-versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,6 +197,6 @@ | |
proto => 'tcp', | ||
dport => 443, | ||
state => 'NEW', | ||
jump => 'accept', | ||
action => 'accept', | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# The perl profile is needed for monitor_pl to work, but it pulls in a | ||
# ton of stuff. We should probably allow for different haproxy http checks | ||
# for a service, and eliminate the perl/monitor_pl dependency here. | ||
|
||
class nebula::profile::fulcrum::perl ( | ||
Hash $hosts = {} | ||
) { | ||
|
||
include nebula::profile::www_lib::perl | ||
|
||
create_resources('host',$hosts) | ||
|
||
include nebula::profile::www_lib::apache::base | ||
include nebula::profile::www_lib::apache::fulcrum | ||
|
||
cron { | ||
default: | ||
user => 'root', | ||
; | ||
|
||
'purge apache access logs 1/2': | ||
hour => 1, | ||
minute => 7, | ||
command => '/usr/bin/find /var/log/apache2 -type f -mtime +14 -name "*log*" -exec /bin/rm {} \; > /dev/null 2>&1', | ||
; | ||
|
||
'purge apache access logs 2/2': | ||
hour => 1, | ||
minute => 17, | ||
command => '/usr/bin/find /var/log/apache2 -type f -mtime +2 -name "*log*" ! -name "*log*gz" -exec /usr/bin/pigz {} \; > /dev/null 2>&1', | ||
require => Package['pigz'], | ||
; | ||
} | ||
|
||
ensure_packages(['pigz']) | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
'git', | ||
'emacs', | ||
'imagemagick', | ||
"openjdk-${jdk_version}-jre", | ||
"temurin-${jdk_version}-jre", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have to make this safe to merge and then "switch" www_lib to new package setup. |
||
] | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
|
||
# Packages | ||
[ | ||
'openjdk-8-jre-headless', | ||
'temurin-11-jre', | ||
'solr', | ||
'lsof', | ||
].each do |package| | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# The MariaDB configuration file | ||
# | ||
# The MariaDB/MySQL tools read configuration files in the following order: | ||
# 0. "/etc/mysql/my.cnf" symlinks to this file, reason why all the rest is read. | ||
# 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults, | ||
# 2. "/etc/mysql/conf.d/*.cnf" to set global options. | ||
# 3. "/etc/mysql/mariadb.conf.d/*.cnf" to set MariaDB-only options. | ||
# 4. "~/.my.cnf" to set user-specific options. | ||
# | ||
# If the same option is defined multiple times, the last one will apply. | ||
# | ||
# One can use all long options that the program supports. | ||
# Run program with --help to get a list of available options and with | ||
# --print-defaults to see which it would actually understand and use. | ||
# | ||
# If you are new to MariaDB, check out https://mariadb.com/kb/en/basic-mariadb-articles/ | ||
|
||
# | ||
# This group is read both by the client and the server | ||
# use it for options that affect everything | ||
# | ||
[client-server] | ||
# Port or socket location where to connect | ||
# port = 3306 | ||
socket = /run/mysqld/mysqld.sock | ||
|
||
# Import all .cnf files from configuration directory | ||
!includedir /etc/mysql/conf.d/ | ||
!includedir /etc/mysql/mariadb.conf.d/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Double check package name