plus3it / rmonel7 Goto Github PK
View Code? Open in Web Editor NEWCFn-based automation to deploy EL7-hosted RedMine onto AWS
License: Apache License 2.0
CFn-based automation to deploy EL7-hosted RedMine onto AWS
License: Apache License 2.0
Trusted Advisor gets pissy about the current rule sets being too generous:
When operating in a dashboarded environment, need the ability for CMDB tools (and the like) to connect to the EC2 elements.
EC2 elements exist inside a sealed silo
Add a stanza similar to:
"Fn::If": [
"AssignExtraSecurityGroup",
{ "Ref": "ExtraSecurityGroupId"},
{ "Ref": "AWS::NoValue" }
]
To the EC2's NetworkInterfaces
» GroupSet
section (and relevant supporting Conditions
and Parameters
)
Upon execution of a full stack-sequence, RedMine should come up in a "ready to configure" state.
RedMine comes up with a null database causing an error page to be displayed.
Do a full, "fresh" launch
Add logic to detect a blank database; populate as necessary from the installation stub-database.
The apache rake-job should successfully execute and update the cron_rake.log
file with:
Fetching origin
From github.com:plus3it/dotc-<PROJECT_NAME>_dc
035292b..7840e6e master -> master
* [new ref] refs/pull/20/head -> refs/pull/20/head
* [new ref] refs/pull/21/head -> refs/pull/21/head
Calling fetch changesets on /PATH/TO/CACHE/Repositories/GitHub/Plus3It/dotc-<PROJECT_NAME>
Fetching repo /PATH/TO/CACHE/Repositories/GitHub/Plus3It/dotc-<PROJECT_NAME>
0033113feddb6644ff90689ab36475f8203b42ad refs/heads/master
Fetching origin
Calling fetch changesets on /PATH/TO/CACHE/Repositories/GitHub/Plus3It/dotc-<PROJECT_NAME>
Fetching repo /PATH/TO/CACHE/Repositories/GitHub/Plus3It/dotc-<PROJECT_NAME>
7b7010f62125a7d6025e1bfac98b041a2212becb refs/heads/master
Fetching origin
From github.com:plus3it/dotc-<PROJECT_NAME>
f5bf8f0..7b7010f master -> master
* [new ref] refs/pull/17/head -> refs/pull/17/head
Calling fetch changesets on /PATH/TO/CACHE/Repositories/GitHub/Plus3It/dotc-<PROJECT_NAME>
Fetching repo /PATH/TO/CACHE/Repositories/GitHub/Plus3It/dotc-<PROJECT_NAME>
0777b665389739556c75994343b7ff8b0867e94a refs/heads/master
Messages. When functioning properly, RedMine's git repository copies are updated and developers' git activity is displayed in the Redmine activity log.
Currently, the the apache rake-job is failing to execute. The cron_rake.log
file is filled with:
/usr/bin/env: ruby: No such file or directory
/usr/bin/env: ruby: No such file or directory
/usr/bin/env: ruby: No such file or directory
/usr/bin/env: ruby: No such file or directory
/usr/bin/env: ruby: No such file or directory
/usr/bin/env: ruby: No such file or directory
/usr/bin/env: ruby: No such file or directory
/usr/bin/env: ruby: No such file or directory
Messages. Without it, git repository copies aren't updated and developers' git activity is not displayed in the Redmine activity log
Re-launch for existing templates : any new launch will experience the failures.
Cron jobs are configured via the make_RedMine_EC2-autoscale.tmplt.json
and
make_RedMine_EC2-standalone.tmplt.json
templates. Update cron-setup method here
Change the apache cron job from a legacy-cron job running from /var/spool/cron/apache
to a "new" cron job running from /etc/cron.d
. This will allow setting of appropriate environmental variables so that the rake
job can find its ruby
. Something like
PATH=/opt/rh/rh-ruby24/root/usr/local/bin:/opt/rh/rh-ruby24/root/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin
LD_LIBRARY_PATH=/opt/rh/rh-ruby24/root/usr/local/lib64:/opt/rh/rh-ruby24/root/usr/lib64
*/30 * * * * apache cd /PATH/TO/REDMINE/ROOT && ./bin/rails runner Repository.fetch_changesets -e production >> log/cron_rake.log 2>&1
Should work.
See the the Complete Examples section of the "Manually Create or Edit the CloudWatch Agent Configuration File" reference. Add the following to the Linux example:
"logs": {
"log_stream_name": "Redmine_Logs",
"logs_collected": {
"files": {
"collect_list": [
{
"file_path": "/var/log/messages",
"log_group_name": "/var/log/messages",
"log_stream_name": "RedMine",
"timezone": "UTC"
},
{
"file_path": "/var/log/secure",
"log_group_name": "/var/log/secure",
"log_stream_name": "RedMine",
"timezone": "UTC"
},
{
"file_path": "/var/log/maillog",
"log_group_name": "/var/log/maillog",
"log_stream_name": "RedMine",
"timezone": "UTC"
},
{
"file_path": "/var/log/cron",
"log_group_name": "/var/log/cron",
"log_stream_name": "RedMine",
"timezone": "UTC"
},
{
"file_path": "/var/log/audit/audit.log",
"log_group_name": "/var/log/audit/audit.log",
"log_stream_name": "RedMine",
"timezone": "UTC"
},
{
"file_path": "/var/www/redmine/log/production.log",
"log_group_name": "/var/www/redmine/log/production.log",
"log_stream_name": "RedMine",
"timezone": "UTC"
},
{
"file_path": "/var/www/redmine/log/cron_rake.log",
"log_group_name": "/var/www/redmine/log/cron_rake.log",
"log_stream_name": "RedMine",
"timezone": "UTC"
}
]
}
}
}
and add:
{
"name": "used_percent",
"rename": "PERCENT_USED"
},
To the disks
section.
Trim the rest of the example metrics as necessary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.