Insights Remediations is a generator of Ansible playbooks that remediate issues discovered by Red Hat Insights.
Insights Remediations supports the following types of remediations:
-
Rule-based
This remediation type is used by Insights. Templates from insights-playbooks repository are used. See project wiki for more details.
-
CVE-based
This remediation type is used by the Vulnerability application. A single generic template, which remediates the given set of CVEs by upgrading relevant packages, is used.
-
Erratum-based
This remediation type is used by the System Patch Manager application. A single generic template, which remediates the given set of erratum by upgrading relevant packages, is used.
-
SCAP Security Guide (SSG)
This remediation type is used by the Compliance application. Templates from SCAP Security Guide are used.
- node.js 16
docker-compose -f build/docker-compose.yml up
- open http://localhost:9002
docker-compose -f build/docker-compose.yml up db
docker-compose -f build/docker-compose.yml up redis
npm ci
npm run db:ims
npm start
- open http://localhost:9002
To use the demo database seeder, prepend DEMO_MODE=true
to each of the above commands.
Database container has to be running as a prerequisite for tests:
docker-compose -f build/docker-compose.yml up db
To run the linter, unit and integration tests run:
npm run verify
To run a single test run:
npm test <path-to-test-file>
Application configuration can be changed using environmental variables.
If your local database isn't updating, or it's not running as expected, run this command to remove old containers:
docker-compose -f build/docker-compose.yml rm -vf
Then, rebuild the image:
docker-compose -f build/docker-compose.yml build
Upon any change in the master branch the branch is tested, an image is built and deployed in CI and QA environments automatically. This process is controlled by the deployment Jenkinsfile.
The image can then be promoted to production using a Jenkins job. Use the git commit SHA as the REVISION when running the job.
For questions or comments join #platform-data-pipeline-standup at ansible.slack.com.