diff options
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/calico/README.md | 1 | ||||
| -rw-r--r-- | roles/calico/defaults/main.yaml | 1 | ||||
| -rw-r--r-- | roles/calico/meta/main.yml | 1 | ||||
| -rw-r--r-- | roles/calico/templates/calico.service.j2 | 3 | ||||
| -rw-r--r-- | roles/calico_master/README.md | 1 | ||||
| -rw-r--r-- | roles/openshift_logging_elasticsearch/tasks/main.yaml | 7 | ||||
| -rw-r--r-- | roles/openshift_logging_elasticsearch/templates/elasticsearch-logging.yml.j2 | 25 | ||||
| -rw-r--r-- | roles/openshift_logging_elasticsearch/vars/main.yml | 2 | 
8 files changed, 34 insertions, 7 deletions
diff --git a/roles/calico/README.md b/roles/calico/README.md index 65f66ebfa..10e5e4e0a 100644 --- a/roles/calico/README.md +++ b/roles/calico/README.md @@ -32,7 +32,6 @@ Additional parameters that can be defined in the inventory are:  | Environment | Description | Schema | Default |     |---------|----------------------|---------|---------| -|CALICO_IPV4POOL_CIDR|	The IPv4 Pool to create if none exists at start up. It is invalid to define this variable and NO_DEFAULT_POOLS.	|IPv4 CIDR	| 192.168.0.0/16 |  | CALICO_IPV4POOL_IPIP | IPIP Mode to use for the IPv4 POOL created at start up.	| off, always, cross-subnet	| always |  | CALICO_LOG_DIR | Directory on the host machine where Calico Logs are written.| String	| /var/log/calico | diff --git a/roles/calico/defaults/main.yaml b/roles/calico/defaults/main.yaml index e7a9db92f..03c96be36 100644 --- a/roles/calico/defaults/main.yaml +++ b/roles/calico/defaults/main.yaml @@ -9,7 +9,6 @@ calico_url_cni: "https://github.com/projectcalico/cni-plugin/releases/download/v  calico_url_ipam: "https://github.com/projectcalico/cni-plugin/releases/download/v1.10.0/calico-ipam"  calico_ipv4pool_ipip: "always" -calico_ipv4pool_cidr: "192.168.0.0/16"  calico_log_dir: "/var/log/calico"  calico_node_image: "calico/node:v2.4.1" diff --git a/roles/calico/meta/main.yml b/roles/calico/meta/main.yml index 102b82bde..816c81369 100644 --- a/roles/calico/meta/main.yml +++ b/roles/calico/meta/main.yml @@ -14,3 +14,4 @@ galaxy_info:    - system  dependencies:  - role: openshift_facts +- role: openshift_master_facts diff --git a/roles/calico/templates/calico.service.j2 b/roles/calico/templates/calico.service.j2 index 302c5f34e..7653e19b1 100644 --- a/roles/calico/templates/calico.service.j2 +++ b/roles/calico/templates/calico.service.j2 @@ -11,13 +11,14 @@ ExecStart=/usr/bin/docker run --net=host --privileged \   -e WAIT_FOR_DATASTORE=true \   -e FELIX_DEFAULTENDPOINTTOHOSTACTION=ACCEPT \   -e CALICO_IPV4POOL_IPIP={{ calico_ipv4pool_ipip }} \ - -e CALICO_IPV4POOL_CIDR={{ calico_ipv4pool_cidr }} \ + -e CALICO_IPV4POOL_CIDR={{ openshift.master.sdn_cluster_network_cidr }} \   -e FELIX_IPV6SUPPORT=false \   -e ETCD_ENDPOINTS={{ calico_etcd_endpoints }} \   -v {{ calico_etcd_cert_dir }}:{{ calico_etcd_cert_dir }}  \   -e ETCD_CA_CERT_FILE={{ calico_etcd_ca_cert_file }} \   -e ETCD_CERT_FILE={{ calico_etcd_cert_file }} \   -e ETCD_KEY_FILE={{ calico_etcd_key_file }} \ + -e CLUSTER_TYPE=origin,bgp \   -e NODENAME={{ openshift.common.hostname }} \   -v {{ calico_log_dir }}:/var/log/calico\   -v /lib/modules:/lib/modules \ diff --git a/roles/calico_master/README.md b/roles/calico_master/README.md index 6f5ed0664..88fd44086 100644 --- a/roles/calico_master/README.md +++ b/roles/calico_master/README.md @@ -29,7 +29,6 @@ Additional parameters that can be defined in the inventory are:  | Environment | Description | Schema | Default |     |---------|----------------------|---------|---------| -|CALICO_IPV4POOL_CIDR|	The IPv4 Pool to create if none exists at start up. It is invalid to define this variable and NO_DEFAULT_POOLS.	|IPv4 CIDR	| 192.168.0.0/16 |  | CALICO_IPV4POOL_IPIP | IPIP Mode to use for the IPv4 POOL created at start up.	| off, always, cross-subnet	| always |  | CALICO_LOG_DIR | Directory on the host machine where Calico Logs are written.| String	| /var/log/calico | diff --git a/roles/openshift_logging_elasticsearch/tasks/main.yaml b/roles/openshift_logging_elasticsearch/tasks/main.yaml index 5593fac3a..28c3ffd96 100644 --- a/roles/openshift_logging_elasticsearch/tasks/main.yaml +++ b/roles/openshift_logging_elasticsearch/tasks/main.yaml @@ -107,9 +107,16 @@      - openshift_logging_elasticsearch_kibana_index_mode in __kibana_index_modes      msg: "The openshift_logging_elasticsearch_kibana_index_mode '{{ openshift_logging_elasticsearch_kibana_index_mode  }}' only supports one of: {{ __kibana_index_modes | join(', ') }}" +- assert: +    that: +    - "{{ openshift_logging_es_log_appenders | length > 0 }}" +    msg: "The openshift_logging_es_log_appenders '{{ openshift_logging_es_log_appenders }}' has an unrecognized option and only supports the following as a list: {{ __es_log_appenders | join(', ') }}" +  - template:      src: elasticsearch-logging.yml.j2      dest: "{{ tempdir }}/elasticsearch-logging.yml" +  vars: +    root_logger: "{{openshift_logging_es_log_appenders | join(', ')}}"    when: es_logging_contents is undefined    changed_when: no diff --git a/roles/openshift_logging_elasticsearch/templates/elasticsearch-logging.yml.j2 b/roles/openshift_logging_elasticsearch/templates/elasticsearch-logging.yml.j2 index 38948ba2f..c7b2b2721 100644 --- a/roles/openshift_logging_elasticsearch/templates/elasticsearch-logging.yml.j2 +++ b/roles/openshift_logging_elasticsearch/templates/elasticsearch-logging.yml.j2 @@ -1,14 +1,26 @@  # you can override this using by setting a system property, for example -Des.logger.level=DEBUG  es.logger.level: INFO -rootLogger: ${es.logger.level}, console, file +rootLogger: ${es.logger.level}, {{root_logger}}  logger:    # log action execution errors for easier debugging    action: WARN + +  # +  # deprecation logging, turn to DEBUG to see them +  deprecation: WARN, deprecation_log_file +    # reduce the logging for aws, too much is logged under the default INFO    com.amazonaws: WARN +    io.fabric8.elasticsearch: ${PLUGIN_LOGLEVEL}    io.fabric8.kubernetes: ${PLUGIN_LOGLEVEL} +  # aws will try to do some sketchy JMX stuff, but its not needed. +  com.amazonaws.jmx.SdkMBeanRegistrySupport: ERROR +  com.amazonaws.metrics.AwsSdkMetrics: ERROR + +  org.apache.http: INFO +    # gateway    #gateway: DEBUG    #index.gateway: DEBUG @@ -28,13 +40,14 @@ logger:  additivity:    index.search.slowlog: false    index.indexing.slowlog: false +  deprecation: false  appender:    console:      type: console      layout:        type: consolePattern -      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" +      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %.1000m%n"      # need this filter until https://github.com/openshift/origin/issues/14515 is fixed      filter:        1: @@ -67,6 +80,14 @@ appender:        #type: pattern        #conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" +  deprecation_log_file: +    type: dailyRollingFile +    file: ${path.logs}/${cluster.name}_deprecation.log +    datePattern: "'.'yyyy-MM-dd" +    layout: +      type: pattern +      conversionPattern: "[%d{ISO8601}][%-5p][%-25c] %m%n" +    index_search_slow_log_file:      type: dailyRollingFile      file: ${path.logs}/${cluster.name}_index_search_slowlog.log diff --git a/roles/openshift_logging_elasticsearch/vars/main.yml b/roles/openshift_logging_elasticsearch/vars/main.yml index 5b4b226e8..20fa63543 100644 --- a/roles/openshift_logging_elasticsearch/vars/main.yml +++ b/roles/openshift_logging_elasticsearch/vars/main.yml @@ -2,7 +2,7 @@  __latest_es_version: "3_5"  __allowed_es_versions: ["3_5", "3_6"]  __allowed_es_types: ["data-master", "data-client", "master", "client"] - +__es_log_appenders: ['file', 'console']  __kibana_index_modes: ["unique", "shared_ops"]  # TODO: integrate these  | 
