Comments (2)
Also small differences between RHEL and Fedora:
Fedora
yum install openscap openscap-utils openscap-content -y
RHEL
yum install openscap openscap-utils -y
as per http://www.open-scap.org/page/Download
from govready.
My plan is to use simple if/then/elif/else/fi statements within each function to manage different platforms.
The thinking comes from http://blog.backblaze.com/2008/12/15/10-rules-for-how-to-write-cross-platform-code/ which describes 10 rules for cross platform development, including don't port and using basic libraries. Although this approach violates the DRY (Do Not Repeat Yourself), it is also less simpler and more robust for each function to have its own checks. Some will feel this redundancy increases likelihood of error. The benefits, however, are that there will be reduced need to trace a function back to a variable; easier to hold code in the head; easier to deal with other special cases of the commands that come up; and easier to test and separate the code into multiple files later on.
example code (Probably I want to not set a variable but to execute actual command):
if which yum; then
INSTALL="yum"
elif which apt-get; then
INSTALL="apt-get"
else
INSTALL="not defined"
fi
printf "command is ${INSTALL}\n"
from govready.
Related Issues (20)
- Improve RedHat install to look for existing install of oscap, etc.
- Separate install of GovReady from Installing of OpenSCAP and SSG HOT 1
- Create RPMs install of GovReady HOT 2
- Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again HOT 3
- SSG Audit Rule tests may only be picking up 32 bit architecture tests HOT 2
- Add error check in GovReady related to nss
- curl based install failed on Rackspace server
- Add govready command to switch profiles
- govready rule command appears broken when using default SSG xccdf
- RHEL7 quick start does not work well on RHEL 7 on AWS. HOT 1
- Lynx not available on RHEL7, but Links is
- Govready rule test needs to use xccdf from GovReadyFile
- Remove hardcoding to ssg-rhel6-oval.xml for generating variables
- Need to dynamically adjust xccdf/cdf namespace in xsl files from xccdf/1.1 to xccdf/1.2 depending content used. HOT 6
- Quickie scan command line report broken in version 7.0
- GovReady Documentation and Updates
- GovReady ping is failing HOT 1
- `test` profile failing with `scap-security-guide-0.1.21-3.el6.noarch.rpm` from Amazon quickstart
- As developer scanning with a profile, I want to immediately see if a profile is not available.
- How do I get GovReady/OpenSCAP running on version X of AWS (or CentOS) Linux? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from govready.