Giter VIP home page Giter VIP logo

rmonel7's People

Contributors

ferricoxide avatar lorengordon avatar moskey71 avatar

Watchers

 avatar  avatar  avatar

rmonel7's Issues

Add support for Injecting an "instrumentation" Security Group

Expected behavior

When operating in a dashboarded environment, need the ability for CMDB tools (and the like) to connect to the EC2 elements.

Actual behavior

EC2 elements exist inside a sealed silo

Steps to reproduce behavior

Context/Specifications

Suggestions for fix

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)

Relevant references

Fix "Initial Deployment" Use-case

Expected behavior

Upon execution of a full stack-sequence, RedMine should come up in a "ready to configure" state.

Actual behavior

RedMine comes up with a null database causing an error page to be displayed.

image

Steps to reproduce behavior

Do a full, "fresh" launch

Context/Specifications

Suggestions for fix

Add logic to detect a blank database; populate as necessary from the installation stub-database.

Fix rake cron-job for repository-fetching

Expected behavior

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.

Actual behavior

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

Steps to reproduce behavior

Re-launch for existing templates : any new launch will experience the failures.

Context/Specifications

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

Suggestions for fix

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.

Relevant references

  • links to "best practices" or other guide(s)
  • ...
  • ...

Add Log-Export Support Via amazon-cloudwatch-agent

References

Proposed Content

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.