Merge "Adding support for RHEL images"
This commit is contained in:
commit
382d656c2e
@ -51,6 +51,7 @@ the image packing feature. Plugins may require their own arguments at specific
|
|||||||
versions; use the ``--help`` feature with ``PLUGIN`` and ``VERSION`` to see
|
versions; use the ``--help`` feature with ``PLUGIN`` and ``VERSION`` to see
|
||||||
the appropriate argument structure.
|
the appropriate argument structure.
|
||||||
|
|
||||||
|
|
||||||
a plausible command-line invocation would be:
|
a plausible command-line invocation would be:
|
||||||
|
|
||||||
::
|
::
|
||||||
@ -70,6 +71,16 @@ will first describe how to modify an image packing specification for one
|
|||||||
of the plugins, and second, how to enable the image packing feature for new
|
of the plugins, and second, how to enable the image packing feature for new
|
||||||
or existing plugins.
|
or existing plugins.
|
||||||
|
|
||||||
|
Note: In case of a RHEL 7 images, it is necessary to register the image before
|
||||||
|
starting to pack it, also enable some required repos.
|
||||||
|
|
||||||
|
::
|
||||||
|
|
||||||
|
virt-customize -v -a $SAHARA_RHEL_IMAGE --sm-register \
|
||||||
|
--sm-credentials ${REG_USER}:password:${REG_PASSWORD} --sm-attach \
|
||||||
|
pool:${REG_POOL_ID} --run-command 'subscription-manager repos \
|
||||||
|
--disable=* --enable=$REPO_A \ --enable=$REPO_B \ --enable=$REPO_C'
|
||||||
|
|
||||||
Dev notes on the CLI itself
|
Dev notes on the CLI itself
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ validators:
|
|||||||
oracle-java:
|
oracle-java:
|
||||||
- script: common/oracle_java
|
- script: common/oracle_java
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- script: centos/disable_selinux
|
- script: centos/disable_selinux
|
||||||
- script: centos/disable_certificate_check
|
- script: centos/disable_certificate_check
|
||||||
- script:
|
- script:
|
||||||
@ -77,7 +77,7 @@ validators:
|
|||||||
- rng-tools
|
- rng-tools
|
||||||
- iptables-services
|
- iptables-services
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- script: centos/disable_ambari
|
- script: centos/disable_ambari
|
||||||
- script: centos/disable_firewall
|
- script: centos/disable_firewall
|
||||||
- script:
|
- script:
|
||||||
@ -91,7 +91,7 @@ validators:
|
|||||||
common/add_jar:
|
common/add_jar:
|
||||||
env_vars: [hdfs_lib_dir, swift_url]
|
env_vars: [hdfs_lib_dir, swift_url]
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package:
|
- package:
|
||||||
- krb5-server
|
- krb5-server
|
||||||
- krb5-libs
|
- krb5-libs
|
||||||
|
@ -27,7 +27,7 @@ arguments:
|
|||||||
validators:
|
validators:
|
||||||
- script: common/install_extjs
|
- script: common/install_extjs
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package: wget
|
- package: wget
|
||||||
- script:
|
- script:
|
||||||
centos/wget_repo:
|
centos/wget_repo:
|
||||||
@ -75,7 +75,7 @@ validators:
|
|||||||
- oozie
|
- oozie
|
||||||
- spark-core
|
- spark-core
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package: spark-history-server
|
- package: spark-history-server
|
||||||
- package: zookeeper
|
- package: zookeeper
|
||||||
- package: unzip
|
- package: unzip
|
||||||
@ -101,7 +101,7 @@ validators:
|
|||||||
common/install_cloudera:
|
common/install_cloudera:
|
||||||
env_vars: [plugin_version]
|
env_vars: [plugin_version]
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- script: centos/turn_off_services
|
- script: centos/turn_off_services
|
||||||
- ubuntu:
|
- ubuntu:
|
||||||
- script: ubuntu/turn_off_services
|
- script: ubuntu/turn_off_services
|
||||||
@ -112,7 +112,7 @@ validators:
|
|||||||
common/unlimited_security_artifacts:
|
common/unlimited_security_artifacts:
|
||||||
env_vars: [unlimited_security_location]
|
env_vars: [unlimited_security_location]
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package:
|
- package:
|
||||||
- krb5-server
|
- krb5-server
|
||||||
- krb5-libs
|
- krb5-libs
|
||||||
|
@ -30,7 +30,7 @@ arguments:
|
|||||||
validators:
|
validators:
|
||||||
- script: common/install_extjs
|
- script: common/install_extjs
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package: wget
|
- package: wget
|
||||||
- script: centos/wget_repo
|
- script: centos/wget_repo
|
||||||
- ubuntu:
|
- ubuntu:
|
||||||
@ -76,7 +76,7 @@ validators:
|
|||||||
- oozie
|
- oozie
|
||||||
- spark-core
|
- spark-core
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package: spark-history-server
|
- package: spark-history-server
|
||||||
- package: zookeeper
|
- package: zookeeper
|
||||||
- package: unzip
|
- package: unzip
|
||||||
@ -102,7 +102,7 @@ validators:
|
|||||||
common/install_cloudera:
|
common/install_cloudera:
|
||||||
env_vars: [plugin_version]
|
env_vars: [plugin_version]
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- script: centos/turn_off_services
|
- script: centos/turn_off_services
|
||||||
- ubuntu:
|
- ubuntu:
|
||||||
- script: ubuntu/turn_off_services
|
- script: ubuntu/turn_off_services
|
||||||
@ -113,7 +113,7 @@ validators:
|
|||||||
common/unlimited_security_artifacts:
|
common/unlimited_security_artifacts:
|
||||||
env_vars: [unlimited_security_location]
|
env_vars: [unlimited_security_location]
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package:
|
- package:
|
||||||
- krb5-server
|
- krb5-server
|
||||||
- krb5-libs
|
- krb5-libs
|
||||||
|
@ -28,7 +28,7 @@ arguments:
|
|||||||
validators:
|
validators:
|
||||||
- script: common/install_extjs
|
- script: common/install_extjs
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package: wget
|
- package: wget
|
||||||
- script:
|
- script:
|
||||||
centos/wget_repo:
|
centos/wget_repo:
|
||||||
@ -76,7 +76,7 @@ validators:
|
|||||||
- oozie
|
- oozie
|
||||||
- spark-core
|
- spark-core
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package: spark-history-server
|
- package: spark-history-server
|
||||||
- package: zookeeper
|
- package: zookeeper
|
||||||
- package: unzip
|
- package: unzip
|
||||||
@ -102,7 +102,7 @@ validators:
|
|||||||
common/install_cloudera:
|
common/install_cloudera:
|
||||||
env_vars: [plugin_version]
|
env_vars: [plugin_version]
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- script: centos/turn_off_services
|
- script: centos/turn_off_services
|
||||||
- ubuntu:
|
- ubuntu:
|
||||||
- script: ubuntu/turn_off_services
|
- script: ubuntu/turn_off_services
|
||||||
@ -113,7 +113,7 @@ validators:
|
|||||||
common/unlimited_security_artifacts:
|
common/unlimited_security_artifacts:
|
||||||
env_vars: [unlimited_security_location]
|
env_vars: [unlimited_security_location]
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package:
|
- package:
|
||||||
- krb5-server
|
- krb5-server
|
||||||
- krb5-libs
|
- krb5-libs
|
||||||
|
@ -186,6 +186,7 @@ class SaharaImageValidatorBase(ImageValidator):
|
|||||||
'centos7': 'redhat',
|
'centos7': 'redhat',
|
||||||
'fedora': 'redhat',
|
'fedora': 'redhat',
|
||||||
'redhat': 'redhat',
|
'redhat': 'redhat',
|
||||||
|
'rhel': 'redhat',
|
||||||
'redhatenterpriseserver': 'redhat',
|
'redhatenterpriseserver': 'redhat',
|
||||||
'ubuntu': 'debian'
|
'ubuntu': 'debian'
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ validators:
|
|||||||
- wget
|
- wget
|
||||||
- zip
|
- zip
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- package:
|
- package:
|
||||||
- cups
|
- cups
|
||||||
- cdparanoia-libs
|
- cdparanoia-libs
|
||||||
@ -145,7 +145,7 @@ validators:
|
|||||||
- zlib1g-dev
|
- zlib1g-dev
|
||||||
- script: common/configure_extjs
|
- script: common/configure_extjs
|
||||||
- os_case:
|
- os_case:
|
||||||
- centos:
|
- redhat:
|
||||||
- copy_script: common/resources/package_utils.sh
|
- copy_script: common/resources/package_utils.sh
|
||||||
- copy_script: common/resources/packages.json
|
- copy_script: common/resources/packages.json
|
||||||
- copy_script: common/resources/spec_5.1.0.json
|
- copy_script: common/resources/spec_5.1.0.json
|
||||||
|
Loading…
Reference in New Issue
Block a user