text OSE 3.9 RDU SALAB库存

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text OSE 3.9 RDU SALAB库存相关的知识,希望对你有一定的参考价值。

# Create an OSEv3 group that contains the masters and nodes groups
[OSEv3:children]
masters
nodes
lb
etcd
nfs
glusterfs_registry
glusterfs

# Set variables common for all OSEv3 hosts
[OSEv3:vars]
# SSH user, this user should allow ssh based auth without requiring a password
ansible_ssh_user=root
os_firewall_use_firewalld=True
openshift_master_api_port=443
openshift_master_console_port=443

#needed because image pulls can take freaking forever...
openshift_node_kubelet_args="{'kube-reserved': ['cpu=250m,memory=500M'], 'system-reserved': ['cpu=250m,memory=500M'], 'eviction-hard': ['memory.available<100Mi'], 'minimum-container-ttl-duration': ['10s'], 'maximum-dead-containers-per-container': ['2'], 'maximum-dead-containers': ['50'], 'pods-per-core': ['10'], 'max-pods': ['250'], 'image-gc-high-threshold': ['80'], 'image-gc-low-threshold': ['60'], 'image-pull-progress-deadline': ['10m']}"
osm_api_server_args={'max-requests-inflight': ['400'], 'deserialization-cache-size': ['1000']}
osm_controller_args={'resource-quota-sync-period': ['10s']}

# If ansible_ssh_user is not root, ansible_become must be set to true
#ansible_become=true
#

openshift_deployment_type=openshift-enterprise
openshift_master_default_subdomain=paas.rdu.salab.redhat.com


openshift_master_dynamic_provisioning_enabled=True
openshift_storage_glusterfs_timeout=600
openshift_clock_enabled=true

#
# load balancer
#
openshift_master_cluster_method=native
openshift_master_cluster_hostname=openshift.rdu.salab.redhat.com
openshift_master_cluster_public_hostname=openshift.rdu.salab.redhat.com

#
# registry
#
openshift_registry_selector="region=infra"   
#openshift_hosted_registry_replicas=3       
openshift_hosted_registry_storage_kind=glusterfs 
openshift_hosted_registry_storage_volume_size=25Gi  
openshift_hosted_registry_routehost=registry.paas.rdu.salab.redhat.com
#openshift_hosted_registry_storage_kind=nfs
#openshift_hosted_registry_storage_access_modes=['ReadWriteMany']
#openshift_hosted_registry_storage_nfs_directory=/exports
#openshift_hosted_registry_storage_nfs_options='*(rw,root_squash)'
#openshift_hosted_registry_storage_volume_name=registry


# CNS storage for applications
openshift_storage_glusterfs_namespace=app-storage
openshift_storage_glusterfs_block_deploy=false    

# CNS storage for OpenShift infrastructure
openshift_storage_glusterfs_registry_namespace=infra-storage  
openshift_storage_glusterfs_registry_storageclass=false       
openshift_storage_glusterfs_registry_block_deploy=true   
openshift_storage_glusterfs_registry_block_host_vol_create=true    
openshift_storage_glusterfs_registry_block_host_vol_size=200
openshift_storage_glusterfs_registry_block_storageclass=true
openshift_storage_glusterfs_registry_block_storageclass_default=true
openshift_storageclass_default=false


#
# web console
#
openshift_web_console_nodeselector={'region': 'infra'}

#
# router
# 
openshift_router_selector="region=infra"

#
# logging
#
openshift_logging_install_logging=true
#openshift_logging_es_cluster_size=3
openshift_logging_es_nodeselector={"region":"infra"}
openshift_logging_kibana_nodeselector={"region":"infra"}
openshift_logging_curator_nodeselector={"region":"infra"}
openshift_logging_es_pvc_size=25Gi
#openshift_logging_es_memory_limit=4Gi
openshift_logging_storage_kind=dynamic

#
# metrics
#
#openshift_metrics_install_metrics=false
openshift_metrics_install_metrics=true
openshift_metrics_hawkular_hostname=hawkular.paas.rdu.salab.redhat.com
openshift_metrics_hawkular_nodeselector={"region":"infra"}
openshift_metrics_cassandra_nodeselector={"region":"infra"}
openshift_metrics_heapster_nodeselector={"region":"infra"}
#openshift_metrics_cassandra_limits_memory=2Gi
openshift_metrics_cassandra_pvc_size=25Gi
openshift_metrics_startup_timeout=600
openshift_metrics_storage_kind=dynamic

# Prometheus
openshift_prometheus_namespace=openshift-metrics
openshift_prometheus_node_selector={"region":"infra"}
openshift_prometheus_storage_kind=dynamic
openshift_prometheus_alertmanager_storage_kind=dynamic
openshift_prometheus_alertbuffer_storage_kind=dynamic

# LDAP auth
openshift_master_identity_providers=[{'name': 'salab_idm', 'challenge': 'true', 'login': 'true', 'kind': 'LDAPPasswordIdentityProvider', 'attributes': {'id': ['dn'], 'email': ['mail'], 'name': ['cn'], 'preferredUsername': ['uid']}, 'bindDN': '', 'bindPassword': '', 'ca': '', 'insecure': 'true', 'url': 'ldap://idm1.rdu.salab.redhat.com:389/cn=users,cn=accounts,dc=salab,dc=redhat,dc=com?uid'}]

# OAB
openshift_template_service_broker_namespaces=['openshift','myproject']
ansible_service_broker_local_registry_whitelist=['.*-apb$']
template_service_broker_selector={"region": "infra"}

# CF
openshift_management_install_management=true
openshift_management_install_beta=true
openshift_management_app_template=cfme-template
openshift_management_template_parameters={'POSTGRESQL_MEM_REQ': '1Gi'}

[lb] 
ose-proxy.rdu.salab.redhat.com

[nfs]
ose-proxy.rdu.salab.redhat.com

# host group for masters
[masters]
ose-master[1:3].rdu.salab.redhat.com

# host group for nodes, includes region info
# master = 
# infra = router, webconsole, registry, logging, metrics
# primary = everything else
[nodes]
ose-master[1:3].rdu.salab.redhat.com openshift_node_labels="{'region': 'master'}" openshift_schedulable=true
ose-node[1:3].rdu.salab.redhat.com openshift_node_labels="{'region': 'infra'}" openshift_schedulable=true
ose-node[4:6].rdu.salab.redhat.com openshift_node_labels="{'region': 'primary'}" openshift_schedulable=true
# removed docker options
#openshift_docker_options="--log-driver json-file --log-opt max-size=1M --log-opt max-file=3"

[etcd]
ose-master[1:3].rdu.salab.redhat.com

[glusterfs]
ose-node4.rdu.salab.redhat.com glusterfs_devices='[ "/dev/sdc" ]'
ose-node5.rdu.salab.redhat.com glusterfs_devices='[ "/dev/sdc" ]'
ose-node6.rdu.salab.redhat.com glusterfs_devices='[ "/dev/sdc" ]'

[glusterfs_registry]
ose-node1.rdu.salab.redhat.com glusterfs_devices='[ "/dev/sdb" ]'
ose-node2.rdu.salab.redhat.com glusterfs_devices='[ "/dev/sdb" ]'
ose-node3.rdu.salab.redhat.com glusterfs_devices='[ "/dev/sdc" ]'

以上是关于text OSE 3.9 RDU SALAB库存的主要内容,如果未能解决你的问题,请参考以下文章

链接 | 3.9 UNIX卷发棒 | 外形敲可爱,随意改变发型,变直变卷变漂亮~

text 库存新

text 库存问题简单方法

text Ansible基于单个整数动态生成ipam +库存名称

JW玩家3.9-Exsample

使用 Mongo(ose) 从 NumberDecimal 中提取小数