Browse Source

Merge pull request #9504 from bparees/repos

pull in origin imagestream+template updates
Scott Dodson 6 years ago
parent
commit
6f8642510c
100 changed files with 0 additions and 31178 deletions
  1. 0 1
      roles/openshift_examples/files/examples/latest
  2. 0 28
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-backup-job.yaml
  3. 0 10
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-backup-pvc.yaml
  4. 0 13
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-pv-backup-example.yaml
  5. 0 38
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-pv-db-example.yaml
  6. 0 38
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-pv-server-example.yaml
  7. 0 35
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml
  8. 0 38
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-scc-sysadmin.yaml
  9. 0 974
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-template-ext-db.yaml
  10. 0 1145
      roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-template.yaml
  11. 0 113
      roles/openshift_examples/files/examples/v3.10/cfme-templates/httpd-configmap-generator-template.yaml
  12. 0 38
      roles/openshift_examples/files/examples/v3.10/cfme-templates/httpd-scc-sysadmin.yaml
  13. 0 58
      roles/openshift_examples/files/examples/v3.10/cfme-templates/jboss-middleware-manager-pv-example.yaml
  14. 0 254
      roles/openshift_examples/files/examples/v3.10/cfme-templates/jboss-middleware-manager-template.yaml
  15. 0 12
      roles/openshift_examples/files/examples/v3.10/db-templates/OWNERS
  16. 0 84
      roles/openshift_examples/files/examples/v3.10/db-templates/README.md
  17. 0 258
      roles/openshift_examples/files/examples/v3.10/db-templates/mariadb-ephemeral-template.json
  18. 0 282
      roles/openshift_examples/files/examples/v3.10/db-templates/mariadb-persistent-template.json
  19. 0 277
      roles/openshift_examples/files/examples/v3.10/db-templates/mongodb-ephemeral-template.json
  20. 0 301
      roles/openshift_examples/files/examples/v3.10/db-templates/mongodb-persistent-template.json
  21. 0 277
      roles/openshift_examples/files/examples/v3.10/db-templates/mysql-ephemeral-template.json
  22. 0 282
      roles/openshift_examples/files/examples/v3.10/db-templates/mysql-persistent-template.json
  23. 0 258
      roles/openshift_examples/files/examples/v3.10/db-templates/postgresql-ephemeral-template.json
  24. 0 282
      roles/openshift_examples/files/examples/v3.10/db-templates/postgresql-persistent-template.json
  25. 0 221
      roles/openshift_examples/files/examples/v3.10/db-templates/redis-ephemeral-template.json
  26. 0 245
      roles/openshift_examples/files/examples/v3.10/db-templates/redis-persistent-template.json
  27. 0 14
      roles/openshift_examples/files/examples/v3.10/image-streams/OWNERS
  28. 0 54
      roles/openshift_examples/files/examples/v3.10/image-streams/README.md
  29. 0 140
      roles/openshift_examples/files/examples/v3.10/image-streams/dotnet_imagestreams.json
  30. 0 104
      roles/openshift_examples/files/examples/v3.10/image-streams/dotnet_imagestreams_centos.json
  31. 0 1392
      roles/openshift_examples/files/examples/v3.10/image-streams/image-streams-centos7.json
  32. 0 1190
      roles/openshift_examples/files/examples/v3.10/image-streams/image-streams-rhel7.json
  33. 0 12
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/OWNERS
  34. 0 38
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/README.md
  35. 0 1261
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/amp.yml
  36. 0 0
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/apicast-gateway-template.yml
  37. 0 157
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/apicast.yml
  38. 0 594
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/cakephp-mysql-persistent.json
  39. 0 568
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/cakephp-mysql.json
  40. 0 536
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/dancer-mysql-persistent.json
  41. 0 510
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/dancer-mysql.json
  42. 0 546
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/django-postgresql-persistent.json
  43. 0 520
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/django-postgresql.json
  44. 0 343
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet-example.json
  45. 0 575
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet-pgsql-persistent.json
  46. 0 422
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet-runtime-example.json
  47. 0 343
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet.json
  48. 0 269
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/httpd.json
  49. 0 297
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/jenkins-ephemeral-template.json
  50. 0 321
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/jenkins-persistent-template.json
  51. 0 277
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/nginx.json
  52. 0 549
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/nodejs-mongodb-persistent.json
  53. 0 526
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/nodejs-mongodb.json
  54. 0 49
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/pvc.yml
  55. 0 612
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/rails-postgresql-persistent.json
  56. 0 586
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/rails-postgresql.json
  57. 0 158
      roles/openshift_examples/files/examples/v3.10/quickstart-templates/wildcard.yml
  58. 0 137
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/amq62-image-stream.json
  59. 0 92
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/amq63-image-stream.json
  60. 0 154
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/datagrid65-image-stream.json
  61. 0 125
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/datagrid71-image-stream.json
  62. 0 43
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/datagrid72-image-stream.json
  63. 0 154
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/datavirt63-image-stream.json
  64. 0 49
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver62-image-stream.json
  65. 0 68
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver63-image-stream.json
  66. 0 104
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver64-image-stream.json
  67. 0 124
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap-cd-image-stream.json
  68. 0 194
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap64-image-stream.json
  69. 0 122
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap70-image-stream.json
  70. 0 104
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap71-image-stream.json
  71. 0 90
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/fis-image-streams.json
  72. 0 83
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws30-tomcat7-image-stream.json
  73. 0 83
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws30-tomcat8-image-stream.json
  74. 0 83
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws31-tomcat7-image-stream.json
  75. 0 83
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws31-tomcat8-image-stream.json
  76. 0 170
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/openjdk18-image-stream.json
  77. 0 68
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/processserver63-image-stream.json
  78. 0 104
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/processserver64-image-stream.json
  79. 0 66
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/rhdm70-image-streams.yaml
  80. 0 123
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/rhpam70-image-streams.yaml
  81. 0 63
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/sso70-image-stream.json
  82. 0 93
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/sso71-image-stream.json
  83. 0 78
      roles/openshift_examples/files/examples/v3.10/xpaas-streams/sso72-image-stream.json
  84. 0 372
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-basic.json
  85. 0 718
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-persistent-ssl.json
  86. 0 532
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-persistent.json
  87. 0 558
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-ssl.json
  88. 0 372
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-basic.json
  89. 0 717
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-persistent-ssl.json
  90. 0 535
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-persistent.json
  91. 0 561
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-ssl.json
  92. 0 411
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-basic.json
  93. 0 592
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-https.json
  94. 0 912
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-mysql-persistent.json
  95. 0 882
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-mysql.json
  96. 0 884
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-postgresql-persistent.json
  97. 0 853
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-postgresql.json
  98. 0 458
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid71-basic.json
  99. 0 639
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid71-https.json
  100. 0 0
      roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid71-mysql-persistent.json

+ 0 - 1
roles/openshift_examples/files/examples/latest

@@ -1 +0,0 @@
-v3.10

+ 0 - 28
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-backup-job.yaml

@@ -1,28 +0,0 @@
-apiVersion: batch/v1
-kind: Job
-metadata:
-  name: cloudforms-backup
-spec:
-  template:
-    metadata:
-      name: cloudforms-backup
-    spec:
-      containers:
-      - name: postgresql
-        image: registry.access.redhat.com/cloudforms46/cfme-openshift-postgresql:latest
-        command:
-        - "/opt/rh/cfme-container-scripts/backup_db"
-        env:
-        - name: DATABASE_URL
-          valueFrom:
-            secretKeyRef:
-              name: cloudforms-secrets
-              key: database-url
-        volumeMounts:
-        - name: cfme-backup-vol
-          mountPath: "/backups"
-      volumes:
-      - name: cfme-backup-vol
-        persistentVolumeClaim:
-          claimName: cloudforms-backup
-      restartPolicy: Never

+ 0 - 10
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-backup-pvc.yaml

@@ -1,10 +0,0 @@
-apiVersion: v1
-kind: PersistentVolumeClaim
-metadata:
-  name: cloudforms-backup
-spec:
-  accessModes:
-  - ReadWriteOnce
-  resources:
-    requests:
-      storage: 15Gi

+ 0 - 13
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-pv-backup-example.yaml

@@ -1,13 +0,0 @@
-apiVersion: v1
-kind: PersistentVolume
-metadata:
-  name: cfme-pv03
-spec:
-  capacity:
-    storage: 15Gi
-  accessModes:
-  - ReadWriteOnce
-  nfs:
-    path: "/exports/cfme-pv03"
-    server: "<your-nfs-host-here>"
-  persistentVolumeReclaimPolicy: Retain

+ 0 - 38
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-pv-db-example.yaml

@@ -1,38 +0,0 @@
-apiVersion: v1
-kind: Template
-labels:
-  template: cloudforms-db-pv
-metadata:
-  name: cloudforms-db-pv
-  annotations:
-    description: PV Template for CFME PostgreSQL DB
-    tags: PVS, CFME
-objects:
-- apiVersion: v1
-  kind: PersistentVolume
-  metadata:
-    name: cfme-db
-  spec:
-    capacity:
-      storage: "${PV_SIZE}"
-    accessModes:
-    - ReadWriteOnce
-    nfs:
-      path: "${BASE_PATH}/cfme-db"
-      server: "${NFS_HOST}"
-    persistentVolumeReclaimPolicy: Retain
-parameters:
-- name: PV_SIZE
-  displayName: PV Size for DB
-  required: true
-  description: The size of the CFME DB PV given in Gi
-  value: 15Gi
-- name: BASE_PATH
-  displayName: Exports Directory Base Path
-  required: true
-  description: The parent directory of your NFS exports
-  value: "/exports"
-- name: NFS_HOST
-  displayName: NFS Server Hostname
-  required: true
-  description: The hostname or IP address of the NFS server

+ 0 - 38
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-pv-server-example.yaml

@@ -1,38 +0,0 @@
-apiVersion: v1
-kind: Template
-labels:
-  template: cloudforms-app-pv
-metadata:
-  name: cloudforms-app-pv
-  annotations:
-    description: PV Template for CFME Server
-    tags: PVS, CFME
-objects:
-- apiVersion: v1
-  kind: PersistentVolume
-  metadata:
-    name: cfme-app
-  spec:
-    capacity:
-      storage: "${PV_SIZE}"
-    accessModes:
-    - ReadWriteOnce
-    nfs:
-      path: "${BASE_PATH}/cfme-app"
-      server: "${NFS_HOST}"
-    persistentVolumeReclaimPolicy: Retain
-parameters:
-- name: PV_SIZE
-  displayName: PV Size for App
-  required: true
-  description: The size of the CFME APP PV given in Gi
-  value: 5Gi
-- name: BASE_PATH
-  displayName: Exports Directory Base Path
-  required: true
-  description: The parent directory of your NFS exports
-  value: "/exports"
-- name: NFS_HOST
-  displayName: NFS Server Hostname
-  required: true
-  description: The hostname or IP address of the NFS server

+ 0 - 35
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-restore-job.yaml

@@ -1,35 +0,0 @@
-apiVersion: batch/v1
-kind: Job
-metadata:
-  name: cloudforms-restore
-spec:
-  template:
-    metadata:
-      name: cloudforms-restore
-    spec:
-      containers:
-      - name: postgresql
-        image: registry.access.redhat.com/cloudforms46/cfme-openshift-postgresql:latest
-        command:
-        - "/opt/rh/cfme-container-scripts/restore_db"
-        env:
-        - name: DATABASE_URL
-          valueFrom:
-            secretKeyRef:
-              name: cloudforms-secrets
-              key: database-url
-        - name: BACKUP_VERSION
-          value: latest
-        volumeMounts:
-        - name: cfme-backup-vol
-          mountPath: "/backups"
-        - name: cfme-prod-vol
-          mountPath: "/restore"
-      volumes:
-      - name: cfme-backup-vol
-        persistentVolumeClaim:
-          claimName: cloudforms-backup
-      - name: cfme-prod-vol
-        persistentVolumeClaim:
-          claimName: cloudforms-postgresql
-      restartPolicy: Never

+ 0 - 38
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-scc-sysadmin.yaml

@@ -1,38 +0,0 @@
-allowHostDirVolumePlugin: false
-allowHostIPC: false
-allowHostNetwork: false
-allowHostPID: false
-allowHostPorts: false
-allowPrivilegedContainer: false
-allowedCapabilities:
-apiVersion: v1
-defaultAddCapabilities:
-- SYS_ADMIN
-fsGroup:
-  type: RunAsAny
-groups:
-- system:cluster-admins
-kind: SecurityContextConstraints
-metadata:
-  annotations:
-    kubernetes.io/description: cfme-sysadmin provides all features of the anyuid SCC but allows users to have SYS_ADMIN capabilities. This is the required scc for Pods requiring to run with systemd and the message bus.
-  creationTimestamp:
-  name: cfme-sysadmin
-priority: 10
-readOnlyRootFilesystem: false
-requiredDropCapabilities:
-- MKNOD
-- SYS_CHROOT
-runAsUser:
-  type: RunAsAny
-seLinuxContext:
-  type: MustRunAs
-supplementalGroups:
-  type: RunAsAny
-users:
-volumes:
-- configMap
-- downwardAPI
-- emptyDir
-- persistentVolumeClaim
-- secret

+ 0 - 974
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-template-ext-db.yaml

@@ -1,974 +0,0 @@
-apiVersion: v1
-kind: Template
-labels:
-  template: cloudforms-ext-db
-metadata:
-  name: cloudforms-ext-db
-  annotations:
-    description: CloudForms appliance with persistent storage using a external DB host
-    tags: instant-app,cloudforms,cfme
-    iconClass: icon-rails
-objects:
-- apiVersion: v1
-  kind: ServiceAccount
-  metadata:
-    name: cfme-orchestrator
-- apiVersion: v1
-  kind: ServiceAccount
-  metadata:
-    name: cfme-anyuid
-- apiVersion: v1
-  kind: ServiceAccount
-  metadata:
-    name: cfme-privileged
-- apiVersion: v1
-  kind: ServiceAccount
-  metadata:
-    name: cfme-httpd
-- apiVersion: v1
-  kind: RoleBinding
-  metadata:
-    name: view
-  roleRef:
-    name: view
-  subjects:
-  - kind: ServiceAccount
-    name: cfme-orchestrator
-- apiVersion: v1
-  kind: RoleBinding
-  metadata:
-    name: edit
-  roleRef:
-    name: edit
-  subjects:
-  - kind: ServiceAccount
-    name: cfme-orchestrator
-- apiVersion: v1
-  kind: Secret
-  metadata:
-    name: "${NAME}-secrets"
-  stringData:
-    pg-password: "${DATABASE_PASSWORD}"
-    admin-password: "${APPLICATION_ADMIN_PASSWORD}"
-    database-url: postgresql://${DATABASE_USER}:${DATABASE_PASSWORD}@${DATABASE_SERVICE_NAME}/${DATABASE_NAME}?encoding=utf8&pool=5&wait_timeout=5
-    v2-key: "${V2_KEY}"
-- apiVersion: v1
-  kind: Secret
-  metadata:
-    name: "${ANSIBLE_SERVICE_NAME}-secrets"
-  stringData:
-    rabbit-password: "${ANSIBLE_RABBITMQ_PASSWORD}"
-    secret-key: "${ANSIBLE_SECRET_KEY}"
-    admin-password: "${ANSIBLE_ADMIN_PASSWORD}"
-- apiVersion: v1
-  kind: Service
-  metadata:
-    annotations:
-      description: Exposes and load balances CloudForms pods
-      service.alpha.openshift.io/dependencies: '[{"name":"${DATABASE_SERVICE_NAME}","namespace":"","kind":"Service"},{"name":"${MEMCACHED_SERVICE_NAME}","namespace":"","kind":"Service"}]'
-    name: "${NAME}"
-  spec:
-    clusterIP: None
-    ports:
-    - name: http
-      port: 80
-      protocol: TCP
-      targetPort: 80
-    selector:
-      name: "${NAME}"
-- apiVersion: v1
-  kind: Route
-  metadata:
-    name: "${HTTPD_SERVICE_NAME}"
-  spec:
-    host: "${APPLICATION_DOMAIN}"
-    port:
-      targetPort: http
-    tls:
-      termination: edge
-      insecureEdgeTerminationPolicy: Redirect
-    to:
-      kind: Service
-      name: "${HTTPD_SERVICE_NAME}"
-- apiVersion: apps/v1beta1
-  kind: StatefulSet
-  metadata:
-    name: "${NAME}"
-    annotations:
-      description: Defines how to deploy the CloudForms appliance
-  spec:
-    serviceName: "${NAME}"
-    replicas: "${APPLICATION_REPLICA_COUNT}"
-    template:
-      metadata:
-        labels:
-          name: "${NAME}"
-        name: "${NAME}"
-      spec:
-        containers:
-        - name: cloudforms
-          image: "${FRONTEND_APPLICATION_IMG_NAME}:${FRONTEND_APPLICATION_IMG_TAG}"
-          livenessProbe:
-            exec:
-              command:
-              - pidof
-              - MIQ Server
-            initialDelaySeconds: 480
-            timeoutSeconds: 3
-          readinessProbe:
-            tcpSocket:
-              port: 80
-            initialDelaySeconds: 200
-            timeoutSeconds: 3
-          ports:
-          - containerPort: 80
-            protocol: TCP
-          volumeMounts:
-          - name: "${NAME}-server"
-            mountPath: "/persistent"
-          env:
-          - name: MY_POD_NAMESPACE
-            valueFrom:
-              fieldRef:
-                fieldPath: metadata.namespace
-          - name: APPLICATION_INIT_DELAY
-            value: "${APPLICATION_INIT_DELAY}"
-          - name: DATABASE_REGION
-            value: "${DATABASE_REGION}"
-          - name: DATABASE_URL
-            valueFrom:
-              secretKeyRef:
-                name: "${NAME}-secrets"
-                key: database-url
-          - name: V2_KEY
-            valueFrom:
-              secretKeyRef:
-                name: "${NAME}-secrets"
-                key: v2-key
-          - name: APPLICATION_ADMIN_PASSWORD
-            valueFrom:
-              secretKeyRef:
-                name: "${NAME}-secrets"
-                key: admin-password
-          - name: ANSIBLE_ADMIN_PASSWORD
-            valueFrom:
-              secretKeyRef:
-                name: "${ANSIBLE_SERVICE_NAME}-secrets"
-                key: admin-password
-          resources:
-            requests:
-              memory: "${APPLICATION_MEM_REQ}"
-              cpu: "${APPLICATION_CPU_REQ}"
-            limits:
-              memory: "${APPLICATION_MEM_LIMIT}"
-          lifecycle:
-            preStop:
-              exec:
-                command:
-                - "/opt/rh/cfme-container-scripts/sync-pv-data"
-        serviceAccount: cfme-orchestrator
-        serviceAccountName: cfme-orchestrator
-        terminationGracePeriodSeconds: 90
-    volumeClaimTemplates:
-    - metadata:
-        name: "${NAME}-server"
-        annotations:
-      spec:
-        accessModes:
-        - ReadWriteOnce
-        resources:
-          requests:
-            storage: "${APPLICATION_VOLUME_CAPACITY}"
-- apiVersion: v1
-  kind: Service
-  metadata:
-    annotations:
-      description: Headless service for CloudForms backend pods
-    name: "${NAME}-backend"
-  spec:
-    clusterIP: None
-    selector:
-      name: "${NAME}-backend"
-- apiVersion: apps/v1beta1
-  kind: StatefulSet
-  metadata:
-    name: "${NAME}-backend"
-    annotations:
-      description: Defines how to deploy the CloudForms appliance
-  spec:
-    serviceName: "${NAME}-backend"
-    replicas: 0
-    template:
-      metadata:
-        labels:
-          name: "${NAME}-backend"
-        name: "${NAME}-backend"
-      spec:
-        containers:
-        - name: cloudforms
-          image: "${BACKEND_APPLICATION_IMG_NAME}:${BACKEND_APPLICATION_IMG_TAG}"
-          livenessProbe:
-            exec:
-              command:
-              - pidof
-              - MIQ Server
-            initialDelaySeconds: 480
-            timeoutSeconds: 3
-          volumeMounts:
-          - name: "${NAME}-server"
-            mountPath: "/persistent"
-          env:
-          - name: APPLICATION_INIT_DELAY
-            value: "${APPLICATION_INIT_DELAY}"
-          - name: DATABASE_URL
-            valueFrom:
-              secretKeyRef:
-                name: "${NAME}-secrets"
-                key: database-url
-          - name: MIQ_SERVER_DEFAULT_ROLES
-            value: database_operations,event,reporting,scheduler,smartstate,ems_operations,ems_inventory,automate
-          - name: FRONTEND_SERVICE_NAME
-            value: "${NAME}"
-          - name: V2_KEY
-            valueFrom:
-              secretKeyRef:
-                name: "${NAME}-secrets"
-                key: v2-key
-          - name: ANSIBLE_ADMIN_PASSWORD
-            valueFrom:
-              secretKeyRef:
-                name: "${ANSIBLE_SERVICE_NAME}-secrets"
-                key: admin-password
-          resources:
-            requests:
-              memory: "${APPLICATION_MEM_REQ}"
-              cpu: "${APPLICATION_CPU_REQ}"
-            limits:
-              memory: "${APPLICATION_MEM_LIMIT}"
-          lifecycle:
-            preStop:
-              exec:
-                command:
-                - "/opt/rh/cfme-container-scripts/sync-pv-data"
-        serviceAccount: cfme-orchestrator
-        serviceAccountName: cfme-orchestrator
-        terminationGracePeriodSeconds: 90
-    volumeClaimTemplates:
-    - metadata:
-        name: "${NAME}-server"
-        annotations:
-      spec:
-        accessModes:
-        - ReadWriteOnce
-        resources:
-          requests:
-            storage: "${APPLICATION_VOLUME_CAPACITY}"
-- apiVersion: v1
-  kind: Service
-  metadata:
-    name: "${MEMCACHED_SERVICE_NAME}"
-    annotations:
-      description: Exposes the memcached server
-  spec:
-    ports:
-    - name: memcached
-      port: 11211
-      targetPort: 11211
-    selector:
-      name: "${MEMCACHED_SERVICE_NAME}"
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    name: "${MEMCACHED_SERVICE_NAME}"
-    annotations:
-      description: Defines how to deploy memcached
-  spec:
-    strategy:
-      type: Recreate
-    triggers:
-    - type: ConfigChange
-    replicas: 1
-    selector:
-      name: "${MEMCACHED_SERVICE_NAME}"
-    template:
-      metadata:
-        name: "${MEMCACHED_SERVICE_NAME}"
-        labels:
-          name: "${MEMCACHED_SERVICE_NAME}"
-      spec:
-        volumes: []
-        containers:
-        - name: memcached
-          image: "${MEMCACHED_IMG_NAME}:${MEMCACHED_IMG_TAG}"
-          ports:
-          - containerPort: 11211
-          readinessProbe:
-            timeoutSeconds: 1
-            initialDelaySeconds: 5
-            tcpSocket:
-              port: 11211
-          livenessProbe:
-            timeoutSeconds: 1
-            initialDelaySeconds: 30
-            tcpSocket:
-              port: 11211
-          volumeMounts: []
-          env:
-          - name: MEMCACHED_MAX_MEMORY
-            value: "${MEMCACHED_MAX_MEMORY}"
-          - name: MEMCACHED_MAX_CONNECTIONS
-            value: "${MEMCACHED_MAX_CONNECTIONS}"
-          - name: MEMCACHED_SLAB_PAGE_SIZE
-            value: "${MEMCACHED_SLAB_PAGE_SIZE}"
-          resources:
-            requests:
-              memory: "${MEMCACHED_MEM_REQ}"
-              cpu: "${MEMCACHED_CPU_REQ}"
-            limits:
-              memory: "${MEMCACHED_MEM_LIMIT}"
-- apiVersion: v1
-  kind: Service
-  metadata:
-    name: "${DATABASE_SERVICE_NAME}"
-    annotations:
-      description: Remote database service
-  spec:
-    ports:
-    - name: postgresql
-      port: 5432
-      targetPort: "${{DATABASE_PORT}}"
-    selector: {}
-- apiVersion: v1
-  kind: Endpoints
-  metadata:
-    name: "${DATABASE_SERVICE_NAME}"
-  subsets:
-  - addresses:
-    - ip: "${DATABASE_IP}"
-    ports:
-    - port: "${{DATABASE_PORT}}"
-      name: postgresql
-- apiVersion: v1
-  kind: Service
-  metadata:
-    annotations:
-      description: Exposes and load balances Ansible pods
-      service.alpha.openshift.io/dependencies: '[{"name":"${DATABASE_SERVICE_NAME}","namespace":"","kind":"Service"}]'
-    name: "${ANSIBLE_SERVICE_NAME}"
-  spec:
-    ports:
-    - name: http
-      port: 80
-      protocol: TCP
-      targetPort: 80
-    - name: https
-      port: 443
-      protocol: TCP
-      targetPort: 443
-    selector:
-      name: "${ANSIBLE_SERVICE_NAME}"
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    name: "${ANSIBLE_SERVICE_NAME}"
-    annotations:
-      description: Defines how to deploy the Ansible appliance
-  spec:
-    strategy:
-      type: Recreate
-    serviceName: "${ANSIBLE_SERVICE_NAME}"
-    replicas: 0
-    template:
-      metadata:
-        labels:
-          name: "${ANSIBLE_SERVICE_NAME}"
-        name: "${ANSIBLE_SERVICE_NAME}"
-      spec:
-        containers:
-        - name: ansible
-          image: "${ANSIBLE_IMG_NAME}:${ANSIBLE_IMG_TAG}"
-          livenessProbe:
-            tcpSocket:
-              port: 443
-            initialDelaySeconds: 480
-            timeoutSeconds: 3
-          readinessProbe:
-            httpGet:
-              path: "/"
-              port: 443
-              scheme: HTTPS
-            initialDelaySeconds: 200
-            timeoutSeconds: 3
-          ports:
-          - containerPort: 80
-            protocol: TCP
-          - containerPort: 443
-            protocol: TCP
-          securityContext:
-            privileged: true
-          env:
-          - name: ADMIN_PASSWORD
-            valueFrom:
-              secretKeyRef:
-                name: "${ANSIBLE_SERVICE_NAME}-secrets"
-                key: admin-password
-          - name: RABBITMQ_USER_NAME
-            value: "${ANSIBLE_RABBITMQ_USER_NAME}"
-          - name: RABBITMQ_PASSWORD
-            valueFrom:
-              secretKeyRef:
-                name: "${ANSIBLE_SERVICE_NAME}-secrets"
-                key: rabbit-password
-          - name: ANSIBLE_SECRET_KEY
-            valueFrom:
-              secretKeyRef:
-                name: "${ANSIBLE_SERVICE_NAME}-secrets"
-                key: secret-key
-          - name: DATABASE_SERVICE_NAME
-            value: "${DATABASE_SERVICE_NAME}"
-          - name: POSTGRESQL_USER
-            value: "${DATABASE_USER}"
-          - name: POSTGRESQL_PASSWORD
-            valueFrom:
-              secretKeyRef:
-                name: "${NAME}-secrets"
-                key: pg-password
-          - name: POSTGRESQL_DATABASE
-            value: "${ANSIBLE_DATABASE_NAME}"
-          resources:
-            requests:
-              memory: "${ANSIBLE_MEM_REQ}"
-              cpu: "${ANSIBLE_CPU_REQ}"
-            limits:
-              memory: "${ANSIBLE_MEM_LIMIT}"
-        serviceAccount: cfme-privileged
-        serviceAccountName: cfme-privileged
-- apiVersion: v1
-  kind: ConfigMap
-  metadata:
-    name: "${HTTPD_SERVICE_NAME}-configs"
-  data:
-    application.conf: |
-      # Timeout: The number of seconds before receives and sends time out.
-      Timeout 120
-
-      RewriteEngine On
-      Options SymLinksIfOwnerMatch
-
-      <VirtualHost *:80>
-        KeepAlive on
-        # Without ServerName mod_auth_mellon compares against http:// and not https:// from the IdP
-        ServerName https://%{REQUEST_HOST}
-
-        ProxyPreserveHost on
-
-        RewriteCond %{REQUEST_URI}     ^/ws        [NC]
-        RewriteCond %{HTTP:UPGRADE}    ^websocket$ [NC]
-        RewriteCond %{HTTP:CONNECTION} ^Upgrade$   [NC]
-        RewriteRule .* ws://${NAME}%{REQUEST_URI}  [P,QSA,L]
-
-        # For httpd, some ErrorDocuments must by served by the httpd pod
-        RewriteCond %{REQUEST_URI} !^/proxy_pages
-
-        # For SAML /saml2 is only served by mod_auth_mellon in the httpd pod
-        RewriteCond %{REQUEST_URI} !^/saml2
-        RewriteRule ^/ http://${NAME}%{REQUEST_URI} [P,QSA,L]
-        ProxyPassReverse / http://${NAME}/
-
-        # Ensures httpd stdout/stderr are seen by 'docker logs'.
-        ErrorLog  "| /usr/bin/tee /proc/1/fd/2 /var/log/httpd/error_log"
-        CustomLog "| /usr/bin/tee /proc/1/fd/1 /var/log/httpd/access_log" common
-      </VirtualHost>
-    authentication.conf: |
-      # Load appropriate authentication configuration files
-      #
-      Include "conf.d/configuration-${HTTPD_AUTH_TYPE}-auth"
-    configuration-internal-auth: |
-      # Internal authentication
-      #
-    configuration-external-auth: |
-      Include "conf.d/external-auth-load-modules-conf"
-
-      <Location /dashboard/kerberos_authenticate>
-        AuthType                   Kerberos
-        AuthName                   "Kerberos Login"
-        KrbMethodNegotiate         On
-        KrbMethodK5Passwd          Off
-        KrbAuthRealms              ${HTTPD_AUTH_KERBEROS_REALMS}
-        Krb5KeyTab                 /etc/http.keytab
-        KrbServiceName             Any
-        Require                    pam-account httpd-auth
-
-        ErrorDocument 401 /proxy_pages/invalid_sso_credentials.js
-      </Location>
-
-      Include "conf.d/external-auth-login-form-conf"
-      Include "conf.d/external-auth-application-api-conf"
-      Include "conf.d/external-auth-lookup-user-details-conf"
-      Include "conf.d/external-auth-remote-user-conf"
-    configuration-active-directory-auth: |
-      Include "conf.d/external-auth-load-modules-conf"
-
-      <Location /dashboard/kerberos_authenticate>
-        AuthType                   Kerberos
-        AuthName                   "Kerberos Login"
-        KrbMethodNegotiate         On
-        KrbMethodK5Passwd          Off
-        KrbAuthRealms              ${HTTPD_AUTH_KERBEROS_REALMS}
-        Krb5KeyTab                 /etc/krb5.keytab
-        KrbServiceName             Any
-        Require                    pam-account httpd-auth
-
-        ErrorDocument 401 /proxy_pages/invalid_sso_credentials.js
-      </Location>
-
-      Include "conf.d/external-auth-login-form-conf"
-      Include "conf.d/external-auth-application-api-conf"
-      Include "conf.d/external-auth-lookup-user-details-conf"
-      Include "conf.d/external-auth-remote-user-conf"
-    configuration-saml-auth: |
-      LoadModule auth_mellon_module modules/mod_auth_mellon.so
-
-      <Location />
-        MellonEnable               "info"
-
-        MellonIdPMetadataFile      "/etc/httpd/saml2/idp-metadata.xml"
-
-        MellonSPPrivateKeyFile     "/etc/httpd/saml2/sp-key.key"
-        MellonSPCertFile           "/etc/httpd/saml2/sp-cert.cert"
-        MellonSPMetadataFile       "/etc/httpd/saml2/sp-metadata.xml"
-
-        MellonVariable             "sp-cookie"
-        MellonSecureCookie         On
-        MellonCookiePath           "/"
-
-        MellonIdP                  "IDP"
-
-        MellonEndpointPath         "/saml2"
-
-        MellonUser                 username
-        MellonMergeEnvVars         On
-
-        MellonSetEnvNoPrefix       "REMOTE_USER"            username
-        MellonSetEnvNoPrefix       "REMOTE_USER_EMAIL"      email
-        MellonSetEnvNoPrefix       "REMOTE_USER_FIRSTNAME"  firstname
-        MellonSetEnvNoPrefix       "REMOTE_USER_LASTNAME"   lastname
-        MellonSetEnvNoPrefix       "REMOTE_USER_FULLNAME"   fullname
-        MellonSetEnvNoPrefix       "REMOTE_USER_GROUPS"     groups
-      </Location>
-
-      <Location /saml_login>
-        AuthType                   "Mellon"
-        MellonEnable               "auth"
-        Require                    valid-user
-      </Location>
-
-      Include "conf.d/external-auth-remote-user-conf"
-    external-auth-load-modules-conf: |
-      LoadModule authnz_pam_module            modules/mod_authnz_pam.so
-      LoadModule intercept_form_submit_module modules/mod_intercept_form_submit.so
-      LoadModule lookup_identity_module       modules/mod_lookup_identity.so
-      LoadModule auth_kerb_module             modules/mod_auth_kerb.so
-    external-auth-login-form-conf: |
-      <Location /dashboard/external_authenticate>
-        InterceptFormPAMService    httpd-auth
-        InterceptFormLogin         user_name
-        InterceptFormPassword      user_password
-        InterceptFormLoginSkip     admin
-        InterceptFormClearRemoteUserForSkipped on
-      </Location>
-    external-auth-application-api-conf: |
-      <LocationMatch ^/api>
-        SetEnvIf Authorization     '^Basic +YWRtaW46' let_admin_in
-        SetEnvIf X-Auth-Token      '^.+$'             let_api_token_in
-        SetEnvIf X-MIQ-Token       '^.+$'             let_sys_token_in
-
-        AuthType                   Basic
-        AuthName                   "External Authentication (httpd) for API"
-        AuthBasicProvider          PAM
-
-        AuthPAMService             httpd-auth
-        Require                    valid-user
-        Order                      Allow,Deny
-        Allow from                 env=let_admin_in
-        Allow from                 env=let_api_token_in
-        Allow from                 env=let_sys_token_in
-        Satisfy                    Any
-      </LocationMatch>
-    external-auth-lookup-user-details-conf: |
-      <LocationMatch ^/dashboard/external_authenticate$|^/dashboard/kerberos_authenticate$|^/api>
-        LookupUserAttr mail        REMOTE_USER_EMAIL
-        LookupUserAttr givenname   REMOTE_USER_FIRSTNAME
-        LookupUserAttr sn          REMOTE_USER_LASTNAME
-        LookupUserAttr displayname REMOTE_USER_FULLNAME
-        LookupUserAttr domainname  REMOTE_USER_DOMAIN
-
-        LookupUserGroups           REMOTE_USER_GROUPS ":"
-        LookupDbusTimeout          5000
-      </LocationMatch>
-    external-auth-remote-user-conf: |
-      RequestHeader unset X_REMOTE_USER
-
-      RequestHeader set X_REMOTE_USER           %{REMOTE_USER}e           env=REMOTE_USER
-      RequestHeader set X_EXTERNAL_AUTH_ERROR   %{EXTERNAL_AUTH_ERROR}e   env=EXTERNAL_AUTH_ERROR
-      RequestHeader set X_REMOTE_USER_EMAIL     %{REMOTE_USER_EMAIL}e     env=REMOTE_USER_EMAIL
-      RequestHeader set X_REMOTE_USER_FIRSTNAME %{REMOTE_USER_FIRSTNAME}e env=REMOTE_USER_FIRSTNAME
-      RequestHeader set X_REMOTE_USER_LASTNAME  %{REMOTE_USER_LASTNAME}e  env=REMOTE_USER_LASTNAME
-      RequestHeader set X_REMOTE_USER_FULLNAME  %{REMOTE_USER_FULLNAME}e  env=REMOTE_USER_FULLNAME
-      RequestHeader set X_REMOTE_USER_GROUPS    %{REMOTE_USER_GROUPS}e    env=REMOTE_USER_GROUPS
-      RequestHeader set X_REMOTE_USER_DOMAIN    %{REMOTE_USER_DOMAIN}e    env=REMOTE_USER_DOMAIN
-- apiVersion: v1
-  kind: ConfigMap
-  metadata:
-    name: "${HTTPD_SERVICE_NAME}-auth-configs"
-  data:
-    auth-type: internal
-    auth-kerberos-realms: undefined
-    auth-configuration.conf: |
-      # External Authentication Configuration File
-      #
-      # For details on usage please see https://github.com/ManageIQ/manageiq-pods/blob/master/README.md#configuring-external-authentication
-- apiVersion: v1
-  kind: Service
-  metadata:
-    name: "${HTTPD_SERVICE_NAME}"
-    annotations:
-      description: Exposes the httpd server
-      service.alpha.openshift.io/dependencies: '[{"name":"${NAME}","namespace":"","kind":"Service"}]'
-  spec:
-    ports:
-    - name: http
-      port: 80
-      targetPort: 80
-    selector:
-      name: httpd
-- apiVersion: v1
-  kind: Service
-  metadata:
-    name: "${HTTPD_DBUS_API_SERVICE_NAME}"
-    annotations:
-      description: Exposes the httpd server dbus api
-      service.alpha.openshift.io/dependencies: '[{"name":"${NAME}","namespace":"","kind":"Service"}]'
-  spec:
-    ports:
-    - name: http-dbus-api
-      port: 8080
-      targetPort: 8080
-    selector:
-      name: httpd
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    name: "${HTTPD_SERVICE_NAME}"
-    annotations:
-      description: Defines how to deploy httpd
-  spec:
-    strategy:
-      type: Recreate
-      recreateParams:
-        timeoutSeconds: 1200
-    triggers:
-    - type: ConfigChange
-    replicas: 1
-    selector:
-      name: "${HTTPD_SERVICE_NAME}"
-    template:
-      metadata:
-        name: "${HTTPD_SERVICE_NAME}"
-        labels:
-          name: "${HTTPD_SERVICE_NAME}"
-      spec:
-        volumes:
-        - name: httpd-config
-          configMap:
-            name: "${HTTPD_SERVICE_NAME}-configs"
-        - name: httpd-auth-config
-          configMap:
-            name: "${HTTPD_SERVICE_NAME}-auth-configs"
-        containers:
-        - name: httpd
-          image: "${HTTPD_IMG_NAME}:${HTTPD_IMG_TAG}"
-          ports:
-          - containerPort: 80
-            protocol: TCP
-          - containerPort: 8080
-            protocol: TCP
-          livenessProbe:
-            exec:
-              command:
-              - pidof
-              - httpd
-            initialDelaySeconds: 15
-            timeoutSeconds: 3
-          readinessProbe:
-            tcpSocket:
-              port: 80
-            initialDelaySeconds: 10
-            timeoutSeconds: 3
-          volumeMounts:
-          - name: httpd-config
-            mountPath: "${HTTPD_CONFIG_DIR}"
-          - name: httpd-auth-config
-            mountPath: "${HTTPD_AUTH_CONFIG_DIR}"
-          resources:
-            requests:
-              memory: "${HTTPD_MEM_REQ}"
-              cpu: "${HTTPD_CPU_REQ}"
-            limits:
-              memory: "${HTTPD_MEM_LIMIT}"
-          env:
-          - name: HTTPD_AUTH_TYPE
-            valueFrom:
-              configMapKeyRef:
-                name: "${HTTPD_SERVICE_NAME}-auth-configs"
-                key: auth-type
-          - name: HTTPD_AUTH_KERBEROS_REALMS
-            valueFrom:
-              configMapKeyRef:
-                name: "${HTTPD_SERVICE_NAME}-auth-configs"
-                key: auth-kerberos-realms
-          lifecycle:
-            postStart:
-              exec:
-                command:
-                - "/usr/bin/save-container-environment"
-        serviceAccount: cfme-httpd
-        serviceAccountName: cfme-httpd
-parameters:
-- name: NAME
-  displayName: Name
-  required: true
-  description: The name assigned to all of the frontend objects defined in this template.
-  value: cloudforms
-- name: V2_KEY
-  displayName: CloudForms Encryption Key
-  required: true
-  description: Encryption Key for CloudForms Passwords
-  from: "[a-zA-Z0-9]{43}"
-  generate: expression
-- name: DATABASE_SERVICE_NAME
-  displayName: PostgreSQL Service Name
-  required: true
-  description: The name of the OpenShift Service exposed for the PostgreSQL container.
-  value: postgresql
-- name: DATABASE_USER
-  displayName: PostgreSQL User
-  required: true
-  description: PostgreSQL user that will access the database.
-  value: root
-- name: DATABASE_PASSWORD
-  displayName: PostgreSQL Password
-  required: true
-  description: Password for the PostgreSQL user.
-  from: "[a-zA-Z0-9]{8}"
-  generate: expression
-- name: DATABASE_IP
-  displayName: PostgreSQL Server IP
-  required: true
-  description: PostgreSQL external server IP used to configure service.
-  value: ''
-- name: DATABASE_PORT
-  displayName: PostgreSQL Server Port
-  required: true
-  description: PostgreSQL external server port used to configure service.
-  value: '5432'
-- name: DATABASE_NAME
-  required: true
-  displayName: PostgreSQL Database Name
-  description: Name of the PostgreSQL database accessed.
-  value: vmdb_production
-- name: DATABASE_REGION
-  required: true
-  displayName: Application Database Region
-  description: Database region that will be used for application.
-  value: '0'
-- name: APPLICATION_ADMIN_PASSWORD
-  displayName: Application Admin Password
-  required: true
-  description: Admin password that will be set on the application.
-  value: smartvm
-- name: ANSIBLE_DATABASE_NAME
-  displayName: Ansible PostgreSQL database name
-  required: true
-  description: The database to be used by the Ansible continer
-  value: awx
-- name: MEMCACHED_SERVICE_NAME
-  required: true
-  displayName: Memcached Service Name
-  description: The name of the OpenShift Service exposed for the Memcached container.
-  value: memcached
-- name: MEMCACHED_MAX_MEMORY
-  displayName: Memcached Max Memory
-  description: Memcached maximum memory for memcached object storage in MB.
-  value: '64'
-- name: MEMCACHED_MAX_CONNECTIONS
-  displayName: Memcached Max Connections
-  description: Memcached maximum number of connections allowed.
-  value: '1024'
-- name: MEMCACHED_SLAB_PAGE_SIZE
-  displayName: Memcached Slab Page Size
-  description: Memcached size of each slab page.
-  value: 1m
-- name: ANSIBLE_SERVICE_NAME
-  displayName: Ansible Service Name
-  description: The name of the OpenShift Service exposed for the Ansible container.
-  value: ansible
-- name: ANSIBLE_ADMIN_PASSWORD
-  displayName: Ansible admin User password
-  required: true
-  description: The password for the Ansible container admin user
-  from: "[a-zA-Z0-9]{32}"
-  generate: expression
-- name: ANSIBLE_SECRET_KEY
-  displayName: Ansible Secret Key
-  required: true
-  description: Encryption key for the Ansible container
-  from: "[a-f0-9]{32}"
-  generate: expression
-- name: ANSIBLE_RABBITMQ_USER_NAME
-  displayName: RabbitMQ Username
-  required: true
-  description: Username for the Ansible RabbitMQ Server
-  value: ansible
-- name: ANSIBLE_RABBITMQ_PASSWORD
-  displayName: RabbitMQ Server Password
-  required: true
-  description: Password for the Ansible RabbitMQ Server
-  from: "[a-zA-Z0-9]{32}"
-  generate: expression
-- name: APPLICATION_CPU_REQ
-  displayName: Application Min CPU Requested
-  required: true
-  description: Minimum amount of CPU time the Application container will need (expressed in millicores).
-  value: 1000m
-- name: MEMCACHED_CPU_REQ
-  displayName: Memcached Min CPU Requested
-  required: true
-  description: Minimum amount of CPU time the Memcached container will need (expressed in millicores).
-  value: 200m
-- name: ANSIBLE_CPU_REQ
-  displayName: Ansible Min CPU Requested
-  required: true
-  description: Minimum amount of CPU time the Ansible container will need (expressed in millicores).
-  value: 1000m
-- name: APPLICATION_MEM_REQ
-  displayName: Application Min RAM Requested
-  required: true
-  description: Minimum amount of memory the Application container will need.
-  value: 6144Mi
-- name: MEMCACHED_MEM_REQ
-  displayName: Memcached Min RAM Requested
-  required: true
-  description: Minimum amount of memory the Memcached container will need.
-  value: 64Mi
-- name: ANSIBLE_MEM_REQ
-  displayName: Ansible Min RAM Requested
-  required: true
-  description: Minimum amount of memory the Ansible container will need.
-  value: 2048Mi
-- name: APPLICATION_MEM_LIMIT
-  displayName: Application Max RAM Limit
-  required: true
-  description: Maximum amount of memory the Application container can consume.
-  value: 16384Mi
-- name: MEMCACHED_MEM_LIMIT
-  displayName: Memcached Max RAM Limit
-  required: true
-  description: Maximum amount of memory the Memcached container can consume.
-  value: 256Mi
-- name: ANSIBLE_MEM_LIMIT
-  displayName: Ansible Max RAM Limit
-  required: true
-  description: Maximum amount of memory the Ansible container can consume.
-  value: 8096Mi
-- name: MEMCACHED_IMG_NAME
-  displayName: Memcached Image Name
-  description: This is the Memcached image name requested to deploy.
-  value: registry.access.redhat.com/cloudforms46/cfme-openshift-memcached
-- name: MEMCACHED_IMG_TAG
-  displayName: Memcached Image Tag
-  description: This is the Memcached image tag/version requested to deploy.
-  value: latest
-- name: FRONTEND_APPLICATION_IMG_NAME
-  displayName: Frontend Application Image Name
-  description: This is the Frontend Application image name requested to deploy.
-  value: registry.access.redhat.com/cloudforms46/cfme-openshift-app-ui
-- name: BACKEND_APPLICATION_IMG_NAME
-  displayName: Backend Application Image Name
-  description: This is the Backend Application image name requested to deploy.
-  value: registry.access.redhat.com/cloudforms46/cfme-openshift-app
-- name: FRONTEND_APPLICATION_IMG_TAG
-  displayName: Front end Application Image Tag
-  description: This is the CloudForms Frontend Application image tag/version requested to deploy.
-  value: latest
-- name: BACKEND_APPLICATION_IMG_TAG
-  displayName: Back end Application Image Tag
-  description: This is the CloudForms Backend Application image tag/version requested to deploy.
-  value: latest
-- name: ANSIBLE_IMG_NAME
-  displayName: Ansible Image Name
-  description: This is the Ansible image name requested to deploy.
-  value: registry.access.redhat.com/cloudforms46/cfme-openshift-embedded-ansible
-- name: ANSIBLE_IMG_TAG
-  displayName: Ansible Image Tag
-  description: This is the Ansible image tag/version requested to deploy.
-  value: latest
-- name: APPLICATION_DOMAIN
-  displayName: Application Hostname
-  description: The exposed hostname that will route to the application service, if left blank a value will be defaulted.
-  value: ''
-- name: APPLICATION_REPLICA_COUNT
-  displayName: Application Replica Count
-  description: This is the number of Application replicas requested to deploy.
-  value: '1'
-- name: APPLICATION_INIT_DELAY
-  displayName: Application Init Delay
-  required: true
-  description: Delay in seconds before we attempt to initialize the application.
-  value: '15'
-- name: APPLICATION_VOLUME_CAPACITY
-  displayName: Application Volume Capacity
-  required: true
-  description: Volume space available for application data.
-  value: 5Gi
-- name: HTTPD_SERVICE_NAME
-  required: true
-  displayName: Apache httpd Service Name
-  description: The name of the OpenShift Service exposed for the httpd container.
-  value: httpd
-- name: HTTPD_DBUS_API_SERVICE_NAME
-  required: true
-  displayName: Apache httpd DBus API Service Name
-  description: The name of httpd dbus api service.
-  value: httpd-dbus-api
-- name: HTTPD_IMG_NAME
-  displayName: Apache httpd Image Name
-  description: This is the httpd image name requested to deploy.
-  value: registry.access.redhat.com/cloudforms46/cfme-openshift-httpd
-- name: HTTPD_IMG_TAG
-  displayName: Apache httpd Image Tag
-  description: This is the httpd image tag/version requested to deploy.
-  value: latest
-- name: HTTPD_CONFIG_DIR
-  displayName: Apache httpd Configuration Directory
-  description: Directory used to store the Apache configuration files.
-  value: "/etc/httpd/conf.d"
-- name: HTTPD_AUTH_CONFIG_DIR
-  displayName: External Authentication Configuration Directory
-  description: Directory used to store the external authentication configuration files.
-  value: "/etc/httpd/auth-conf.d"
-- name: HTTPD_CPU_REQ
-  displayName: Apache httpd Min CPU Requested
-  required: true
-  description: Minimum amount of CPU time the httpd container will need (expressed in millicores).
-  value: 500m
-- name: HTTPD_MEM_REQ
-  displayName: Apache httpd Min RAM Requested
-  required: true
-  description: Minimum amount of memory the httpd container will need.
-  value: 512Mi
-- name: HTTPD_MEM_LIMIT
-  displayName: Apache httpd Max RAM Limit
-  required: true
-  description: Maximum amount of memory the httpd container can consume.
-  value: 8192Mi

File diff suppressed because it is too large
+ 0 - 1145
roles/openshift_examples/files/examples/v3.10/cfme-templates/cfme-template.yaml


+ 0 - 113
roles/openshift_examples/files/examples/v3.10/cfme-templates/httpd-configmap-generator-template.yaml

@@ -1,113 +0,0 @@
-apiVersion: v1
-kind: Template
-labels:
-  template: httpd-configmap-generator
-metadata:
-  name: httpd-configmap-generator
-  annotations:
-    description: Httpd Configmap Generator
-    tags: httpd,httpd-configmap-generator
-    iconClass: icon-rails
-objects:
-- apiVersion: v1
-  kind: ServiceAccount
-  metadata:
-    name: httpd-configmap-generator
-- apiVersion: v1
-  kind: Service
-  metadata:
-    name: "${HTTPD_CONFIGMAP_GENERATOR_SERVICE_NAME}"
-    annotations:
-      description: Exposes the httpd configmap generator server
-      service.alpha.openshift.io/dependencies: '[{"name":"${NAME}","namespace":"","kind":"Service"}]'
-  spec:
-    ports:
-    - name: httpd-configmap-generator
-      port: 80
-      targetPort: 80
-    selector:
-      name: httpd-configmap-generator
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    name: "${HTTPD_CONFIGMAP_GENERATOR_SERVICE_NAME}"
-    annotations:
-      description: Defines how to deploy httpd
-  spec:
-    strategy:
-      type: Recreate
-      recreateParams:
-        timeoutSeconds: 1200
-    triggers:
-    - type: ConfigChange
-    replicas: 1
-    selector:
-      name: "${HTTPD_CONFIGMAP_GENERATOR_SERVICE_NAME}"
-    template:
-      metadata:
-        name: "${HTTPD_CONFIGMAP_GENERATOR_SERVICE_NAME}"
-        labels:
-          name: "${HTTPD_CONFIGMAP_GENERATOR_SERVICE_NAME}"
-      spec:
-        containers:
-        - name: httpd-configmap-generator
-          image: "${HTTPD_CONFIGMAP_GENERATOR_IMG_NAME}:${HTTPD_CONFIGMAP_GENERATOR_IMG_TAG}"
-          ports:
-          - containerPort: 80
-            protocol: TCP
-          - containerPort: 8080
-            protocol: TCP
-          livenessProbe:
-            exec:
-              command:
-              - pidof
-              - httpd
-            initialDelaySeconds: 15
-            timeoutSeconds: 3
-          readinessProbe:
-            tcpSocket:
-              port: 80
-            initialDelaySeconds: 10
-            timeoutSeconds: 3
-          resources:
-            requests:
-              memory: "${HTTPD_CONFIGMAP_GENERATOR_MEM_REQ}"
-              cpu: "${HTTPD_CONFIGMAP_GENERATOR_CPU_REQ}"
-            limits:
-              memory: "${HTTPD_CONFIGMAP_GENERATOR_MEM_LIMIT}"
-          lifecycle:
-            postStart:
-              exec:
-                command:
-                - "/usr/bin/save-container-environment"
-        serviceAccount: httpd-configmap-generator
-        serviceAccountName: httpd-configmap-generator
-parameters:
-- name: HTTPD_CONFIGMAP_GENERATOR_SERVICE_NAME
-  required: true
-  displayName: Httpd Configmap Generator Service Name
-  description: The name of the OpenShift Service exposed for the httpd configmap generator container.
-  value: httpd-configmap-generator
-- name: HTTPD_CONFIGMAP_GENERATOR_IMG_NAME
-  displayName: Httpd Configmap Generator Image Name
-  description: This is the httpd configmap generator image name requested to deploy.
-  value: registry.access.redhat.com/cloudforms46/cfme-httpd-configmap-generator
-- name: HTTPD_CONFIGMAP_GENERATOR_IMG_TAG
-  displayName: Httpd Configmap Generator Image Tag
-  description: This is the httpd configmap generator image tag/version requested to deploy.
-  value: latest
-- name: HTTPD_CONFIGMAP_GENERATOR_CPU_REQ
-  displayName: Httpd Configmap Generator Min CPU Requested
-  required: true
-  description: Minimum amount of CPU time the httpd configmap generator container will need (expressed in millicores).
-  value: 500m
-- name: HTTPD_CONFIGMAP_GENERATOR_MEM_REQ
-  displayName: Httpd Configmap Generator Min RAM Requested
-  required: true
-  description: Minimum amount of memory the httpd configmap generator will need.
-  value: 512Mi
-- name: HTTPD_CONFIGMAP_GENERATOR_MEM_LIMIT
-  displayName: Httpd Configmap Generator Max RAM Limit
-  required: true
-  description: Maximum amount of memory the httpd configmap generator container can consume.
-  value: 8192Mi

+ 0 - 38
roles/openshift_examples/files/examples/v3.10/cfme-templates/httpd-scc-sysadmin.yaml

@@ -1,38 +0,0 @@
-allowHostDirVolumePlugin: false
-allowHostIPC: false
-allowHostNetwork: false
-allowHostPID: false
-allowHostPorts: false
-allowPrivilegedContainer: false
-allowedCapabilities:
-apiVersion: v1
-defaultAddCapabilities:
-- SYS_ADMIN
-fsGroup:
-  type: RunAsAny
-groups:
-- system:cluster-admins
-kind: SecurityContextConstraints
-metadata:
-  annotations:
-    kubernetes.io/description: httpd-scc-sysadmin provides all features of the anyuid SCC but allows users to have SYS_ADMIN capabilities. This is the required scc for Pods requiring to run with systemd and the message bus.
-  creationTimestamp:
-  name: httpd-scc-sysadmin
-priority: 10
-readOnlyRootFilesystem: false
-requiredDropCapabilities:
-- MKNOD
-- SYS_CHROOT
-runAsUser:
-  type: RunAsAny
-seLinuxContext:
-  type: MustRunAs
-supplementalGroups:
-  type: RunAsAny
-users:
-volumes:
-- configMap
-- downwardAPI
-- emptyDir
-- persistentVolumeClaim
-- secret

+ 0 - 58
roles/openshift_examples/files/examples/v3.10/cfme-templates/jboss-middleware-manager-pv-example.yaml

@@ -1,58 +0,0 @@
-#
-# Copyright 2016-2017 Red Hat, Inc. and/or its affiliates
-# and other contributors as indicated by the @author tags.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#    http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-apiVersion: v1
-kind: Template
-parameters:
-- name: HAWKULAR_SERVICES_DATA_LIMIT
-  description: Maximum amount data used by hawkular-services container (mostly logging)
-  displayName: Hawkular Services Container Data Limit
-  value: 1Gi
-- name: CASSANDRA_DATA_LIMIT
-  description: Maximum amount data used by Cassandra container
-  displayName: Cassandra Container Data Limit
-  value: 2Gi
-
-objects:
-- apiVersion: v1
-  kind: PersistentVolume
-  metadata:
-    name: h-services-pv
-    labels:
-      type: h-services
-  spec:
-    capacity:
-      storage: ${HAWKULAR_SERVICES_DATA_LIMIT}
-    accessModes:
-      - ReadWriteOnce
-    persistentVolumeReclaimPolicy: Retain
-    hostPath:
-      path: /tmp/pv-services
-- apiVersion: v1
-  kind: PersistentVolume
-  metadata:
-    name: cassandra-pv
-    labels:
-      type: cassandra
-  spec:
-    capacity:
-      storage: ${CASSANDRA_DATA_LIMIT}
-    accessModes:
-      - ReadWriteOnce
-    persistentVolumeReclaimPolicy: Retain
-    hostPath:
-      path: /tmp/pv-cassandra

+ 0 - 254
roles/openshift_examples/files/examples/v3.10/cfme-templates/jboss-middleware-manager-template.yaml

@@ -1,254 +0,0 @@
-#
-# Copyright 2016-2017 Red Hat, Inc. and/or its affiliates
-# and other contributors as indicated by the @author tags.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#    http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-apiVersion: v1
-kind: Template
-metadata:
-  name: hawkular-services
-  annotations:
-    openshift.io/display-name: Hawkular Services
-    description: Hawkular-Services all-in-one (including Hawkular Metrics, Hawkular Alerts and Hawkular Inventory).
-    iconClass: icon-wildfly
-    tags: hawkular,hawkular-services,metrics,alerts,manageiq,cassandra
-
-parameters:
-- name: HAWKULAR_SERVICES_IMAGE
-  description: What docker image should be used for hawkular-services.
-  displayName: Hawkular Services Docker Image
-  value: registry.access.redhat.com/jboss-mm-7-tech-preview/middleware-manager:latest
-- name: CASSANDRA_IMAGE
-  description: What docker image should be used for cassandra node.
-  displayName: Cassandra Docker Image
-  value: registry.access.redhat.com/openshift3/metrics-cassandra:3.5.0
-- name: CASSANDRA_MEMORY_LIMIT
-  description: Maximum amount of memory for Cassandra container.
-  displayName: Cassandra Memory Limit
-  value: 2Gi
-- name: CASSANDRA_DATA_LIMIT
-  description: Maximum amount data used by Cassandra container.
-  displayName: Cassandra Container Data Limit
-  value: 2Gi
-- name: HAWKULAR_SERVICES_DATA_LIMIT
-  description: Maximum amount data used by hawkular-services container (mostly logging).
-  displayName: Hawkular Services Container Data Limit
-  value: 1Gi
-- name: ROUTE_NAME
-  description: Public route with this name will be created.
-  displayName: Route Name
-  value: hawkular-services
-- name: ROUTE_HOSTNAME
-  description: Under this hostname the Hawkular Services will be accessible, if left blank a value will be defaulted.
-  displayName: Hostname
-- name: HAWKULAR_USER
-  description: Username that is used for accessing the Hawkular Services, if left blank a value will be generated.
-  displayName: Hawkular User
-  from: '[a-zA-Z0-9]{16}'
-  generate: expression
-- name: HAWKULAR_PASSWORD
-  description: Password that is used for accessing the Hawkular Services, if left blank a value will be generated.
-  displayName: Hawkular Password
-  from: '[a-zA-Z0-9]{16}'
-  generate: expression
-labels:
-  template: hawkular-services
-message: Credentials for hawkular-services are ${HAWKULAR_USER}:${HAWKULAR_PASSWORD}
-
-objects:
-- apiVersion: v1
-  kind: Service
-  metadata:
-    annotations:
-      description: Exposes and load balances the application pods
-      service.alpha.openshift.io/dependencies: '[{"name":"hawkular-cassandra","namespace":"","kind":"Service"}]'
-    name: hawkular-services
-  spec:
-    ports:
-    - name: http-8080-tcp
-      port: 8080
-      protocol: TCP
-      targetPort: 8080
-    - name: admin-9990-tcp
-      port: 9990
-      protocol: TCP
-      targetPort: 9990
-    selector:
-      name: hawkular-services
-    type: ClusterIP
-- apiVersion: v1
-  kind: Service
-  metadata:
-    annotations:
-      description: Cassandra Service
-    name: hawkular-cassandra
-  spec:
-    ports:
-    - name: cql-9042-tcp
-      port: 9042
-      protocol: TCP
-      targetPort: 9042
-    selector:
-      name: hawkular-cassandra
-- apiVersion: v1
-  kind: Route
-  metadata:
-    name: ${ROUTE_NAME}
-  spec:
-    host: ${ROUTE_HOSTNAME}
-    to:
-      kind: Service
-      name: hawkular-services
-    port:
-      targetPort: http-8080-tcp
-
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    annotations:
-      description: Defines how to deploy the application server
-    name: hawkular-services
-  spec:
-    replicas: 1
-    selector:
-      name: hawkular-services
-    strategy:
-      type: Rolling
-    template:
-      metadata:
-        labels:
-          name: hawkular-services
-      spec:
-        containers:
-        - image: ${HAWKULAR_SERVICES_IMAGE}
-          env:
-          - name: HAWKULAR_BACKEND
-            value: remote
-          - name: CASSANDRA_NODES
-            value: hawkular-cassandra
-          - name: HAWKULAR_USER
-            value: ${HAWKULAR_USER}
-          - name: HAWKULAR_PASSWORD
-            value: ${HAWKULAR_PASSWORD}
-          imagePullPolicy: IfNotPresent
-          name: hawkular-services
-          volumeMounts:
-          - name: h-services-data
-            mountPath: /var/opt/hawkular
-          ports:
-          - containerPort: 8080
-          - containerPort: 9990
-          livenessProbe:
-            exec:
-              command:
-              - /opt/hawkular/bin/ready.sh
-            initialDelaySeconds: 180
-            timeoutSeconds: 3
-          readinessProbe:
-            exec:
-              command:
-              - /opt/hawkular/bin/ready.sh
-            initialDelaySeconds: 120
-            timeoutSeconds: 3
-            periodSeconds: 5
-            successThreshold: 1
-            failureThreshold: 12
-          resources:
-            requests:
-              memory: 1024Mi
-              cpu: 2000m
-        dnsPolicy: ClusterFirst
-        restartPolicy: Always
-        volumes:
-        - name: h-services-data
-          persistentVolumeClaim:
-            claimName: h-services-pvc
-
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    annotations:
-      description: Defines how to deploy the cassandra
-    name: hawkular-cassandra
-  spec:
-    replicas: 1
-    selector:
-      name: hawkular-cassandra
-    strategy:
-      type: Recreate
-      rollingParams:
-        timeoutSeconds: 300
-    template:
-      metadata:
-        labels:
-          name: hawkular-cassandra
-      spec:
-        containers:
-        - image: ${CASSANDRA_IMAGE}
-          imagePullPolicy: Always
-          name: hawkular-cassandra
-          env:
-          - name: DATA_VOLUME
-            value: /var/lib/cassandra
-          volumeMounts:
-          - name: cassandra-data
-            mountPath: /var/lib/cassandra
-          ports:
-          - containerPort: 9042
-          - containerPort: 9160
-          readinessProbe:
-            exec:
-              command: ['nodetool', 'status']
-            initialDelaySeconds: 30
-            timeoutSeconds: 10
-            periodSeconds: 15
-            successThreshold: 1
-            failureThreshold: 3
-          livenessProbe:
-            exec:
-              command: ['nodetool', 'status']
-            initialDelaySeconds: 300
-            timeoutSeconds: 10
-            periodSeconds: 15
-            successThreshold: 1
-            failureThreshold: 3
-          resources:
-            limits:
-              memory: ${CASSANDRA_MEMORY_LIMIT}
-        volumes:
-        - name: cassandra-data
-          persistentVolumeClaim:
-            claimName: cassandra-pvc
-
-- apiVersion: v1
-  kind: PersistentVolumeClaim
-  metadata:
-    name: h-services-pvc
-  spec:
-    accessModes:
-      - ReadWriteOnce
-    resources:
-      requests:
-        storage: 1Gi
-- apiVersion: v1
-  kind: PersistentVolumeClaim
-  metadata:
-    name: cassandra-pvc
-  spec:
-    accessModes:
-      - ReadWriteOnce
-    resources:
-      requests:
-        storage: 1Gi

+ 0 - 12
roles/openshift_examples/files/examples/v3.10/db-templates/OWNERS

@@ -1,12 +0,0 @@
-reviewers:
-  - bparees
-  - gabemontero
-  - mfojtik
-  - dinhxuanvu
-  - jim-minter
-  - spadgett
-approvers:
-  - bparees
-  - mfojtik
-  - spadgett
-  - jupierce

+ 0 - 84
roles/openshift_examples/files/examples/v3.10/db-templates/README.md

@@ -1,84 +0,0 @@
-OpenShift 3 Database Examples
-=============================
-
-This directory contains example JSON templates to deploy databases in OpenShift.
-They can be used to immediately instantiate a database and expose it as a
-service in the current project, or to add a template that can be later used from
-the Web Console or the CLI.
-
-The examples can also be tweaked to create new templates.
-
-
-## Ephemeral vs. Persistent
-
-For each supported database, there are two template files.
-
-Files named `*-ephemeral-template.json` use
-"[emptyDir](https://docs.openshift.org/latest/dev_guide/volumes.html)" volumes
-for data storage, which means that data is lost after a pod restart.
-This is tolerable for experimenting, but not suitable for production use.
-
-The other templates, named `*-persistent-template.json`, use [persistent volume
-claims](https://docs.openshift.org/latest/architecture/additional_concepts/storage.html#persistent-volume-claims)
-to request persistent storage provided by [persistent
-volumes](https://docs.openshift.org/latest/architecture/additional_concepts/storage.html#persistent-volumes),
-that must have been created upfront.
-
-
-## Usage
-
-### Instantiating a new database service
-
-Use these instructions if you want to quickly deploy a new database service in
-your current project. Instantiate a new database service with this command:
-
-    $ oc new-app /path/to/template.json
-
-Replace `/path/to/template.json` with an appropriate path, that can be either a
-local path or an URL. Example:
-
-    $ oc new-app https://raw.githubusercontent.com/openshift/origin/master/examples/db-templates/mongodb-ephemeral-template.json
-
-The parameters listed in the output above can be tweaked by specifying values in
-the command line with the `-p` option:
-
-    $ oc new-app examples/db-templates/mongodb-ephemeral-template.json -p DATABASE_SERVICE_NAME=mydb -p MONGODB_USER=default
-
-Note that the persistent template requires an existing persistent volume,
-otherwise the deployment won't ever succeed.
-
-
-### Adding a database as a template
-
-Use these instructions if, instead of instantiating a service right away, you
-want to load the template into an OpenShift project so that it can be used
-later. Create the template with this command:
-
-    $ oc create -f /path/to/template.json
-
-Replace `/path/to/template.json` with an appropriate path, that can be either a
-local path or an URL. Example:
-
-    $ oc create -f https://raw.githubusercontent.com/openshift/origin/master/examples/db-templates/mongodb-ephemeral-template.json
-    template "mongodb-ephemeral" created
-
-The new template is now available to use in the Web Console or with `oc
-new-app`.
-
-
-## Available database example templates
-
-* [MariaDB](https://raw.githubusercontent.com/openshift/library/master/official/mariadb/templates/mariadb-ephemeral.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/mariadb.html).
-* [MariaDB Persistent](https://raw.githubusercontent.com/openshift/library/master/official/mariadb/templates/mariadb-persistent.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/mariadb.html).
-* [MongoDB](https://raw.githubusercontent.com/openshift/library/master/official/mongodb/templates/mongodb-ephemeral.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/mongodb.html).
-* [MongoDB Persistent](https://raw.githubusercontent.com/openshift/library/master/official/mongodb/templates/mongodb-persistent.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/mongodb.html).
-* [MySQL](https://raw.githubusercontent.com/openshift/library/master/official/mysql/templates/mysql-ephemeral.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/mysql.html).
-* [MySQL Persistent](https://raw.githubusercontent.com/openshift/library/master/official/mysql/templates/mysql-persistent.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/mysql.html).
-* [PostgreSQL](https://raw.githubusercontent.com/openshift/library/master/official/postgresql/templates/postgresql-ephemeral.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/postgresql.html).
-* [PostgreSQL Persistent](https://raw.githubusercontent.com/openshift/library/master/official/postgresql/templates/postgresql-persistent.json) - For more information see the [product documentation](https://docs.openshift.org/latest/using_images/db_images/postgresql.html).
-* [Redis](https://raw.githubusercontent.com/openshift/library/master/official/redis/templates/redis-ephemeral.json) - For more information see the [image documentation](https://github.com/sclorg/redis-container/blob/master/README.md).
-* [Redis Persistent](https://raw.githubusercontent.com/openshift/library/master/official/redis/templates/redis-persistent.json) - For more information see the [image documentation](https://github.com/sclorg/redis-container/blob/master/README.md).
-
-Note: This file is processed by `hack/update-external-examples.sh`. New examples
-must follow the exact syntax of the existing entries. Files in this directory
-are automatically pulled down, do not modify/add files to this directory.

+ 0 - 258
roles/openshift_examples/files/examples/v3.10/db-templates/mariadb-ephemeral-template.json

@@ -1,258 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "mariadb-ephemeral-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${MYSQL_USER}\n       Password: ${MYSQL_PASSWORD}\n  Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.2/root/usr/share/container-scripts/mysql/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "MariaDB database service, without persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.2/root/usr/share/container-scripts/mysql/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing",
-            "iconClass": "icon-mariadb",
-            "openshift.io/display-name": "MariaDB (Ephemeral)",
-            "openshift.io/documentation-url": "https://github.com/sclorg/mariadb-container/blob/master/10.2/root/usr/share/container-scripts/mysql/README.md",
-            "openshift.io/long-description": "This template provides a standalone MariaDB server with a database created.  The database is not stored on persistent storage, so any restart of the service will result in all data being lost.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,mariadb"
-        },
-        "name": "mariadb-ephemeral"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-root_password": "{.data['database-root-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-name": "${MYSQL_DATABASE}",
-                "database-password": "${MYSQL_PASSWORD}",
-                "database-root-password": "${MYSQL_ROOT_PASSWORD}",
-                "database-user": "${MYSQL_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "mysql://{.spec.clusterIP}:{.spec.ports[?(.name==\"mariadb\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mariadb",
-                        "port": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_ROOT_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-root-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mariadb",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "emptyDir": {
-                                    "medium": ""
-                                },
-                                "name": "${DATABASE_SERVICE_NAME}-data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mariadb"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mariadb:${MARIADB_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mariadb"
-        },
-        {
-            "description": "Username for MariaDB user that will be used for accessing the database.",
-            "displayName": "MariaDB Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "MYSQL_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the MariaDB connection user.",
-            "displayName": "MariaDB Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Password for the MariaDB root user.",
-            "displayName": "MariaDB root Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_ROOT_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the MariaDB database accessed.",
-            "displayName": "MariaDB Database Name",
-            "name": "MYSQL_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Version of MariaDB image to be used (10.1, 10.2 or latest).",
-            "displayName": "Version of MariaDB Image",
-            "name": "MARIADB_VERSION",
-            "required": true,
-            "value": "10.2"
-        }
-    ]
-}

+ 0 - 282
roles/openshift_examples/files/examples/v3.10/db-templates/mariadb-persistent-template.json

@@ -1,282 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "mariadb-persistent-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${MYSQL_USER}\n       Password: ${MYSQL_PASSWORD}\n  Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.2/root/usr/share/container-scripts/mysql/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "MariaDB database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mariadb-container/blob/master/10.2/root/usr/share/container-scripts/mysql/README.md.\n\nNOTE: Scaling to more than one replica is not supported. You must have persistent volumes available in your cluster to use this template.",
-            "iconClass": "icon-mariadb",
-            "openshift.io/display-name": "MariaDB",
-            "openshift.io/documentation-url": "https://github.com/sclorg/mariadb-container/blob/master/10.2/root/usr/share/container-scripts/mysql/README.md",
-            "openshift.io/long-description": "This template provides a standalone MariaDB server with a database created.  The database is stored on persistent storage.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,mariadb"
-        },
-        "name": "mariadb-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-root_password": "{.data['database-root-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-name": "${MYSQL_DATABASE}",
-                "database-password": "${MYSQL_PASSWORD}",
-                "database-root-password": "${MYSQL_ROOT_PASSWORD}",
-                "database-user": "${MYSQL_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "mysql://{.spec.clusterIP}:{.spec.ports[?(.name==\"mariadb\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mariadb",
-                        "port": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_ROOT_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-root-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mariadb",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mariadb"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mariadb:${MARIADB_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mariadb"
-        },
-        {
-            "description": "Username for MariaDB user that will be used for accessing the database.",
-            "displayName": "MariaDB Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "MYSQL_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the MariaDB connection user.",
-            "displayName": "MariaDB Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Password for the MariaDB root user.",
-            "displayName": "MariaDB root Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_ROOT_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the MariaDB database accessed.",
-            "displayName": "MariaDB Database Name",
-            "name": "MYSQL_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Version of MariaDB image to be used (10.1, 10.2 or latest).",
-            "displayName": "Version of MariaDB Image",
-            "name": "MARIADB_VERSION",
-            "required": true,
-            "value": "10.2"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi.",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        }
-    ]
-}

+ 0 - 277
roles/openshift_examples/files/examples/v3.10/db-templates/mongodb-ephemeral-template.json

@@ -1,277 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "mongodb-ephemeral-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${MONGODB_USER}\n       Password: ${MONGODB_PASSWORD}\n  Database Name: ${MONGODB_DATABASE}\n Connection URL: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${DATABASE_SERVICE_NAME}/${MONGODB_DATABASE}\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "MongoDB database service, without persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing",
-            "iconClass": "icon-mongodb",
-            "openshift.io/display-name": "MongoDB (Ephemeral)",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/db_images/mongodb.html",
-            "openshift.io/long-description": "This template provides a standalone MongoDB server with a database created.  The database is not stored on persistent storage, so any restart of the service will result in all data being lost.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,mongodb"
-        },
-        "name": "mongodb-ephemeral"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-admin_password": "{.data['database-admin-password']}",
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-admin-password": "${MONGODB_ADMIN_PASSWORD}",
-                "database-name": "${MONGODB_DATABASE}",
-                "database-password": "${MONGODB_PASSWORD}",
-                "database-user": "${MONGODB_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "mongodb://{.spec.clusterIP}:{.spec.ports[?(.name==\"mongo\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mongo",
-                        "nodePort": 0,
-                        "port": 27017,
-                        "protocol": "TCP",
-                        "targetPort": 27017
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            },
-            "status": {
-                "loadBalancer": {}
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "MONGODB_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_ADMIN_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-admin-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 27017
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mongodb",
-                                "ports": [
-                                    {
-                                        "containerPort": 27017,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mongodb/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "volumes": [
-                            {
-                                "emptyDir": {
-                                    "medium": ""
-                                },
-                                "name": "${DATABASE_SERVICE_NAME}-data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mongodb"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mongodb:${MONGODB_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            },
-            "status": {}
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mongodb"
-        },
-        {
-            "description": "Username for MongoDB user that will be used for accessing the database.",
-            "displayName": "MongoDB Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "MONGODB_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the MongoDB connection user.",
-            "displayName": "MongoDB Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MONGODB_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the MongoDB database accessed.",
-            "displayName": "MongoDB Database Name",
-            "name": "MONGODB_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Password for the database admin user.",
-            "displayName": "MongoDB Admin Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MONGODB_ADMIN_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Version of MongoDB image to be used (2.4, 2.6, 3.2 or latest).",
-            "displayName": "Version of MongoDB Image",
-            "name": "MONGODB_VERSION",
-            "required": true,
-            "value": "3.2"
-        }
-    ]
-}

+ 0 - 301
roles/openshift_examples/files/examples/v3.10/db-templates/mongodb-persistent-template.json

@@ -1,301 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "mongodb-persistent-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${MONGODB_USER}\n       Password: ${MONGODB_PASSWORD}\n  Database Name: ${MONGODB_DATABASE}\n Connection URL: mongodb://${MONGODB_USER}:${MONGODB_PASSWORD}@${DATABASE_SERVICE_NAME}/${MONGODB_DATABASE}\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "MongoDB database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mongodb-container/blob/master/3.2/README.md.\n\nNOTE: Scaling to more than one replica is not supported. You must have persistent volumes available in your cluster to use this template.",
-            "iconClass": "icon-mongodb",
-            "openshift.io/display-name": "MongoDB",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/db_images/mongodb.html",
-            "openshift.io/long-description": "This template provides a standalone MongoDB server with a database created.  The database is stored on persistent storage.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,mongodb"
-        },
-        "name": "mongodb-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-admin_password": "{.data['database-admin-password']}",
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-admin-password": "${MONGODB_ADMIN_PASSWORD}",
-                "database-name": "${MONGODB_DATABASE}",
-                "database-password": "${MONGODB_PASSWORD}",
-                "database-user": "${MONGODB_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "mongodb://{.spec.clusterIP}:{.spec.ports[?(.name==\"mongo\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mongo",
-                        "nodePort": 0,
-                        "port": 27017,
-                        "protocol": "TCP",
-                        "targetPort": 27017
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            },
-            "status": {
-                "loadBalancer": {}
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "MONGODB_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_ADMIN_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-admin-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 27017
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mongodb",
-                                "ports": [
-                                    {
-                                        "containerPort": 27017,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mongodb/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mongodb"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mongodb:${MONGODB_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            },
-            "status": {}
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mongodb"
-        },
-        {
-            "description": "Username for MongoDB user that will be used for accessing the database.",
-            "displayName": "MongoDB Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "MONGODB_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the MongoDB connection user.",
-            "displayName": "MongoDB Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MONGODB_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the MongoDB database accessed.",
-            "displayName": "MongoDB Database Name",
-            "name": "MONGODB_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Password for the database admin user.",
-            "displayName": "MongoDB Admin Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MONGODB_ADMIN_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi.",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "Version of MongoDB image to be used (2.4, 2.6, 3.2 or latest).",
-            "displayName": "Version of MongoDB Image",
-            "name": "MONGODB_VERSION",
-            "required": true,
-            "value": "3.2"
-        }
-    ]
-}

+ 0 - 277
roles/openshift_examples/files/examples/v3.10/db-templates/mysql-ephemeral-template.json

@@ -1,277 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "mysql-ephemeral-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${MYSQL_USER}\n       Password: ${MYSQL_PASSWORD}\n  Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/root/usr/share/container-scripts/mysql/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "MySQL database service, without persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/root/usr/share/container-scripts/mysql/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing",
-            "iconClass": "icon-mysql-database",
-            "openshift.io/display-name": "MySQL (Ephemeral)",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/db_images/mysql.html",
-            "openshift.io/long-description": "This template provides a standalone MySQL server with a database created.  The database is not stored on persistent storage, so any restart of the service will result in all data being lost.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,mysql"
-        },
-        "name": "mysql-ephemeral"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-root_password": "{.data['database-root-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-name": "${MYSQL_DATABASE}",
-                "database-password": "${MYSQL_PASSWORD}",
-                "database-root-password": "${MYSQL_ROOT_PASSWORD}",
-                "database-user": "${MYSQL_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "mysql://{.spec.clusterIP}:{.spec.ports[?(.name==\"mysql\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mysql",
-                        "nodePort": 0,
-                        "port": 3306,
-                        "protocol": "TCP",
-                        "targetPort": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            },
-            "status": {
-                "loadBalancer": {}
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_ROOT_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-root-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mysql",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "volumes": [
-                            {
-                                "emptyDir": {
-                                    "medium": ""
-                                },
-                                "name": "${DATABASE_SERVICE_NAME}-data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mysql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mysql:${MYSQL_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            },
-            "status": {}
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mysql"
-        },
-        {
-            "description": "Username for MySQL user that will be used for accessing the database.",
-            "displayName": "MySQL Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "MYSQL_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the MySQL connection user.",
-            "displayName": "MySQL Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Password for the MySQL root user.",
-            "displayName": "MySQL root user Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_ROOT_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the MySQL database accessed.",
-            "displayName": "MySQL Database Name",
-            "name": "MYSQL_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Version of MySQL image to be used (5.5, 5.6, 5.7, or latest).",
-            "displayName": "Version of MySQL Image",
-            "name": "MYSQL_VERSION",
-            "required": true,
-            "value": "5.7"
-        }
-    ]
-}

+ 0 - 282
roles/openshift_examples/files/examples/v3.10/db-templates/mysql-persistent-template.json

@@ -1,282 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "mysql-persistent-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${MYSQL_USER}\n       Password: ${MYSQL_PASSWORD}\n  Database Name: ${MYSQL_DATABASE}\n Connection URL: mysql://${DATABASE_SERVICE_NAME}:3306/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/root/usr/share/container-scripts/mysql/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "MySQL database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/mysql-container/blob/master/5.7/root/usr/share/container-scripts/mysql/README.md.\n\nNOTE: Scaling to more than one replica is not supported. You must have persistent volumes available in your cluster to use this template.",
-            "iconClass": "icon-mysql-database",
-            "openshift.io/display-name": "MySQL",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/db_images/mysql.html",
-            "openshift.io/long-description": "This template provides a standalone MySQL server with a database created.  The database is stored on persistent storage.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,mysql"
-        },
-        "name": "mysql-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-root_password": "{.data['database-root-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-name": "${MYSQL_DATABASE}",
-                "database-password": "${MYSQL_PASSWORD}",
-                "database-root-password": "${MYSQL_ROOT_PASSWORD}",
-                "database-user": "${MYSQL_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "mysql://{.spec.clusterIP}:{.spec.ports[?(.name==\"mysql\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mysql",
-                        "port": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_ROOT_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-root-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mysql",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD=\"$MYSQL_PASSWORD\" mysql -h 127.0.0.1 -u $MYSQL_USER -D $MYSQL_DATABASE -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mysql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mysql:${MYSQL_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mysql"
-        },
-        {
-            "description": "Username for MySQL user that will be used for accessing the database.",
-            "displayName": "MySQL Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "MYSQL_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the MySQL connection user.",
-            "displayName": "MySQL Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Password for the MySQL root user.",
-            "displayName": "MySQL root user Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "MYSQL_ROOT_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the MySQL database accessed.",
-            "displayName": "MySQL Database Name",
-            "name": "MYSQL_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi.",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "Version of MySQL image to be used (5.5, 5.6, 5.7, or latest).",
-            "displayName": "Version of MySQL Image",
-            "name": "MYSQL_VERSION",
-            "required": true,
-            "value": "5.7"
-        }
-    ]
-}

+ 0 - 258
roles/openshift_examples/files/examples/v3.10/db-templates/postgresql-ephemeral-template.json

@@ -1,258 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "postgresql-ephemeral-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${POSTGRESQL_USER}\n       Password: ${POSTGRESQL_PASSWORD}\n  Database Name: ${POSTGRESQL_DATABASE}\n Connection URL: postgresql://${DATABASE_SERVICE_NAME}:5432/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/.",
-    "metadata": {
-        "annotations": {
-            "description": "PostgreSQL database service, without persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing",
-            "iconClass": "icon-postgresql",
-            "openshift.io/display-name": "PostgreSQL (Ephemeral)",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/db_images/postgresql.html",
-            "openshift.io/long-description": "This template provides a standalone PostgreSQL server with a database created.  The database is not stored on persistent storage, so any restart of the service will result in all data being lost.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,postgresql"
-        },
-        "name": "postgresql-ephemeral"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-name": "${POSTGRESQL_DATABASE}",
-                "database-password": "${POSTGRESQL_PASSWORD}",
-                "database-user": "${POSTGRESQL_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "postgres://{.spec.clusterIP}:{.spec.ports[?(.name==\"postgresql\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "postgresql",
-                        "nodePort": 0,
-                        "port": 5432,
-                        "protocol": "TCP",
-                        "targetPort": 5432
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            },
-            "status": {
-                "loadBalancer": {}
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container",
-                                            "--live"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 120,
-                                    "timeoutSeconds": 10
-                                },
-                                "name": "postgresql",
-                                "ports": [
-                                    {
-                                        "containerPort": 5432,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/pgsql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "volumes": [
-                            {
-                                "emptyDir": {
-                                    "medium": ""
-                                },
-                                "name": "${DATABASE_SERVICE_NAME}-data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "postgresql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "postgresql:${POSTGRESQL_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            },
-            "status": {}
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "description": "Username for PostgreSQL user that will be used for accessing the database.",
-            "displayName": "PostgreSQL Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "POSTGRESQL_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the PostgreSQL connection user.",
-            "displayName": "PostgreSQL Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "POSTGRESQL_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the PostgreSQL database accessed.",
-            "displayName": "PostgreSQL Database Name",
-            "name": "POSTGRESQL_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Version of PostgreSQL image to be used (9.4, 9.5, 9.6 or latest).",
-            "displayName": "Version of PostgreSQL Image",
-            "name": "POSTGRESQL_VERSION",
-            "required": true,
-            "value": "9.6"
-        }
-    ]
-}

+ 0 - 282
roles/openshift_examples/files/examples/v3.10/db-templates/postgresql-persistent-template.json

@@ -1,282 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "postgresql-persistent-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Username: ${POSTGRESQL_USER}\n       Password: ${POSTGRESQL_PASSWORD}\n  Database Name: ${POSTGRESQL_DATABASE}\n Connection URL: postgresql://${DATABASE_SERVICE_NAME}:5432/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/.",
-    "metadata": {
-        "annotations": {
-            "description": "PostgreSQL database service, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/postgresql-container/.\n\nNOTE: Scaling to more than one replica is not supported. You must have persistent volumes available in your cluster to use this template.",
-            "iconClass": "icon-postgresql",
-            "openshift.io/display-name": "PostgreSQL",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/db_images/postgresql.html",
-            "openshift.io/long-description": "This template provides a standalone PostgreSQL server with a database created.  The database is stored on persistent storage.  The database name, username, and password are chosen via parameters when provisioning this service.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,postgresql"
-        },
-        "name": "postgresql-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-database_name": "{.data['database-name']}",
-                    "template.openshift.io/expose-password": "{.data['database-password']}",
-                    "template.openshift.io/expose-username": "{.data['database-user']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-name": "${POSTGRESQL_DATABASE}",
-                "database-password": "${POSTGRESQL_PASSWORD}",
-                "database-user": "${POSTGRESQL_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "postgres://{.spec.clusterIP}:{.spec.ports[?(.name==\"postgresql\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "postgresql",
-                        "nodePort": 0,
-                        "port": 5432,
-                        "protocol": "TCP",
-                        "targetPort": 5432
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            },
-            "status": {
-                "loadBalancer": {}
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-name",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container",
-                                            "--live"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 120,
-                                    "timeoutSeconds": 10
-                                },
-                                "name": "postgresql",
-                                "ports": [
-                                    {
-                                        "containerPort": 5432,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/pgsql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "postgresql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "postgresql:${POSTGRESQL_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            },
-            "status": {}
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "description": "Username for PostgreSQL user that will be used for accessing the database.",
-            "displayName": "PostgreSQL Connection Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "POSTGRESQL_USER",
-            "required": true
-        },
-        {
-            "description": "Password for the PostgreSQL connection user.",
-            "displayName": "PostgreSQL Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "POSTGRESQL_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Name of the PostgreSQL database accessed.",
-            "displayName": "PostgreSQL Database Name",
-            "name": "POSTGRESQL_DATABASE",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi.",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "Version of PostgreSQL image to be used (9.4, 9.5, 9.6 or latest).",
-            "displayName": "Version of PostgreSQL Image",
-            "name": "POSTGRESQL_VERSION",
-            "required": true,
-            "value": "9.6"
-        }
-    ]
-}

+ 0 - 221
roles/openshift_examples/files/examples/v3.10/db-templates/redis-ephemeral-template.json

@@ -1,221 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "redis-ephemeral-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Password: ${REDIS_PASSWORD}\n Connection URL: redis://${DATABASE_SERVICE_NAME}:6379/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.",
-    "metadata": {
-        "annotations": {
-            "description": "Redis in-memory data structure store, without persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing",
-            "iconClass": "icon-redis",
-            "openshift.io/display-name": "Redis (Ephemeral)",
-            "openshift.io/documentation-url": "https://github.com/sclorg/redis-container/tree/master/3.2",
-            "openshift.io/long-description": "This template provides a standalone Redis server.  The data is not stored on persistent storage, so any restart of the service will result in all data being lost.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,redis"
-        },
-        "name": "redis-ephemeral"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-password": "{.data['database-password']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-password": "${REDIS_PASSWORD}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "redis://{.spec.clusterIP}:{.spec.ports[?(.name==\"redis\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "redis",
-                        "nodePort": 0,
-                        "port": 6379,
-                        "protocol": "TCP",
-                        "targetPort": 6379
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            },
-            "status": {
-                "loadBalancer": {}
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "REDIS_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 6379
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "redis",
-                                "ports": [
-                                    {
-                                        "containerPort": 6379,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "test \"$(redis-cli -h 127.0.0.1 -a $REDIS_PASSWORD ping)\" == \"PONG\""
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/redis/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "volumes": [
-                            {
-                                "emptyDir": {
-                                    "medium": ""
-                                },
-                                "name": "${DATABASE_SERVICE_NAME}-data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "redis"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "redis:${REDIS_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            },
-            "status": {}
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "redis"
-        },
-        {
-            "description": "Password for the Redis connection user.",
-            "displayName": "Redis Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "REDIS_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Version of Redis image to be used (3.2 or latest).",
-            "displayName": "Version of Redis Image",
-            "name": "REDIS_VERSION",
-            "required": true,
-            "value": "3.2"
-        }
-    ]
-}

+ 0 - 245
roles/openshift_examples/files/examples/v3.10/db-templates/redis-persistent-template.json

@@ -1,245 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "redis-persistent-template"
-    },
-    "message": "The following service(s) have been created in your project: ${DATABASE_SERVICE_NAME}.\n\n       Password: ${REDIS_PASSWORD}\n Connection URL: redis://${DATABASE_SERVICE_NAME}:6379/\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.",
-    "metadata": {
-        "annotations": {
-            "description": "Redis in-memory data structure store, with persistent storage. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/redis-container/blob/master/3.2.\n\nNOTE: You must have persistent volumes available in your cluster to use this template.",
-            "iconClass": "icon-redis",
-            "openshift.io/display-name": "Redis",
-            "openshift.io/documentation-url": "https://github.com/sclorg/redis-container/tree/master/3.2",
-            "openshift.io/long-description": "This template provides a standalone Redis server.  The data is stored on persistent storage.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "database,redis"
-        },
-        "name": "redis-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-password": "{.data['database-password']}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "stringData": {
-                "database-password": "${REDIS_PASSWORD}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "redis://{.spec.clusterIP}:{.spec.ports[?(.name==\"redis\")].port}"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "redis",
-                        "nodePort": 0,
-                        "port": 6379,
-                        "protocol": "TCP",
-                        "targetPort": 6379
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            },
-            "status": {
-                "loadBalancer": {}
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "REDIS_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${DATABASE_SERVICE_NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 6379
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "redis",
-                                "ports": [
-                                    {
-                                        "containerPort": 6379,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "test \"$(redis-cli -h 127.0.0.1 -a $REDIS_PASSWORD ping)\" == \"PONG\""
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/redis/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "redis"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "redis:${REDIS_VERSION}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            },
-            "status": {}
-        }
-    ],
-    "parameters": [
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "The name of the OpenShift Service exposed for the database.",
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "redis"
-        },
-        {
-            "description": "Password for the Redis connection user.",
-            "displayName": "Redis Connection Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "REDIS_PASSWORD",
-            "required": true
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi.",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "Version of Redis image to be used (3.2 or latest).",
-            "displayName": "Version of Redis Image",
-            "name": "REDIS_VERSION",
-            "required": true,
-            "value": "3.2"
-        }
-    ]
-}

+ 0 - 14
roles/openshift_examples/files/examples/v3.10/image-streams/OWNERS

@@ -1,14 +0,0 @@
-reviewers:
-  - bparees
-  - sspeiche
-  - mfojtik
-  - liggitt
-  - jcantrill
-  - hhorak
-  - csrwng
-approvers:
-  - bparees
-  - mfojtik
-  - liggitt
-  - jcantrill
-  - csrwng

+ 0 - 54
roles/openshift_examples/files/examples/v3.10/image-streams/README.md

@@ -1,54 +0,0 @@
-Imagestreams
-===========
-
-Imagestreams provide an abstraction for images located in a registry.  By referencing an imagestream (or a tag within an imagestream) instead
-of referencing a image registry/repository:tag directly, your resources can be triggered when the underlying image changes, as well as control
-when image updates are rolled out.
-
-* [.NET Centos7](https://raw.githubusercontent.com/openshift/library/master/community/dotnet/imagestreams/dotnet-centos7.json)
-
-* [HTTPD Centos7](https://raw.githubusercontent.com/openshift/library/master/community/httpd/imagestreams/httpd-centos7.json)
-* [HTTPD RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/httpd/imagestreams/httpd-rhel7.json)
-
-* [Jenkins Centos7](https://raw.githubusercontent.com/openshift/library/master/community/jenkins/imagestreams/jenkins-centos7.json)
-* [Jenkins RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/jenkins/imagestreams/jenkins-rhel7.json)
-
-* [MariaDB Centos7](https://raw.githubusercontent.com/openshift/library/master/community/mariadb/imagestreams/mariadb-centos7.json)
-* [MariaDB RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/mariadb/imagestreams/mariadb-rhel7.json)
-
-* [MongoDB Centos7](https://raw.githubusercontent.com/openshift/library/master/community/mongodb/imagestreams/mongodb-centos7.json)
-* [MongoDB RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/mongodb/imagestreams/mongodb-rhel7.json)
-
-* [MySQL Centos7](https://raw.githubusercontent.com/openshift/library/master/community/mysql/imagestreams/mysql-centos7.json)
-* [MySQL RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/mysql/imagestreams/mysql-rhel7.json)
-
-* [Nginx Centos7](https://raw.githubusercontent.com/openshift/library/master/community/nginx/imagestreams/nginx-centos7.json)
-* [Nginx RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/nginx/imagestreams/nginx-rhel7.json)
-
-* [NodeJS Centos7](https://raw.githubusercontent.com/openshift/library/master/community/nodejs/imagestreams/nodejs-centos7.json)
-* [NodeJS RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/nodejs/imagestreams/nodejs-rhel7.json)
-
-* [Perl Centos7](https://raw.githubusercontent.com/openshift/library/master/community/perl/imagestreams/perl-centos7.json)
-* [Perl RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/perl/imagestreams/perl-rhel7.json)
-
-* [PHP Centos7](https://raw.githubusercontent.com/openshift/library/master/community/php/imagestreams/php-centos7.json)
-* [PHP RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/php/imagestreams/php-rhel7.json)
-
-* [Python Centos7](https://raw.githubusercontent.com/openshift/library/master/community/python/imagestreams/python-centos7.json)
-* [Python RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/python/imagestreams/python-rhel7.json)
-
-* [PostgreSQL Centos7](https://raw.githubusercontent.com/openshift/library/master/community/postgresql/imagestreams/postgresql-centos7.json)
-* [PostgreSQL RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/postgresql/imagestreams/postgresql-rhel7.json)
-
-* [Redis Centos7](https://raw.githubusercontent.com/openshift/library/master/community/redis/imagestreams/redis-centos7.json)
-* [Redis RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/redis/imagestreams/redis-rhel7.json)
-
-* [Ruby Centos7](https://raw.githubusercontent.com/openshift/library/master/community/ruby/imagestreams/ruby-centos7.json)
-* [Ruby RHEL7](https://raw.githubusercontent.com/openshift/library/master/official/ruby/imagestreams/ruby-rhel7.json)
-
-* [Wildfly Centos7](https://raw.githubusercontent.com/openshift/library/master/community/wildfly/imagestreams/wildfly-centos7.json)
-
-
-Note: This file is processed by `hack/update-external-examples.sh`. New examples
-must follow the exact syntax of the existing entries. Files in this directory
-are automatically pulled down, do not modify/add files to this directory.

+ 0 - 140
roles/openshift_examples/files/examples/v3.10/image-streams/dotnet_imagestreams.json

@@ -1,140 +0,0 @@
-{
-    "kind": "ImageStreamList",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "dotnet-image-streams",
-        "annotations": {
-            "description": "ImageStream definitions for .NET Core on RHEL"
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "dotnet",
-                "annotations": {
-                    "openshift.io/display-name": ".NET Core"
-                }
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "latest",
-                        "annotations": {
-                          "openshift.io/display-name": ".NET Core (Latest)",
-                          "description": "Build and run .NET Core applications on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/build/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of .NET Core available on OpenShift, including major versions updates.",
-                          "iconClass": "icon-dotnet",
-                          "tags": "builder,.net,dotnet,dotnetcore",
-                          "supports":"dotnet",
-                          "sampleRepo": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git",
-                          "sampleContextDir": "app",
-                          "sampleRef": "dotnetcore-2.0"
-                        },
-                        "from": {
-                          "kind": "ImageStreamTag",
-                          "name": "2.0"
-                        }
-                    },
-                    {
-                        "name": "2.0",
-                        "annotations": {
-                            "openshift.io/display-name": ".NET Core 2.0",
-                            "description": "Build and run .NET Core 2.0 applications on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/build/README.md.",
-                            "iconClass": "icon-dotnet",
-                            "tags": "builder,.net,dotnet,dotnetcore,rh-dotnet20",
-                            "supports":"dotnet:2.0,dotnet",
-                            "sampleRepo": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git",
-                            "sampleContextDir": "app",
-                            "sampleRef": "dotnetcore-2.0",
-                            "version": "2.0"
-                        },
-                        "from": {
-                          "kind": "DockerImage",
-                          "name": "registry.access.redhat.com/dotnet/dotnet-20-rhel7:2.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "openshift.io/display-name": ".NET Core 1.1",
-                            "description": "Build and run .NET Core 1.1 applications on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/1.1/README.md.",
-                            "iconClass": "icon-dotnet",
-                            "tags": "builder,.net,dotnet,dotnetcore,rh-dotnetcore11",
-                            "supports":"dotnet:1.1,dotnet",
-                            "sampleRepo": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git",
-                            "sampleContextDir": "app",
-                            "sampleRef": "dotnetcore-1.1",
-                            "version": "1.1"
-                        },
-                        "from": {
-                          "kind": "DockerImage",
-                          "name": "registry.access.redhat.com/dotnet/dotnetcore-11-rhel7:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "openshift.io/display-name": ".NET Core 1.0",
-                            "description": "Build and run .NET Core 1.0 applications on RHEL 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/1.0/README.md.",
-                            "iconClass": "icon-dotnet",
-                            "tags": "builder,.net,dotnet,dotnetcore,rh-dotnetcore10",
-                            "supports":"dotnet:1.0,dotnet",
-                            "sampleRepo": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git",
-                            "sampleContextDir": "app",
-                            "sampleRef": "dotnetcore-1.0",
-                            "version": "1.0"
-                        },
-                        "from": {
-                          "kind": "DockerImage",
-                          "name": "registry.access.redhat.com/dotnet/dotnetcore-10-rhel7:1.0"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "dotnet-runtime",
-                "annotations": {
-                    "openshift.io/display-name": ".NET Core Runtime"
-                }
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "latest",
-                        "annotations": {
-                          "openshift.io/display-name": ".NET Core Runtime (Latest)",
-                          "description": "Run .NET Core applications on RHEL 7. For more information about using this image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/runtime/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of .NET Core Runtime available on OpenShift, including major versions updates.",
-                          "iconClass": "icon-dotnet",
-                          "tags": "runtime,.net-runtime,dotnet-runtime,dotnetcore-runtime",
-                          "supports":"dotnet-runtime"
-                        },
-                        "from": {
-                          "kind": "ImageStreamTag",
-                          "name": "2.0"
-                        }
-                    },
-                    {
-                        "name": "2.0",
-                        "annotations": {
-                            "openshift.io/display-name": ".NET Core 2.0 Runtime",
-                            "description": "Run .NET Core applications on RHEL 7. For more information about using this image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/runtime/README.md.",
-                            "iconClass": "icon-dotnet",
-                            "tags": "runtime,.net-runtime,dotnet-runtime,dotnetcore-runtime",
-                            "supports":"dotnet-runtime",
-                            "version": "2.0"
-                        },
-                        "from": {
-                          "kind": "DockerImage",
-                          "name": "registry.access.redhat.com/dotnet/dotnet-20-runtime-rhel7:2.0"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 104
roles/openshift_examples/files/examples/v3.10/image-streams/dotnet_imagestreams_centos.json

@@ -1,104 +0,0 @@
-{
-    "kind": "ImageStreamList",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "dotnet-image-streams",
-        "annotations": {
-            "description": "ImageStream definitions for .NET Core on CentOS"
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "dotnet",
-                "annotations": {
-                    "openshift.io/display-name": ".NET Core"
-                }
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "latest",
-                        "annotations": {
-                          "openshift.io/display-name": ".NET Core (Latest)",
-                          "description": "Build and run .NET Core applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/build/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of .NET Core available on OpenShift, including major versions updates.",
-                          "iconClass": "icon-dotnet",
-                          "tags": "builder,.net,dotnet,dotnetcore",
-                          "supports":"dotnet",
-                          "sampleRepo": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git",
-                          "sampleContextDir": "app",
-                          "sampleRef": "dotnetcore-2.0"
-                        },
-                        "from": {
-                          "kind": "ImageStreamTag",
-                          "name": "2.0"
-                        }
-                    },
-                    {
-                        "name": "2.0",
-                        "annotations": {
-                            "openshift.io/display-name": ".NET Core 2.0",
-                            "description": "Build and run .NET Core 2.0 applications on CentOS 7. For more information about using this builder image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/build/README.md.",
-                            "iconClass": "icon-dotnet",
-                            "tags": "builder,.net,dotnet,dotnetcore,rh-dotnet20",
-                            "supports":"dotnet:2.0,dotnet",
-                            "sampleRepo": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git",
-                            "sampleContextDir": "app",
-                            "sampleRef": "dotnetcore-2.0",
-                            "version": "2.0"
-                        },
-                        "from": {
-                          "kind": "DockerImage",
-                          "name": "registry.centos.org/dotnet/dotnet-20-centos7:latest"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "dotnet-runtime",
-                "annotations": {
-                    "openshift.io/display-name": ".NET Core Runtime"
-                }
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "latest",
-                        "annotations": {
-                          "openshift.io/display-name": ".NET Core Runtime (Latest)",
-                          "description": "Run .NET Core applications on CentOS 7. For more information about using this image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/runtime/README.md.\n\nWARNING: By selecting this tag, your application will automatically update to use the latest version of .NET Core Runtime available on OpenShift, including major versions updates.",
-                          "iconClass": "icon-dotnet",
-                          "tags": "runtime,.net-runtime,dotnet-runtime,dotnetcore-runtime",
-                          "supports":"dotnet-runtime"
-                        },
-                        "from": {
-                          "kind": "ImageStreamTag",
-                          "name": "2.0"
-                        }
-                    },
-                    {
-                        "name": "2.0",
-                        "annotations": {
-                            "openshift.io/display-name": ".NET Core 2.0 Runtime",
-                            "description": "Run .NET Core applications on CentOS 7. For more information about using this image, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore/tree/master/2.0/runtime/README.md.",
-                            "iconClass": "icon-dotnet",
-                            "tags": "runtime,.net-runtime,dotnet-runtime,dotnetcore-runtime",
-                            "supports":"dotnet-runtime",
-                            "version": "2.0"
-                        },
-                        "from": {
-                          "kind": "DockerImage",
-                          "name": "registry.centos.org/dotnet/dotnet-20-runtime-centos7:latest"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

File diff suppressed because it is too large
+ 0 - 1392
roles/openshift_examples/files/examples/v3.10/image-streams/image-streams-centos7.json


File diff suppressed because it is too large
+ 0 - 1190
roles/openshift_examples/files/examples/v3.10/image-streams/image-streams-rhel7.json


+ 0 - 12
roles/openshift_examples/files/examples/v3.10/quickstart-templates/OWNERS

@@ -1,12 +0,0 @@
-reviewers:
-  - bparees
-  - gabemontero
-  - coreydaley
-  - dinhxuanvu
-  - sspeiche
-  - mfojtik
-  - jupierce
-approvers:
-  - bparees
-  - mfojtik
-  - jupierce

+ 0 - 38
roles/openshift_examples/files/examples/v3.10/quickstart-templates/README.md

@@ -1,38 +0,0 @@
-QuickStarts
-===========
-
-QuickStarts provide the basic skeleton of an application. Generally they
-reference a repository containing very simple source code that implements a
-trivial application using a particular framework. In addition they define any
-components needed for the application including a Build configuration,
-supporting services such as Databases, etc.
-
-You can instantiate these templates as is, or fork the source repository they
-reference and supply your forked repository as the source-repository when
-instantiating them.
-
-* [CakePHP](https://raw.githubusercontent.com/openshift/library/master/official/cakephp/templates/cakephp-mysql-example.json) - Provides a basic CakePHP application with a MySQL database. For more information see the [source repository](https://github.com/openshift/cakephp-ex).
-* [CakePHP persistent](https://raw.githubusercontent.com/openshift/library/master/official/cakephp/templates/cakephp-mysql-persistent.json) - Provides a basic CakePHP application with a persistent MySQL database. Note: requires available persistent volumes.  For more information see the [source repository](https://github.com/openshift/cakephp-ex).
-
-* [Dancer](https://raw.githubusercontent.com/openshift/library/master/official/dancer/templates/dancer-mysql-example.json) - Provides a basic Dancer (Perl) application with a MySQL database. For more information see the [source repository](https://github.com/openshift/dancer-ex).
-* [Dancer persistent](https://raw.githubusercontent.com/openshift/library/master/official/dancer/templates/dancer-mysql-persistent.json) - Provides a basic Dancer (Perl) application with a persistent MySQL database. Note: requires available persistent volumes.  For more information see the [source repository](https://github.com/openshift/dancer-ex).
-
-* [Django](https://raw.githubusercontent.com/openshift/library/master/official/django/templates/django-psql-example.json) - Provides a basic Django (Python) application with a PostgreSQL database. For more information see the [source repository](https://github.com/openshift/django-ex).
-* [Django persistent](https://raw.githubusercontent.com/openshift/library/master/official/django/templates/django-psql-persistent.json) - Provides a basic Django (Python) application with a persistent PostgreSQL database. Note: requires available persistent volumes.  For more information see the [source repository](https://github.com/openshift/django-ex).
-
-* [.NET Core](https://raw.githubusercontent.com/openshift/library/master/official/dotnet/templates/dotnet-example.json) - Provides a basic .NET Core application. For more information see the [source repository](https://github.com/redhat-developer/s2i-dotnetcore).
-* [[.NET Core persistent](https://raw.githubusercontent.com/openshift/library/master/official/dotnet/templates/dotnet-pgsql-persistent.json) - Provides a basic .NET Core application with a persistent PostgreSQL database. Note: requires available persistent volumes.  For more information see the [source repository](https://github.com/redhat-developer/s2i-dotnetcore).
-
-* [Httpd](https://raw.githubusercontent.com/openshift/library/master/official/httpd/templates/httpd-example.json) - Provides a basic Httpd static content application. For more information see the [source repository](https://github.com/openshift/httpd-ex).
-
-* [Nginx](https://raw.githubusercontent.com/openshift/library/master/official/nginx/templates/nginx-example.json) - Provides a basic Nginx static content application. For more information see the [source repository](https://github.com/sclorg/nginx-ex).
-
-* [NodeJS](https://raw.githubusercontent.com/openshift/library/master/official/nodejs/templates/nodejs-mongodb-example.json) - Provides a basic NodeJS application with a MongoDB database. For more information see the [source repository](https://github.com/openshift/nodejs-ex).
-* [NodeJS persistent](https://raw.githubusercontent.com/openshift/library/master/official/nodejs/templates/nodejs-mongo-persistent.json) - Provides a basic NodeJS application with a persistent MongoDB database. Note: requires available persistent volumes.  For more information see the [source repository](https://github.com/openshift/nodejs-ex).
-
-* [Rails](https://raw.githubusercontent.com/openshift/library/master/official/rails/templates/rails-postgresql-example.json) - Provides a basic Rails (Ruby) application with a PostgreSQL database. For more information see the [source repository](https://github.com/openshift/rails-ex).
-* [Rails persistent](https://raw.githubusercontent.com/openshift/library/master/official/rails/templates/rails-pgsql-persistent.json) - Provides a basic Rails (Ruby) application with a persistent PostgreSQL database. Note: requires available persistent volumes.  For more information see the [source repository](https://github.com/openshift/rails-ex).
-
-Note: This file is processed by `hack/update-external-examples.sh`. New examples
-must follow the exact syntax of the existing entries. Files in this directory
-are automatically pulled down, do not modify/add files to this directory.

File diff suppressed because it is too large
+ 0 - 1261
roles/openshift_examples/files/examples/v3.10/quickstart-templates/amp.yml


+ 0 - 0
roles/openshift_examples/files/examples/v3.10/quickstart-templates/apicast-gateway-template.yml


+ 0 - 157
roles/openshift_examples/files/examples/v3.10/quickstart-templates/apicast.yml

@@ -1,157 +0,0 @@
-apiVersion: v1
-kind: Template
-metadata:
-  name: 3scale-gateway
-  annotations:
-    description: "3scale API Gateway"
-    iconClass: "icon-load-balancer"
-    tags: "api,gateway,3scale"
-objects:
-
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    name: "${APICAST_NAME}"
-  spec:
-    replicas: 2
-    selector:
-      deploymentconfig: "${APICAST_NAME}"
-    strategy:
-      type: Rolling
-    template:
-      metadata:
-        labels:
-          deploymentconfig: "${APICAST_NAME}"
-      spec:
-        containers:
-        - env:
-          - name: THREESCALE_PORTAL_ENDPOINT
-            valueFrom:
-              secretKeyRef:
-                name: "${CONFIGURATION_URL_SECRET}"
-                key: password
-          - name: THREESCALE_CONFIG_FILE
-            value: "${CONFIGURATION_FILE_PATH}"
-          - name: THREESCALE_DEPLOYMENT_ENV
-            value: "${DEPLOYMENT_ENVIRONMENT}"
-          - name: RESOLVER
-            value: "${RESOLVER}"
-          - name: APICAST_SERVICES
-            value: "${SERVICES_LIST}"
-          - name: APICAST_CONFIGURATION_LOADER
-            value: "${CONFIGURATION_LOADER}"
-          - name: APICAST_LOG_LEVEL
-            value: "${LOG_LEVEL}"
-          - name: APICAST_PATH_ROUTING_ENABLED
-            value: "${PATH_ROUTING}"
-          - name: APICAST_RESPONSE_CODES
-            value: "${RESPONSE_CODES}"
-          - name: APICAST_CONFIGURATION_CACHE
-            value: "${CONFIGURATION_CACHE}"
-          - name: REDIS_URL
-            value: "${REDIS_URL}"
-          - name: APICAST_MANAGEMENT_API
-            value: "${MANAGEMENT_API}"
-          - name: OPENSSL_VERIFY
-            value: "${OPENSSL_VERIFY}"
-          image: 3scale-amp20/apicast-gateway:1.0-3
-          imagePullPolicy: IfNotPresent
-          name: "${APICAST_NAME}"
-          livenessProbe:
-            httpGet:
-              path: /status/live
-              port: management
-            initialDelaySeconds: 10
-            timeoutSeconds: 1
-          readinessProbe:
-            httpGet:
-              path: /status/ready
-              port: management
-            initialDelaySeconds: 15
-            timeoutSeconds: 1
-          ports:
-          - name: proxy
-            containerPort: 8080
-            protocol: TCP
-          - name: management
-            containerPort: 8090
-            protocol: TCP
-    triggers:
-    - type: ConfigChange
-
-- apiVersion: v1
-  kind: Service
-  metadata:
-    name: "${APICAST_NAME}"
-  spec:
-    ports:
-    - name: proxy
-      port: 8080
-      protocol: TCP
-      targetPort: 8080
-    - name: management
-      port: 8090
-      protocol: TCP
-      targetPort: 8090
-    selector:
-      deploymentconfig: "${APICAST_NAME}"
-
-parameters:
-- name: AMP_RELEASE
-  description: "AMP release tag."
-  value: 2.0.0-CR2-redhat-1
-  required: true
-- description: "Name of the secret containing the THREESCALE_PORTAL_ENDPOINT with the access-token or provider key"
-  value: apicast-configuration-url-secret
-  name: CONFIGURATION_URL_SECRET
-  required: true
-- description: "Path to saved JSON file with configuration for the gateway. Has to be injected to the docker image as read only volume."
-  value:
-  name: CONFIGURATION_FILE_PATH
-  required: false
-- description: "Deployment environment. Can be sandbox or production."
-  value: production
-  name: DEPLOYMENT_ENVIRONMENT
-  required: true
-- description: "Name for the 3scale API Gateway"
-  value: apicast
-  name: APICAST_NAME
-  required: true
-- description: "DNS Resolver for openresty, if empty it will be autodiscovered"
-  value:
-  name: RESOLVER
-  required: false
-- description: "Subset of services to run. Use comma separated list of service ids (eg. 42,1337)"
-  value:
-  name: SERVICES_LIST
-  required: false
-- name: CONFIGURATION_LOADER
-  description: "When to load configuration. If on gateway start or incoming request. Allowed values are: lazy, boot."
-  value: boot
-  required: false
-- description: "Log level. One of the following: debug, info, notice, warn, error, crit, alert, or emerg."
-  name: LOG_LEVEL
-  required: false
-- description: "Enable path routing. Experimental feature."
-  name: PATH_ROUTING
-  required: false
-  value: "false"
-- description: "Enable logging response codes to 3scale."
-  value: "false"
-  name: RESPONSE_CODES
-  required: false
-- name: CONFIGURATION_CACHE
-  description: "For how long to cache the downloaded configuration in seconds. Can be left empty, 0 or greater than 60."
-  value: ""
-  required: false
-- description: "Redis URL. Required for OAuth2 integration. ex: redis://PASSWORD@127.0.0.1:6379/0"
-  name: REDIS_URL
-  required: false
-- name: MANAGEMENT_API
-  description: "Scope of the Management API. Can be disabled, status or debug. At least status required for health checks."
-  required: false
-  value: "status"
-- name: OPENSSL_VERIFY
-  description: "Turn on/off the OpenSSL peer verification. Can be set to true/false."
-  required: true
-  value: "false"

+ 0 - 594
roles/openshift_examples/files/examples/v3.10/quickstart-templates/cakephp-mysql-persistent.json

@@ -1,594 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "cakephp-mysql-persistent",
-        "template": "cakephp-mysql-persistent"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/cake-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example CakePHP application with a MySQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/cakephp-ex/blob/master/README.md.",
-            "iconClass": "icon-php",
-            "openshift.io/display-name": "CakePHP + MySQL",
-            "openshift.io/documentation-url": "https://github.com/openshift/cakephp-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a CakePHP application, including a build configuration, application deployment configuration, and database deployment configuration.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,php,cakephp",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "cakephp-mysql-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "cakephp-secret-token": "${CAKEPHP_SECRET_TOKEN}",
-                "cakephp-security-cipher-seed": "${CAKEPHP_SECURITY_CIPHER_SEED}",
-                "cakephp-security-salt": "${CAKEPHP_SECURITY_SALT}",
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "./lib/Cake/Console/cake test app AllTests"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "COMPOSER_MIRROR",
-                                "value": "${COMPOSER_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "php:7.0",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "recreateParams": {
-                        "pre": {
-                            "execNewPod": {
-                                "command": [
-                                    "./migrate-database.sh"
-                                ],
-                                "containerName": "cakephp-mysql-persistent"
-                            },
-                            "failurePolicy": "Retry"
-                        }
-                    },
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_ENGINE",
-                                        "value": "${DATABASE_ENGINE}"
-                                    },
-                                    {
-                                        "name": "DATABASE_NAME",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "DATABASE_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "CAKEPHP_SECRET_TOKEN",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "cakephp-secret-token",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "CAKEPHP_SECURITY_SALT",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "cakephp-security-salt",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "CAKEPHP_SECURITY_CIPHER_SEED",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "cakephp-security-cipher-seed",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "OPCACHE_REVALIDATE_FREQ",
-                                        "value": "${OPCACHE_REVALIDATE_FREQ}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/health.php",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "periodSeconds": 60,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "cakephp-mysql-persistent",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/health.php",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "periodSeconds": 60,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "cakephp-mysql-persistent"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mysql",
-                        "port": 3306,
-                        "targetPort": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mysql",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD='${DATABASE_PASSWORD}' mysql -h 127.0.0.1 -u ${DATABASE_USER} -D ${DATABASE_NAME} -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_MYSQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mysql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mysql:5.7",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "cakephp-mysql-persistent"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the CakePHP container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the MySQL container can use.",
-            "displayName": "Memory Limit (MySQL)",
-            "name": "MEMORY_MYSQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/cakephp-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the CakePHP service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mysql"
-        },
-        {
-            "description": "Database engine: postgresql, mysql or sqlite (default).",
-            "displayName": "Database Engine",
-            "name": "DATABASE_ENGINE",
-            "required": true,
-            "value": "mysql"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "default"
-        },
-        {
-            "displayName": "Database User",
-            "name": "DATABASE_USER",
-            "required": true,
-            "value": "cakephp"
-        },
-        {
-            "displayName": "Database Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "description": "Set this to a long random string.",
-            "displayName": "CakePHP secret token",
-            "from": "[\\w]{50}",
-            "generate": "expression",
-            "name": "CAKEPHP_SECRET_TOKEN"
-        },
-        {
-            "description": "Security salt for session hash.",
-            "displayName": "CakePHP Security Salt",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "CAKEPHP_SECURITY_SALT"
-        },
-        {
-            "description": "Security cipher seed for session hash.",
-            "displayName": "CakePHP Security Cipher Seed",
-            "from": "[0-9]{30}",
-            "generate": "expression",
-            "name": "CAKEPHP_SECURITY_CIPHER_SEED"
-        },
-        {
-            "description": "How often to check script timestamps for updates, in seconds. 0 will result in OPcache checking for updates on every request.",
-            "displayName": "OPcache Revalidation Frequency",
-            "name": "OPCACHE_REVALIDATE_FREQ",
-            "value": "2"
-        },
-        {
-            "description": "The custom Composer mirror URL",
-            "displayName": "Custom Composer Mirror URL",
-            "name": "COMPOSER_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 568
roles/openshift_examples/files/examples/v3.10/quickstart-templates/cakephp-mysql.json

@@ -1,568 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "cakephp-mysql-example",
-        "template": "cakephp-mysql-example"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/cake-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example CakePHP application with a MySQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/cakephp-ex/blob/master/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing.",
-            "iconClass": "icon-php",
-            "openshift.io/display-name": "CakePHP + MySQL (Ephemeral)",
-            "openshift.io/documentation-url": "https://github.com/openshift/cakephp-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a CakePHP application, including a build configuration, application deployment configuration, and database deployment configuration.  The database is stored in non-persistent storage, so this configuration should be used for experimental purposes only.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,php,cakephp",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "cakephp-mysql-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "cakephp-secret-token": "${CAKEPHP_SECRET_TOKEN}",
-                "cakephp-security-cipher-seed": "${CAKEPHP_SECURITY_CIPHER_SEED}",
-                "cakephp-security-salt": "${CAKEPHP_SECURITY_SALT}",
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "./lib/Cake/Console/cake test app AllTests"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "COMPOSER_MIRROR",
-                                "value": "${COMPOSER_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "php:7.0",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "recreateParams": {
-                        "pre": {
-                            "execNewPod": {
-                                "command": [
-                                    "./migrate-database.sh"
-                                ],
-                                "containerName": "cakephp-mysql-example"
-                            },
-                            "failurePolicy": "Retry"
-                        }
-                    },
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_ENGINE",
-                                        "value": "${DATABASE_ENGINE}"
-                                    },
-                                    {
-                                        "name": "DATABASE_NAME",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "DATABASE_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "CAKEPHP_SECRET_TOKEN",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "cakephp-secret-token",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "CAKEPHP_SECURITY_SALT",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "cakephp-security-salt",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "CAKEPHP_SECURITY_CIPHER_SEED",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "cakephp-security-cipher-seed",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "OPCACHE_REVALIDATE_FREQ",
-                                        "value": "${OPCACHE_REVALIDATE_FREQ}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/health.php",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "periodSeconds": 60,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "cakephp-mysql-example",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/health.php",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "periodSeconds": 60,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "cakephp-mysql-example"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mysql",
-                        "port": 3306,
-                        "targetPort": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mysql",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD='${DATABASE_PASSWORD}' mysql -h 127.0.0.1 -u ${DATABASE_USER} -D ${DATABASE_NAME} -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_MYSQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "emptyDir": {},
-                                "name": "data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mysql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mysql:5.7",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "cakephp-mysql-example"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the CakePHP container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the MySQL container can use.",
-            "displayName": "Memory Limit (MySQL)",
-            "name": "MEMORY_MYSQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/cakephp-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the CakePHP service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mysql"
-        },
-        {
-            "description": "Database engine: postgresql, mysql or sqlite (default).",
-            "displayName": "Database Engine",
-            "name": "DATABASE_ENGINE",
-            "required": true,
-            "value": "mysql"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "default"
-        },
-        {
-            "displayName": "Database User",
-            "name": "DATABASE_USER",
-            "required": true,
-            "value": "cakephp"
-        },
-        {
-            "displayName": "Database Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "description": "Set this to a long random string.",
-            "displayName": "CakePHP secret token",
-            "from": "[\\w]{50}",
-            "generate": "expression",
-            "name": "CAKEPHP_SECRET_TOKEN"
-        },
-        {
-            "description": "Security salt for session hash.",
-            "displayName": "CakePHP Security Salt",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "CAKEPHP_SECURITY_SALT"
-        },
-        {
-            "description": "Security cipher seed for session hash.",
-            "displayName": "CakePHP Security Cipher Seed",
-            "from": "[0-9]{30}",
-            "generate": "expression",
-            "name": "CAKEPHP_SECURITY_CIPHER_SEED"
-        },
-        {
-            "description": "How often to check script timestamps for updates, in seconds. 0 will result in OPcache checking for updates on every request.",
-            "displayName": "OPcache Revalidation Frequency",
-            "name": "OPCACHE_REVALIDATE_FREQ",
-            "value": "2"
-        },
-        {
-            "description": "The custom Composer mirror URL",
-            "displayName": "Custom Composer Mirror URL",
-            "name": "COMPOSER_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 536
roles/openshift_examples/files/examples/v3.10/quickstart-templates/dancer-mysql-persistent.json

@@ -1,536 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "dancer-mysql-persistent",
-        "template": "dancer-mysql-persistent"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/dancer-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Dancer application with a MySQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/dancer-ex/blob/master/README.md.",
-            "iconClass": "icon-perl",
-            "openshift.io/display-name": "Dancer + MySQL",
-            "openshift.io/documentation-url": "https://github.com/openshift/dancer-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a Dancer based application, including a build configuration, application deployment configuration, and database deployment configuration.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,perl,dancer",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "dancer-mysql-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}",
-                "keybase": "${SECRET_KEY_BASE}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "perl -I extlib/lib/perl5 -I lib t/*"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "CPAN_MIRROR",
-                                "value": "${CPAN_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "perl:5.24",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "SECRET_KEY_BASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "keybase",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "PERL_APACHE2_RELOAD",
-                                        "value": "${PERL_APACHE2_RELOAD}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "dancer-mysql-persistent",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "dancer-mysql-persistent"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mysql",
-                        "port": 3306,
-                        "targetPort": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mysql",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD='${DATABASE_PASSWORD}' mysql -h 127.0.0.1 -u ${DATABASE_USER} -D ${DATABASE_NAME} -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_MYSQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mysql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mysql:5.7",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "dancer-mysql-persistent"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Perl Dancer container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the MySQL container can use.",
-            "displayName": "Memory Limit (MySQL)",
-            "name": "MEMORY_MYSQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/dancer-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Dancer service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "database"
-        },
-        {
-            "displayName": "Database Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "DATABASE_USER"
-        },
-        {
-            "displayName": "Database Password",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Set this to \"true\" to enable automatic reloading of modified Perl modules.",
-            "displayName": "Perl Module Reload",
-            "name": "PERL_APACHE2_RELOAD",
-            "value": ""
-        },
-        {
-            "description": "Your secret key for verifying the integrity of signed cookies.",
-            "displayName": "Secret Key",
-            "from": "[a-z0-9]{127}",
-            "generate": "expression",
-            "name": "SECRET_KEY_BASE"
-        },
-        {
-            "description": "The custom CPAN mirror URL",
-            "displayName": "Custom CPAN Mirror URL",
-            "name": "CPAN_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 510
roles/openshift_examples/files/examples/v3.10/quickstart-templates/dancer-mysql.json

@@ -1,510 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "dancer-mysql-example",
-        "template": "dancer-mysql-example"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/dancer-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Dancer application with a MySQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/dancer-ex/blob/master/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing.",
-            "iconClass": "icon-perl",
-            "openshift.io/display-name": "Dancer + MySQL (Ephemeral)",
-            "openshift.io/documentation-url": "https://github.com/openshift/dancer-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a Dancer based application, including a build configuration, application deployment configuration, and database deployment configuration.  The database is stored in non-persistent storage, so this configuration should be used for experimental purposes only.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,perl,dancer",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "dancer-mysql-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}",
-                "keybase": "${SECRET_KEY_BASE}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "perl -I extlib/lib/perl5 -I lib t/*"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "CPAN_MIRROR",
-                                "value": "${CPAN_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "perl:5.24",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "SECRET_KEY_BASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "keybase",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "PERL_APACHE2_RELOAD",
-                                        "value": "${PERL_APACHE2_RELOAD}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "dancer-mysql-example",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "dancer-mysql-example"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mysql",
-                        "port": 3306,
-                        "targetPort": 3306
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MYSQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MYSQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 3306
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mysql",
-                                "ports": [
-                                    {
-                                        "containerPort": 3306
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "MYSQL_PWD='${DATABASE_PASSWORD}' mysql -h 127.0.0.1 -u ${DATABASE_USER} -D ${DATABASE_NAME} -e 'SELECT 1'"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_MYSQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mysql/data",
-                                        "name": "data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "emptyDir": {},
-                                "name": "data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mysql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mysql:5.7",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "dancer-mysql-example"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Perl Dancer container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the MySQL container can use.",
-            "displayName": "Memory Limit (MySQL)",
-            "name": "MEMORY_MYSQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/dancer-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Dancer service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "database"
-        },
-        {
-            "displayName": "Database Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "DATABASE_USER"
-        },
-        {
-            "displayName": "Database Password",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Set this to \"true\" to enable automatic reloading of modified Perl modules.",
-            "displayName": "Perl Module Reload",
-            "name": "PERL_APACHE2_RELOAD",
-            "value": ""
-        },
-        {
-            "description": "Your secret key for verifying the integrity of signed cookies.",
-            "displayName": "Secret Key",
-            "from": "[a-z0-9]{127}",
-            "generate": "expression",
-            "name": "SECRET_KEY_BASE"
-        },
-        {
-            "description": "The custom CPAN mirror URL",
-            "displayName": "Custom CPAN Mirror URL",
-            "name": "CPAN_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 546
roles/openshift_examples/files/examples/v3.10/quickstart-templates/django-postgresql-persistent.json

@@ -1,546 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "django-psql-persistent",
-        "template": "django-psql-persistent"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Django application with a PostgreSQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.",
-            "iconClass": "icon-python",
-            "openshift.io/display-name": "Django + PostgreSQL",
-            "openshift.io/documentation-url": "https://github.com/openshift/django-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a Django based application, including a build configuration, application deployment configuration, and database deployment configuration.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,python,django",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "django-psql-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}",
-                "django-secret-key": "${DJANGO_SECRET_KEY}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "./manage.py test"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "PIP_INDEX_URL",
-                                "value": "${PIP_INDEX_URL}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "python:3.5",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_ENGINE",
-                                        "value": "${DATABASE_ENGINE}"
-                                    },
-                                    {
-                                        "name": "DATABASE_NAME",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "DATABASE_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "APP_CONFIG",
-                                        "value": "${APP_CONFIG}"
-                                    },
-                                    {
-                                        "name": "DJANGO_SECRET_KEY",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "django-secret-key",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "django-psql-persistent",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "django-psql-persistent"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "postgresql",
-                        "port": 5432,
-                        "targetPort": 5432
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container",
-                                            "--live"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 120,
-                                    "timeoutSeconds": 10
-                                },
-                                "name": "postgresql",
-                                "ports": [
-                                    {
-                                        "containerPort": 5432
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_POSTGRESQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/pgsql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "postgresql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "postgresql:9.5",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "django-psql-persistent"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Django container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the PostgreSQL container can use.",
-            "displayName": "Memory Limit (PostgreSQL)",
-            "name": "MEMORY_POSTGRESQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/django-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Django service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "description": "Database engine: postgresql, mysql or sqlite (default).",
-            "displayName": "Database Engine",
-            "name": "DATABASE_ENGINE",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "default"
-        },
-        {
-            "displayName": "Database Username",
-            "name": "DATABASE_USER",
-            "required": true,
-            "value": "django"
-        },
-        {
-            "displayName": "Database User Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "description": "Relative path to Gunicorn configuration file (optional).",
-            "displayName": "Application Configuration File Path",
-            "name": "APP_CONFIG"
-        },
-        {
-            "description": "Set this to a long random string.",
-            "displayName": "Django Secret Key",
-            "from": "[\\w]{50}",
-            "generate": "expression",
-            "name": "DJANGO_SECRET_KEY"
-        },
-        {
-            "description": "The custom PyPi index URL",
-            "displayName": "Custom PyPi Index URL",
-            "name": "PIP_INDEX_URL",
-            "value": ""
-        }
-    ]
-}

+ 0 - 520
roles/openshift_examples/files/examples/v3.10/quickstart-templates/django-postgresql.json

@@ -1,520 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "django-psql-example",
-        "template": "django-psql-example"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Django application with a PostgreSQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/django-ex/blob/master/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing.",
-            "iconClass": "icon-python",
-            "openshift.io/display-name": "Django + PostgreSQL (Ephemeral)",
-            "openshift.io/documentation-url": "https://github.com/openshift/django-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a Django based application, including a build configuration, application deployment configuration, and database deployment configuration.  The database is stored in non-persistent storage, so this configuration should be used for experimental purposes only.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,python,django",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "django-psql-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}",
-                "django-secret-key": "${DJANGO_SECRET_KEY}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "./manage.py test"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "PIP_INDEX_URL",
-                                "value": "${PIP_INDEX_URL}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "python:3.5",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_ENGINE",
-                                        "value": "${DATABASE_ENGINE}"
-                                    },
-                                    {
-                                        "name": "DATABASE_NAME",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "DATABASE_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "DATABASE_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "APP_CONFIG",
-                                        "value": "${APP_CONFIG}"
-                                    },
-                                    {
-                                        "name": "DJANGO_SECRET_KEY",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "django-secret-key",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "django-psql-example",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/health",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "django-psql-example"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "postgresql",
-                        "port": 5432,
-                        "targetPort": 5432
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container",
-                                            "--live"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 120,
-                                    "timeoutSeconds": 10
-                                },
-                                "name": "postgresql",
-                                "ports": [
-                                    {
-                                        "containerPort": 5432
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_POSTGRESQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/pgsql/data",
-                                        "name": "data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "emptyDir": {},
-                                "name": "data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "postgresql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "postgresql:9.5",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "django-psql-example"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Django container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the PostgreSQL container can use.",
-            "displayName": "Memory Limit (PostgreSQL)",
-            "name": "MEMORY_POSTGRESQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/django-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Django service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "description": "Database engine: postgresql, mysql or sqlite (default).",
-            "displayName": "Database Engine",
-            "name": "DATABASE_ENGINE",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "default"
-        },
-        {
-            "displayName": "Database Username",
-            "name": "DATABASE_USER",
-            "required": true,
-            "value": "django"
-        },
-        {
-            "displayName": "Database User Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "description": "Relative path to Gunicorn configuration file (optional).",
-            "displayName": "Application Configuration File Path",
-            "name": "APP_CONFIG"
-        },
-        {
-            "description": "Set this to a long random string.",
-            "displayName": "Django Secret Key",
-            "from": "[\\w]{50}",
-            "generate": "expression",
-            "name": "DJANGO_SECRET_KEY"
-        },
-        {
-            "description": "The custom PyPi index URL",
-            "displayName": "Custom PyPi Index URL",
-            "name": "PIP_INDEX_URL",
-            "value": ""
-        }
-    ]
-}

+ 0 - 343
roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet-example.json

@@ -1,343 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "dotnet-example",
-        "annotations": {
-            "openshift.io/display-name": ".NET Core Example",
-            "description": "An example .NET Core application.",
-            "tags": "quickstart,dotnet,.net",
-            "iconClass": "icon-dotnet",
-            "template.openshift.io/provider-display-name": "Red Hat, Inc.",
-            "template.openshift.io/documentation-url": "https://github.com/redhat-developer/s2i-dotnetcore",
-            "template.openshift.io/support-url": "https://access.redhat.com"
-        }
-    },
-    "objects": [
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Exposes and load balances the application pods"
-                }
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                }
-            }
-        },
-        {
-            "kind": "BuildConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Defines how to build the application"
-                }
-            },
-            "spec": {
-                "source": {
-                    "type": "Git",
-                    "git": {
-                        "uri": "${SOURCE_REPOSITORY_URL}",
-                        "ref": "${SOURCE_REPOSITORY_REF}"
-                    },
-                    "contextDir": "${CONTEXT_DIR}"
-                },
-                "strategy": {
-                    "type": "Source",
-                    "sourceStrategy": {
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "namespace": "${NAMESPACE}",
-                            "name": "${DOTNET_IMAGE_STREAM_TAG}"
-                        },
-                        "env": [
-                            {
-                                "name": "DOTNET_STARTUP_PROJECT",
-                                "value": "${DOTNET_STARTUP_PROJECT}"
-                            },
-                            {
-                                "name": "DOTNET_SDK_VERSION",
-                                "value": "${DOTNET_SDK_VERSION}"
-                            },
-                            {
-                                "name": "DOTNET_ASSEMBLY_NAME",
-                                "value": "${DOTNET_ASSEMBLY_NAME}"
-                            },
-                            {
-                                "name": "DOTNET_NPM_TOOLS",
-                                "value": "${DOTNET_NPM_TOOLS}"
-                            },
-                            {
-                                "name": "DOTNET_TEST_PROJECTS",
-                                "value": "${DOTNET_TEST_PROJECTS}"
-                            },
-                            {
-                                "name": "DOTNET_CONFIGURATION",
-                                "value": "${DOTNET_CONFIGURATION}"
-                            },
-                            {
-                                "name": "DOTNET_PUBLISH",
-                                "value": "true"
-                            },
-                            {
-                                "name": "DOTNET_RESTORE_SOURCES",
-                                "value": "${DOTNET_RESTORE_SOURCES}"
-                            }
-                        ]
-                    }
-                },
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "type": "GitHub",
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        }
-                    },
-                    {
-                        "type": "Generic",
-                        "generic": {
-                            "secret": "${GENERIC_WEBHOOK_SECRET}"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Defines how to deploy the application server"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Rolling"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "dotnet-app"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${NAME}",
-                        "labels": {
-                            "name": "${NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "name": "dotnet-app",
-                                "image": " ",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 40,
-                                    "timeoutSeconds": 15
-                                },
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 10,
-                                    "timeoutSeconds": 30
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "env": []
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "name": "NAME",
-            "displayName": "Name",
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "required": true,
-            "value": "dotnet-example"
-        },
-        {
-            "name": "MEMORY_LIMIT",
-            "displayName": "Memory Limit",
-            "description": "Maximum amount of memory the container can use.",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "name": "DOTNET_IMAGE_STREAM_TAG",
-            "displayName": ".NET builder",
-            "required": true,
-            "description": "The image stream tag which is used to build the code.",
-            "value": "dotnet:2.0"
-        },
-        {
-            "name": "NAMESPACE",
-            "displayName": "Namespace",
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "name": "SOURCE_REPOSITORY_URL",
-            "displayName": "Git Repository URL",
-            "description": "The URL of the repository with your application source code.",
-            "required": true,
-            "value": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git"
-        },
-        {
-            "name": "SOURCE_REPOSITORY_REF",
-            "displayName": "Git Reference",
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "value": "dotnetcore-2.0"
-        },
-        {
-            "name": "CONTEXT_DIR",
-            "displayName": "Context Directory",
-            "description": "Set this to use a subdirectory of the source code repository"
-        },
-        {
-            "name": "APPLICATION_DOMAIN",
-            "displayName": "Application Hostname",
-            "description": "The exposed hostname that will route to the .NET Core service, if left blank a value will be defaulted.",
-            "value": ""
-        },
-        {
-            "name": "GITHUB_WEBHOOK_SECRET",
-            "displayName": "GitHub Webhook Secret",
-            "description": "A secret string used to configure the GitHub webhook.",
-            "generate": "expression",
-            "from": "[a-zA-Z0-9]{40}"
-        },
-        {
-            "name": "GENERIC_WEBHOOK_SECRET",
-            "displayName": "Generic Webhook Secret",
-            "description": "A secret string used to configure the Generic webhook.",
-            "generate": "expression",
-            "from": "[a-zA-Z0-9]{40}"
-        },
-        {
-            "name": "DOTNET_SDK_VERSION",
-            "displayName": "SDK Version",
-            "description": "Set this to configure the default SDK version. This can be set to a specific version, '' (lowest version) or 'latest' (highest version).",
-            "value": ""
-        },
-        {
-            "name": "DOTNET_STARTUP_PROJECT",
-            "displayName": "Startup Project",
-            "description": "Set this to a project file (e.g. csproj) or a folder containing a single project file.",
-            "value": "app"
-        },
-        {
-            "name": "DOTNET_ASSEMBLY_NAME",
-            "displayName": "Startup Assembly",
-            "description": "Set this when the assembly name is overridden in the project file."
-        },
-        {
-            "name": "DOTNET_NPM_TOOLS",
-            "displayName": "Npm Tools",
-            "description": "Set this to a space separated list of npm tools needed to publish.",
-            "value": "bower gulp"
-        },
-        {
-            "name": "DOTNET_TEST_PROJECTS",
-            "displayName": "Test projects",
-            "description": "Set this to a space separated list of test projects to run before publishing."
-        },
-        {
-            "name": "DOTNET_CONFIGURATION",
-            "displayName": "Configuration",
-            "description": "Set this to configuration (Release/Debug).",
-            "value": "Release"
-        },
-        {
-            "name": "DOTNET_RESTORE_SOURCES",
-            "displayName": "NuGet package sources",
-            "description": "Set this to override the NuGet.config sources."
-        }
-    ]
-}

+ 0 - 575
roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet-pgsql-persistent.json

@@ -1,575 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "dotnet-pgsql-persistent",
-        "annotations": {
-            "openshift.io/display-name": ".NET Core + PostgreSQL (Persistent)",
-            "description": "An example .NET Core application with a PostgreSQL database. For more information about using this template, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore.",
-            "tags": "quickstart,dotnet",
-            "iconClass": "icon-dotnet",
-            "template.openshift.io/provider-display-name": "Red Hat, Inc.",
-            "template.openshift.io/documentation-url": "https://github.com/redhat-developer/s2i-dotnetcore",
-            "template.openshift.io/support-url": "https://access.redhat.com"
-        }
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/redhat-developer/s2i-dotnetcore.",
-    "labels": {
-        "template": "dotnet-pgsql-persistent"
-    },
-    "objects": [
-        {
-            "kind": "Secret",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "database-password": "${DATABASE_PASSWORD}",
-                "connect-string": "Host=${DATABASE_SERVICE_NAME};Database=${DATABASE_NAME};Username=${DATABASE_USER};Password=${DATABASE_PASSWORD}"
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                }
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                }
-            }
-        },
-        {
-            "kind": "BuildConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Defines how to build the application"
-                }
-            },
-            "spec": {
-                "source": {
-                    "type": "Git",
-                    "git": {
-                        "uri": "${SOURCE_REPOSITORY_URL}",
-                        "ref": "${SOURCE_REPOSITORY_REF}"
-                    },
-                    "contextDir": "${CONTEXT_DIR}"
-                },
-                "strategy": {
-                    "type": "Source",
-                    "sourceStrategy": {
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "namespace": "${NAMESPACE}",
-                            "name": "${DOTNET_IMAGE_STREAM_TAG}"
-                        },
-                        "env": [
-                            {
-                                "name": "DOTNET_STARTUP_PROJECT",
-                                "value": "${DOTNET_STARTUP_PROJECT}"
-                            },
-                            {
-                                "name": "DOTNET_SDK_VERSION",
-                                "value": "${DOTNET_SDK_VERSION}"
-                            },
-                            {
-                                "name": "DOTNET_ASSEMBLY_NAME",
-                                "value": "${DOTNET_ASSEMBLY_NAME}"
-                            },
-                            {
-                                "name": "DOTNET_NPM_TOOLS",
-                                "value": "${DOTNET_NPM_TOOLS}"
-                            },
-                            {
-                                "name": "DOTNET_TEST_PROJECTS",
-                                "value": "${DOTNET_TEST_PROJECTS}"
-                            },
-                            {
-                                "name": "DOTNET_CONFIGURATION",
-                                "value": "${DOTNET_CONFIGURATION}"
-                            },
-                            {
-                                "name": "DOTNET_PUBLISH",
-                                "value": "true"
-                            },
-                            {
-                                "name": "DOTNET_RESTORE_SOURCES",
-                                "value": "${DOTNET_RESTORE_SOURCES}"
-                            }
-                        ]
-                    }
-                },
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "type": "GitHub",
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        }
-                    }
-                ],
-                "postCommit": {}
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Defines how to deploy the application server"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Rolling",
-                    "rollingParams": {
-                        "updatePeriodSeconds": 1,
-                        "intervalSeconds": 1,
-                        "timeoutSeconds": 600,
-                        "maxUnavailable": "25%",
-                        "maxSurge": "25%"
-                    },
-                    "resources": {}
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "dotnet-pgsql-persistent"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${NAME}",
-                        "labels": {
-                            "name": "${NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "name": "dotnet-pgsql-persistent",
-                                "image": " ",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "ConnectionString",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "name": "${NAME}",
-                                                "key": "connect-string"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 40,
-                                    "timeoutSeconds": 10
-                                },
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 10,
-                                    "timeoutSeconds": 30
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "kind": "PersistentVolumeClaim",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}",
-                "annotations": {
-                    "description": "Exposes the database server"
-                }
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "postgresql",
-                        "port": 5432,
-                        "targetPort": 5432
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}",
-                "annotations": {
-                    "description": "Defines how to deploy the database"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "postgresql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "openshift",
-                                "name": "postgresql:9.5"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${DATABASE_SERVICE_NAME}",
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ],
-                        "containers": [
-                            {
-                                "name": "postgresql",
-                                "image": " ",
-                                "ports": [
-                                    {
-                                        "containerPort": 5432
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "timeoutSeconds": 1,
-                                    "initialDelaySeconds": 5,
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "psql -h 127.0.0.1 -U ${POSTGRESQL_USER} -q -d ${POSTGRESQL_DATABASE} -c 'SELECT 1'"
-                                        ]
-                                    }
-                                },
-                                "livenessProbe": {
-                                    "timeoutSeconds": 1,
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 5432
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "name": "${DATABASE_SERVICE_NAME}-data",
-                                        "mountPath": "/var/lib/pgsql/data"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "value": "${DATABASE_USER}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "name": "${NAME}",
-                                                "key": "database-password"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_MAX_CONNECTIONS",
-                                        "value": "${POSTGRESQL_MAX_CONNECTIONS}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_SHARED_BUFFERS",
-                                        "value": "${POSTGRESQL_SHARED_BUFFERS}"
-                                    }
-                                ],
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_POSTGRESQL_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "name": "NAME",
-            "displayName": "Name",
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "required": true,
-            "value": "musicstore"
-        },
-        {
-            "name": "MEMORY_LIMIT",
-            "displayName": "Memory Limit",
-            "required": true,
-            "description": "Maximum amount of memory the .NET Core container can use.",
-            "value": "512Mi"
-        },
-        {
-            "name": "MEMORY_POSTGRESQL_LIMIT",
-            "displayName": "Memory Limit (PostgreSQL)",
-            "required": true,
-            "description": "Maximum amount of memory the PostgreSQL container can use.",
-            "value": "512Mi"
-        },
-        {
-            "name": "VOLUME_CAPACITY",
-            "displayName": "Volume Capacity",
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi",
-            "value": "1Gi",
-            "required": true
-        },
-        {
-            "name": "DOTNET_IMAGE_STREAM_TAG",
-            "displayName": ".NET builder",
-            "required": true,
-            "description": "The image stream tag which is used to build the code.",
-            "value": "dotnet:2.0"
-        },
-        {
-            "name": "NAMESPACE",
-            "displayName": "Namespace",
-            "required": true,
-            "description": "The OpenShift Namespace where the .NET builder ImageStream resides.",
-            "value": "openshift"
-        },
-        {
-            "name": "SOURCE_REPOSITORY_URL",
-            "displayName": "Git Repository URL",
-            "required": true,
-            "description": "The URL of the repository with your application source code.",
-            "value": "https://github.com/redhat-developer/s2i-aspnet-musicstore-ex.git"
-        },
-        {
-            "name": "SOURCE_REPOSITORY_REF",
-            "displayName": "Git Reference",
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "value": "rel/2.0-example"
-        },
-        {
-            "name": "CONTEXT_DIR",
-            "displayName": "Context Directory",
-            "description": "Set this to the relative path to your project if it is not in the root of your repository."
-        },
-        {
-            "name": "DOTNET_STARTUP_PROJECT",
-            "displayName": "Startup Project",
-            "description": "Set this to a project file (e.g. csproj) or a folder containing a single project file.",
-            "value": "samples/MusicStore"
-        },
-        {
-            "name": "DOTNET_SDK_VERSION",
-            "displayName": "SDK Version",
-            "description": "Set this to configure the default SDK version. This can be set to a specific version, '' (lowest version) or 'latest' (highest version).",
-            "value": ""
-        },
-        {
-            "name": "DOTNET_ASSEMBLY_NAME",
-            "displayName": "Startup Assembly",
-            "description": "Set this when the assembly name is overridden in the project file."
-        },
-        {
-            "name": "DOTNET_NPM_TOOLS",
-            "displayName": "Npm Tools",
-            "description": "Set this to a space separated list of npm tools needed to publish."
-        },
-        {
-            "name": "DOTNET_TEST_PROJECTS",
-            "displayName": "Test projects",
-            "description": "Set this to a space separated list of test projects to run before publishing."
-        },
-        {
-            "name": "DOTNET_CONFIGURATION",
-            "displayName": "Configuration",
-            "description": "Set this to configuration (Release/Debug).",
-            "value": "Release"
-        },
-        {
-            "name": "DOTNET_RESTORE_SOURCES",
-            "displayName": "NuGet package sources",
-            "description": "Set this to override the NuGet.config sources."
-        },
-        {
-            "name": "APPLICATION_DOMAIN",
-            "displayName": "Application Hostname",
-            "description": "The exposed hostname that will route to the .NET Core service, if left blank a value will be defaulted.",
-            "value": ""
-        },
-        {
-            "name": "GITHUB_WEBHOOK_SECRET",
-            "displayName": "GitHub Webhook Secret",
-            "description": "A secret string used to configure the GitHub webhook.",
-            "generate": "expression",
-            "from": "[a-zA-Z0-9]{40}"
-        },
-        {
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "displayName": "Database Service Name",
-            "value": "postgresql"
-        },
-        {
-            "name": "DATABASE_USER",
-            "displayName": "Database Username",
-            "generate": "expression",
-            "from": "user[A-Z0-9]{3}"
-        },
-        {
-            "name": "DATABASE_PASSWORD",
-            "displayName": "Database Password",
-            "generate": "expression",
-            "from": "[a-zA-Z0-9]{8}"
-        },
-        {
-            "name": "DATABASE_NAME",
-            "required": true,
-            "displayName": "Database Name",
-            "value": "musicstore"
-        },
-        {
-            "name": "POSTGRESQL_MAX_CONNECTIONS",
-            "displayName": "Maximum Database Connections",
-            "value": "100"
-        },
-        {
-            "name": "POSTGRESQL_SHARED_BUFFERS",
-            "displayName": "Shared Buffer Amount",
-            "value": "12MB"
-        }
-    ]
-}

+ 0 - 422
roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet-runtime-example.json

@@ -1,422 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "dotnet-runtime-example",
-        "annotations": {
-            "openshift.io/display-name": ".NET Core Runtime Example",
-            "description": "An example .NET Core Runtime example application.",
-            "tags": "quickstart,dotnet,.net",
-            "iconClass": "icon-dotnet",
-            "template.openshift.io/provider-display-name": "Red Hat, Inc.",
-            "template.openshift.io/documentation-url": "https://github.com/redhat-developer/s2i-dotnetcore",
-            "template.openshift.io/support-url": "https://access.redhat.com"
-        }
-    },
-    "objects": [
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Exposes and load balances the application pods"
-                }
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}",
-                "annotations": {
-                    "description": "Keeps track of changes in the application runtime image"
-                }
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}-build",
-                "annotations": {
-                    "description": "Keeps track of changes in the application builder image"
-                }
-            }
-        },
-        {
-            "kind": "BuildConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}-build",
-                "annotations": {
-                    "description": "Defines how to build the application"
-                }
-            },
-            "spec": {
-                "source": {
-                    "type": "Git",
-                    "git": {
-                        "uri": "${SOURCE_REPOSITORY_URL}",
-                        "ref": "${SOURCE_REPOSITORY_REF}"
-                    },
-                    "contextDir": "${CONTEXT_DIR}"
-                },
-                "strategy": {
-                    "type": "Source",
-                    "sourceStrategy": {
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "namespace": "${NAMESPACE}",
-                            "name": "${DOTNET_BUILD_IMAGE_STREAM_TAG}"
-                        },
-                        "env": [
-                            {
-                                "name": "DOTNET_STARTUP_PROJECT",
-                                "value": "${DOTNET_STARTUP_PROJECT}"
-                            },
-                            {
-                                "name": "DOTNET_SDK_VERSION",
-                                "value": "${DOTNET_SDK_VERSION}"
-                            },
-                            {
-                                "name": "DOTNET_ASSEMBLY_NAME",
-                                "value": "${DOTNET_ASSEMBLY_NAME}"
-                            },
-                            {
-                                "name": "DOTNET_NPM_TOOLS",
-                                "value": "${DOTNET_NPM_TOOLS}"
-                            },
-                            {
-                                "name": "DOTNET_TEST_PROJECTS",
-                                "value": "${DOTNET_TEST_PROJECTS}"
-                            },
-                            {
-                                "name": "DOTNET_CONFIGURATION",
-                                "value": "${DOTNET_CONFIGURATION}"
-                            },
-                            {
-                                "name": "DOTNET_RESTORE_SOURCES",
-                                "value": "${DOTNET_RESTORE_SOURCES}"
-                            },
-                            {
-                                "name": "DOTNET_PACK",
-                                "value": "true"
-                            }
-                        ]
-                    }
-                },
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}-build:latest"
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "type": "GitHub",
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        }
-                    },
-                    {
-                        "type": "Generic",
-                        "generic": {
-                            "secret": "${GENERIC_WEBHOOK_SECRET}"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "BuildConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}-runtime",
-                "annotations": {
-                    "description": "Defines how to chain the runtime image from the source build image"
-                }
-            },
-            "spec": {
-                "source": {
-                    "dockerfile": "FROM ${DOTNET_RUNTIME_IMAGE_STREAM_TAG}\nADD app.tar.gz .",
-                    "images": [
-                        {
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}-build:latest"
-                            },
-                            "paths": [
-                                {
-                                    "sourcePath": "/opt/app-root/app.tar.gz",
-                                    "destinationDir": "."
-                                }
-                            ]
-                        }
-                    ]
-                },
-                "strategy": {
-                    "type": "Docker",
-                    "dockerStrategy": {
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "namespace": "${NAMESPACE}",
-                            "name": "${DOTNET_RUNTIME_IMAGE_STREAM_TAG}"
-                        }
-                    }
-                },
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "type": "ImageChange",
-                        "imageChange": {
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}-build:latest"
-                            }
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${NAME}-runtime",
-                "annotations": {
-                    "description": "Defines how to deploy the application server"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Rolling"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "dotnet-runtime-app"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${NAME}",
-                        "labels": {
-                            "name": "${NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "name": "dotnet-runtime-app",
-                                "image": " ",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 40,
-                                    "timeoutSeconds": 15
-                                },
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 10,
-                                    "timeoutSeconds": 30
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "env": []
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "name": "NAME",
-            "displayName": "Name",
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "required": true,
-            "value": "dotnet-runtime-example"
-        },
-        {
-            "name": "MEMORY_LIMIT",
-            "displayName": "Memory Limit",
-            "description": "Maximum amount of memory the container can use.",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "name": "DOTNET_RUNTIME_IMAGE_STREAM_TAG",
-            "displayName": ".NET Runtime Imagestream Tag",
-            "description": "The image stream tag which is used to run the application.",
-            "required": true,
-            "value": "dotnet-runtime:2.0"
-        },
-        {
-            "name": "DOTNET_BUILD_IMAGE_STREAM_TAG",
-            "displayName": ".NET builder",
-            "required": true,
-            "description": "The image stream tag which is used to build the application.",
-            "value": "dotnet:2.0"
-        },
-        {
-            "name": "NAMESPACE",
-            "displayName": "Namespace",
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "name": "APPLICATION_DOMAIN",
-            "displayName": "Application Hostname",
-            "description": "The exposed hostname that will route to the .NET Core service, if left blank a value will be defaulted.",
-            "value": ""
-        },
-        {
-            "name": "SOURCE_REPOSITORY_URL",
-            "displayName": "Git Repository URL",
-            "description": "The URL of the repository with your application source code.",
-            "required": true,
-            "value": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git"
-        },
-        {
-            "name": "SOURCE_REPOSITORY_REF",
-            "displayName": "Git Reference",
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "value": "dotnetcore-2.0"
-        },
-        {
-            "name": "CONTEXT_DIR",
-            "displayName": "Context Directory",
-            "description": "Set this to use a subdirectory of the source code repository"
-        },
-        {
-            "name": "GITHUB_WEBHOOK_SECRET",
-            "displayName": "GitHub Webhook Secret",
-            "description": "A secret string used to configure the GitHub webhook.",
-            "generate": "expression",
-            "from": "[a-zA-Z0-9]{40}"
-        },
-        {
-            "name": "GENERIC_WEBHOOK_SECRET",
-            "displayName": "Generic Webhook Secret",
-            "description": "A secret string used to configure the Generic webhook.",
-            "generate": "expression",
-            "from": "[a-zA-Z0-9]{40}"
-        },
-        {
-            "name": "DOTNET_STARTUP_PROJECT",
-            "displayName": "Startup Project",
-            "description": "Set this to the folder containing your startup project.",
-            "value": "app"
-        },
-        {
-            "name": "DOTNET_SDK_VERSION",
-            "displayName": "SDK Version",
-            "description": "Set this to configure the default SDK version. This can be set to a specific version, '' (lowest version) or 'latest' (highest version).",
-            "value": ""
-        },
-        {
-            "name": "DOTNET_ASSEMBLY_NAME",
-            "displayName": "Startup Assembly",
-            "description": "Set this when the assembly name is overridden in the project file."
-        },
-        {
-            "name": "DOTNET_NPM_TOOLS",
-            "displayName": "Npm Tools",
-            "description": "Set this to a space separated list of npm tools needed to publish.",
-            "value": "bower gulp"
-        },
-        {
-            "name": "DOTNET_TEST_PROJECTS",
-            "displayName": "Test projects",
-            "description": "Set this to a space separated list of test projects to run before publishing."
-        },
-        {
-            "name": "DOTNET_CONFIGURATION",
-            "displayName": "Configuration",
-            "description": "Set this to configuration (Release/Debug).",
-            "value": "Release"
-        },
-        {
-            "name": "DOTNET_RESTORE_SOURCES",
-            "displayName": "NuGet package sources",
-            "description": "Set this to override the NuGet.config sources."
-        }
-    ]
-}

+ 0 - 343
roles/openshift_examples/files/examples/v3.10/quickstart-templates/dotnet.json

@@ -1,343 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "metadata": {
-        "annotations": {
-            "description": "An example .NET Core application.",
-            "iconClass": "icon-dotnet",
-            "openshift.io/display-name": ".NET Core Example",
-            "tags": "quickstart,dotnet,.net",
-            "template.openshift.io/documentation-url": "https://github.com/redhat-developer/s2i-dotnetcore",
-            "template.openshift.io/provider-display-name": "Red Hat, Inc.",
-            "template.openshift.io/support-url": "https://access.redhat.com"
-        },
-        "name": "dotnet-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "DOTNET_STARTUP_PROJECT",
-                                "value": "${DOTNET_STARTUP_PROJECT}"
-                            },
-                            {
-                                "name": "DOTNET_SDK_VERSION",
-                                "value": "${DOTNET_SDK_VERSION}"
-                            },
-                            {
-                                "name": "DOTNET_ASSEMBLY_NAME",
-                                "value": "${DOTNET_ASSEMBLY_NAME}"
-                            },
-                            {
-                                "name": "DOTNET_NPM_TOOLS",
-                                "value": "${DOTNET_NPM_TOOLS}"
-                            },
-                            {
-                                "name": "DOTNET_TEST_PROJECTS",
-                                "value": "${DOTNET_TEST_PROJECTS}"
-                            },
-                            {
-                                "name": "DOTNET_CONFIGURATION",
-                                "value": "${DOTNET_CONFIGURATION}"
-                            },
-                            {
-                                "name": "DOTNET_PUBLISH",
-                                "value": "true"
-                            },
-                            {
-                                "name": "DOTNET_RESTORE_SOURCES",
-                                "value": "${DOTNET_RESTORE_SOURCES}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "${DOTNET_IMAGE_STREAM_TAG}",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    },
-                    {
-                        "generic": {
-                            "secret": "${GENERIC_WEBHOOK_SECRET}"
-                        },
-                        "type": "Generic"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Rolling"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 40,
-                                    "timeoutSeconds": 15
-                                },
-                                "name": "dotnet-app",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080,
-                                        "scheme": "HTTP"
-                                    },
-                                    "initialDelaySeconds": 10,
-                                    "timeoutSeconds": 30
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "dotnet-app"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "dotnet-example"
-        },
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The image stream tag which is used to build the code.",
-            "displayName": ".NET builder",
-            "name": "DOTNET_IMAGE_STREAM_TAG",
-            "required": true,
-            "value": "dotnet:2.0"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/redhat-developer/s2i-dotnetcore-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF",
-            "value": "dotnetcore-2.0"
-        },
-        {
-            "description": "Set this to use a subdirectory of the source code repository",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the .NET Core service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "A secret string used to configure the GitHub webhook.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "description": "A secret string used to configure the Generic webhook.",
-            "displayName": "Generic Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GENERIC_WEBHOOK_SECRET"
-        },
-        {
-            "description": "Set this to configure the default SDK version. This can be set to a specific version, '' (lowest version) or 'latest' (highest version).",
-            "displayName": "SDK Version",
-            "name": "DOTNET_SDK_VERSION",
-            "value": ""
-        },
-        {
-            "description": "Set this to a project file (e.g. csproj) or a folder containing a single project file.",
-            "displayName": "Startup Project",
-            "name": "DOTNET_STARTUP_PROJECT",
-            "value": "app"
-        },
-        {
-            "description": "Set this when the assembly name is overridden in the project file.",
-            "displayName": "Startup Assembly",
-            "name": "DOTNET_ASSEMBLY_NAME"
-        },
-        {
-            "description": "Set this to a space separated list of npm tools needed to publish.",
-            "displayName": "Npm Tools",
-            "name": "DOTNET_NPM_TOOLS",
-            "value": "bower gulp"
-        },
-        {
-            "description": "Set this to a space separated list of test projects to run before publishing.",
-            "displayName": "Test projects",
-            "name": "DOTNET_TEST_PROJECTS"
-        },
-        {
-            "description": "Set this to configuration (Release/Debug).",
-            "displayName": "Configuration",
-            "name": "DOTNET_CONFIGURATION",
-            "value": "Release"
-        },
-        {
-            "description": "Set this to override the NuGet.config sources.",
-            "displayName": "NuGet package sources",
-            "name": "DOTNET_RESTORE_SOURCES"
-        }
-    ]
-}

+ 0 - 269
roles/openshift_examples/files/examples/v3.10/quickstart-templates/httpd.json

@@ -1,269 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "httpd-example",
-        "template": "httpd-example"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/httpd-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Apache HTTP Server (httpd) application that serves static content. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/httpd-ex/blob/master/README.md.",
-            "iconClass": "icon-apache",
-            "openshift.io/display-name": "Apache HTTP Server",
-            "openshift.io/documentation-url": "https://github.com/openshift/httpd-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a static application served by Apache HTTP Server (httpd), including a build configuration and application deployment configuration.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,httpd",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "httpd-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "httpd:2.4",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    },
-                    {
-                        "generic": {
-                            "secret": "${GENERIC_WEBHOOK_SECRET}"
-                        },
-                        "type": "Generic"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Rolling"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "httpd-example",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "httpd-example"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "httpd-example"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/httpd-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the httpd service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "description": "A secret string used to configure the Generic webhook.",
-            "displayName": "Generic Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GENERIC_WEBHOOK_SECRET"
-        }
-    ]
-}

+ 0 - 297
roles/openshift_examples/files/examples/v3.10/quickstart-templates/jenkins-ephemeral-template.json

@@ -1,297 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "jenkins-ephemeral",
-        "template": "jenkins-ephemeral-template"
-    },
-    "message": "A Jenkins service has been created in your project.  Log into Jenkins with your OpenShift account.  The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template.",
-    "metadata": {
-        "annotations": {
-            "description": "Jenkins service, without persistent storage.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing.",
-            "iconClass": "icon-jenkins",
-            "openshift.io/display-name": "Jenkins (Ephemeral)",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/other_images/jenkins.html",
-            "openshift.io/long-description": "This template deploys a Jenkins server capable of managing OpenShift Pipeline builds and supporting OpenShift-based oauth login.  The Jenkins configuration is stored in non-persistent storage, so this configuration should be used for experimental purposes only.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "instant-app,jenkins"
-        },
-        "name": "jenkins-ephemeral"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "annotations": {
-                    "haproxy.router.openshift.io/timeout": "4m",
-                    "template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            },
-            "spec": {
-                "tls": {
-                    "insecureEdgeTerminationPolicy": "Redirect",
-                    "termination": "edge"
-                },
-                "to": {
-                    "kind": "Service",
-                    "name": "${JENKINS_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${JENKINS_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${JENKINS_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "OPENSHIFT_ENABLE_OAUTH",
-                                        "value": "${ENABLE_OAUTH}"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_ENABLE_REDIRECT_PROMPT",
-                                        "value": "true"
-                                    },
-                                    {
-                                        "name": "DISABLE_ADMINISTRATIVE_MONITORS",
-                                        "value": "${DISABLE_ADMINISTRATIVE_MONITORS}"
-                                    },
-                                    {
-                                        "name": "KUBERNETES_MASTER",
-                                        "value": "https://kubernetes.default:443"
-                                    },
-                                    {
-                                        "name": "KUBERNETES_TRUST_CERTIFICATES",
-                                        "value": "true"
-                                    },
-                                    {
-                                        "name": "JENKINS_SERVICE_NAME",
-                                        "value": "${JENKINS_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "JNLP_SERVICE_NAME",
-                                        "value": "${JNLP_SERVICE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "failureThreshold": 2,
-                                    "httpGet": {
-                                        "path": "/login",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 420,
-                                    "periodSeconds": 360,
-                                    "timeoutSeconds": 240
-                                },
-                                "name": "jenkins",
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/login",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 240
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/jenkins",
-                                        "name": "${JENKINS_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "serviceAccountName": "${JENKINS_SERVICE_NAME}",
-                        "volumes": [
-                            {
-                                "emptyDir": {
-                                    "medium": ""
-                                },
-                                "name": "${JENKINS_SERVICE_NAME}-data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "jenkins"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${JENKINS_IMAGE_STREAM_TAG}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ServiceAccount",
-            "metadata": {
-                "annotations": {
-                    "serviceaccounts.openshift.io/oauth-redirectreference.jenkins": "{\"kind\":\"OAuthRedirectReference\",\"apiVersion\":\"v1\",\"reference\":{\"kind\":\"Route\",\"name\":\"${JENKINS_SERVICE_NAME}\"}}"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "groupNames": null,
-            "kind": "RoleBinding",
-            "metadata": {
-                "name": "${JENKINS_SERVICE_NAME}_edit"
-            },
-            "roleRef": {
-                "name": "edit"
-            },
-            "subjects": [
-                {
-                    "kind": "ServiceAccount",
-                    "name": "${JENKINS_SERVICE_NAME}"
-                }
-            ]
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "name": "${JNLP_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "agent",
-                        "nodePort": 0,
-                        "port": 50000,
-                        "protocol": "TCP",
-                        "targetPort": 50000
-                    }
-                ],
-                "selector": {
-                    "name": "${JENKINS_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${JNLP_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]",
-                    "service.openshift.io/infrastructure": "true"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "nodePort": 0,
-                        "port": 80,
-                        "protocol": "TCP",
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${JENKINS_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name of the OpenShift Service exposed for the Jenkins container.",
-            "displayName": "Jenkins Service Name",
-            "name": "JENKINS_SERVICE_NAME",
-            "value": "jenkins"
-        },
-        {
-            "description": "The name of the service used for master/slave communication.",
-            "displayName": "Jenkins JNLP Service Name",
-            "name": "JNLP_SERVICE_NAME",
-            "value": "jenkins-jnlp"
-        },
-        {
-            "description": "Whether to enable OAuth OpenShift integration. If false, the static account 'admin' will be initialized with the password 'password'.",
-            "displayName": "Enable OAuth in Jenkins",
-            "name": "ENABLE_OAUTH",
-            "value": "true"
-        },
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "value": "512Mi"
-        },
-        {
-            "description": "The OpenShift Namespace where the Jenkins ImageStream resides.",
-            "displayName": "Jenkins ImageStream Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "Whether to perform memory intensive, possibly slow, synchronization with the Jenkins Update Center on start.  If true, the Jenkins core update monitor and site warnings monitor are disabled.",
-            "displayName": "Disable memory intensive administrative monitors",
-            "name": "DISABLE_ADMINISTRATIVE_MONITORS",
-            "value": "false"
-        },
-        {
-            "description": "Name of the ImageStreamTag to be used for the Jenkins image.",
-            "displayName": "Jenkins ImageStreamTag",
-            "name": "JENKINS_IMAGE_STREAM_TAG",
-            "value": "jenkins:2"
-        }
-    ]
-}

+ 0 - 321
roles/openshift_examples/files/examples/v3.10/quickstart-templates/jenkins-persistent-template.json

@@ -1,321 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "jenkins-persistent",
-        "template": "jenkins-persistent-template"
-    },
-    "message": "A Jenkins service has been created in your project.  Log into Jenkins with your OpenShift account.  The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md contains more information about using this template.",
-    "metadata": {
-        "annotations": {
-            "description": "Jenkins service, with persistent storage.\n\nNOTE: You must have persistent volumes available in your cluster to use this template.",
-            "iconClass": "icon-jenkins",
-            "openshift.io/display-name": "Jenkins",
-            "openshift.io/documentation-url": "https://docs.openshift.org/latest/using_images/other_images/jenkins.html",
-            "openshift.io/long-description": "This template deploys a Jenkins server capable of managing OpenShift Pipeline builds and supporting OpenShift-based oauth login.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "instant-app,jenkins"
-        },
-        "name": "jenkins-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "annotations": {
-                    "haproxy.router.openshift.io/timeout": "4m",
-                    "template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            },
-            "spec": {
-                "tls": {
-                    "insecureEdgeTerminationPolicy": "Redirect",
-                    "termination": "edge"
-                },
-                "to": {
-                    "kind": "Service",
-                    "name": "${JENKINS_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${JENKINS_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${JENKINS_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${JENKINS_SERVICE_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "capabilities": {},
-                                "env": [
-                                    {
-                                        "name": "OPENSHIFT_ENABLE_OAUTH",
-                                        "value": "${ENABLE_OAUTH}"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_ENABLE_REDIRECT_PROMPT",
-                                        "value": "true"
-                                    },
-                                    {
-                                        "name": "DISABLE_ADMINISTRATIVE_MONITORS",
-                                        "value": "${DISABLE_ADMINISTRATIVE_MONITORS}"
-                                    },
-                                    {
-                                        "name": "KUBERNETES_MASTER",
-                                        "value": "https://kubernetes.default:443"
-                                    },
-                                    {
-                                        "name": "KUBERNETES_TRUST_CERTIFICATES",
-                                        "value": "true"
-                                    },
-                                    {
-                                        "name": "JENKINS_SERVICE_NAME",
-                                        "value": "${JENKINS_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "JNLP_SERVICE_NAME",
-                                        "value": "${JNLP_SERVICE_NAME}"
-                                    }
-                                ],
-                                "image": " ",
-                                "imagePullPolicy": "IfNotPresent",
-                                "livenessProbe": {
-                                    "failureThreshold": 2,
-                                    "httpGet": {
-                                        "path": "/login",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 420,
-                                    "periodSeconds": 360,
-                                    "timeoutSeconds": 240
-                                },
-                                "name": "jenkins",
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/login",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 240
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "securityContext": {
-                                    "capabilities": {},
-                                    "privileged": false
-                                },
-                                "terminationMessagePath": "/dev/termination-log",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/jenkins",
-                                        "name": "${JENKINS_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "dnsPolicy": "ClusterFirst",
-                        "restartPolicy": "Always",
-                        "serviceAccountName": "${JENKINS_SERVICE_NAME}",
-                        "volumes": [
-                            {
-                                "name": "${JENKINS_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${JENKINS_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "jenkins"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${JENKINS_IMAGE_STREAM_TAG}",
-                                "namespace": "${NAMESPACE}"
-                            },
-                            "lastTriggeredImage": ""
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ServiceAccount",
-            "metadata": {
-                "annotations": {
-                    "serviceaccounts.openshift.io/oauth-redirectreference.jenkins": "{\"kind\":\"OAuthRedirectReference\",\"apiVersion\":\"v1\",\"reference\":{\"kind\":\"Route\",\"name\":\"${JENKINS_SERVICE_NAME}\"}}"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "groupNames": null,
-            "kind": "RoleBinding",
-            "metadata": {
-                "name": "${JENKINS_SERVICE_NAME}_edit"
-            },
-            "roleRef": {
-                "name": "edit"
-            },
-            "subjects": [
-                {
-                    "kind": "ServiceAccount",
-                    "name": "${JENKINS_SERVICE_NAME}"
-                }
-            ]
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "name": "${JNLP_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "agent",
-                        "nodePort": 0,
-                        "port": 50000,
-                        "protocol": "TCP",
-                        "targetPort": 50000
-                    }
-                ],
-                "selector": {
-                    "name": "${JENKINS_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${JNLP_SERVICE_NAME}\", \"namespace\": \"\", \"kind\": \"Service\"}]",
-                    "service.openshift.io/infrastructure": "true"
-                },
-                "name": "${JENKINS_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "nodePort": 0,
-                        "port": 80,
-                        "protocol": "TCP",
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${JENKINS_SERVICE_NAME}"
-                },
-                "sessionAffinity": "None",
-                "type": "ClusterIP"
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name of the OpenShift Service exposed for the Jenkins container.",
-            "displayName": "Jenkins Service Name",
-            "name": "JENKINS_SERVICE_NAME",
-            "value": "jenkins"
-        },
-        {
-            "description": "The name of the service used for master/slave communication.",
-            "displayName": "Jenkins JNLP Service Name",
-            "name": "JNLP_SERVICE_NAME",
-            "value": "jenkins-jnlp"
-        },
-        {
-            "description": "Whether to enable OAuth OpenShift integration. If false, the static account 'admin' will be initialized with the password 'password'.",
-            "displayName": "Enable OAuth in Jenkins",
-            "name": "ENABLE_OAUTH",
-            "value": "true"
-        },
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "value": "512Mi"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi.",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "The OpenShift Namespace where the Jenkins ImageStream resides.",
-            "displayName": "Jenkins ImageStream Namespace",
-            "name": "NAMESPACE",
-            "value": "openshift"
-        },
-        {
-            "description": "Whether to perform memory intensive, possibly slow, synchronization with the Jenkins Update Center on start.  If true, the Jenkins core update monitor and site warnings monitor are disabled.",
-            "displayName": "Disable memory intensive administrative monitors",
-            "name": "DISABLE_ADMINISTRATIVE_MONITORS",
-            "value": "false"
-        },
-        {
-            "description": "Name of the ImageStreamTag to be used for the Jenkins image.",
-            "displayName": "Jenkins ImageStreamTag",
-            "name": "JENKINS_IMAGE_STREAM_TAG",
-            "value": "jenkins:2"
-        }
-    ]
-}

+ 0 - 277
roles/openshift_examples/files/examples/v3.10/quickstart-templates/nginx.json

@@ -1,277 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "nginx-example"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/sclorg/nginx-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Nginx HTTP server and a reverse proxy (nginx) application that serves static content. For more information about using this template, including OpenShift considerations, see https://github.com/sclorg/nginx-ex/blob/master/README.md.",
-            "iconClass": "icon-nginx",
-            "openshift.io/display-name": "Nginx HTTP server and a reverse proxy",
-            "openshift.io/documentation-url": "https://github.com/sclorg/nginx-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a static application served by Nginx HTTP server and a reverse proxy (nginx), including a build configuration and application deployment configuration.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,nginx"
-        },
-        "name": "nginx-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "annotations": {
-                    "template.openshift.io/expose-uri": "http://{.spec.host}{.spec.path}"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "nginx:${NGINX_VERSION}",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    },
-                    {
-                        "generic": {
-                            "secret": "${GENERIC_WEBHOOK_SECRET}"
-                        },
-                        "type": "Generic"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Rolling"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "nginx-example",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "nginx-example"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "nginx-example"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Version of NGINX image to be used (1.12 by default).",
-            "displayName": "NGINX Version",
-            "name": "NGINX_VERSION",
-            "required": true,
-            "value": "1.12"
-        },
-        {
-            "description": "Maximum amount of memory the container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/sclorg/nginx-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the nginx service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "description": "A secret string used to configure the Generic webhook.",
-            "displayName": "Generic Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GENERIC_WEBHOOK_SECRET"
-        }
-    ]
-}

+ 0 - 549
roles/openshift_examples/files/examples/v3.10/quickstart-templates/nodejs-mongodb-persistent.json

@@ -1,549 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "template": "nodejs-mongo-persistent"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/nodejs-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Node.js application with a MongoDB database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/nodejs-ex/blob/master/README.md.",
-            "iconClass": "icon-nodejs",
-            "openshift.io/display-name": "Node.js + MongoDB",
-            "openshift.io/documentation-url": "https://github.com/openshift/nodejs-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a NodeJS application, including a build configuration, application deployment configuration, and database deployment configuration.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,nodejs",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "nodejs-mongo-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "database-admin-password": "${DATABASE_ADMIN_PASSWORD}",
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "npm test"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "NPM_MIRROR",
-                                "value": "${NPM_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "nodejs:6",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    },
-                    {
-                        "generic": {
-                            "secret": "${GENERIC_WEBHOOK_SECRET}"
-                        },
-                        "type": "Generic"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "MONGODB_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "MONGODB_ADMIN_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-admin-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/pagecount",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "nodejs-mongo-persistent",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/pagecount",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "nodejs-mongo-persistent"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mongodb",
-                        "port": 27017,
-                        "targetPort": 27017
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MONGODB_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "MONGODB_ADMIN_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-admin-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 27017
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mongodb",
-                                "ports": [
-                                    {
-                                        "containerPort": 27017
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_MONGODB_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mongodb/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mongodb"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mongodb:3.2",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "nodejs-mongo-persistent"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Node.js container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the MongoDB container can use.",
-            "displayName": "Memory Limit (MongoDB)",
-            "name": "MEMORY_MONGODB_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/nodejs-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Node.js service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "description": "A secret string used to configure the Generic webhook.",
-            "displayName": "Generic Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GENERIC_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mongodb"
-        },
-        {
-            "description": "Username for MongoDB user that will be used for accessing the database.",
-            "displayName": "MongoDB Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "DATABASE_USER"
-        },
-        {
-            "description": "Password for the MongoDB user.",
-            "displayName": "MongoDB Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Password for the database admin user.",
-            "displayName": "Database Administrator Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_ADMIN_PASSWORD"
-        },
-        {
-            "description": "The custom NPM mirror URL",
-            "displayName": "Custom NPM Mirror URL",
-            "name": "NPM_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 526
roles/openshift_examples/files/examples/v3.10/quickstart-templates/nodejs-mongodb.json

@@ -1,526 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "nodejs-mongodb-example",
-        "template": "nodejs-mongodb-example"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/nodejs-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Node.js application with a MongoDB database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/nodejs-ex/blob/master/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing.",
-            "iconClass": "icon-nodejs",
-            "openshift.io/display-name": "Node.js + MongoDB (Ephemeral)",
-            "openshift.io/documentation-url": "https://github.com/openshift/nodejs-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a NodeJS application, including a build configuration, application deployment configuration, and database deployment configuration.  The database is stored in non-persistent storage, so this configuration should be used for experimental purposes only.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,nodejs",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "nodejs-mongodb-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "database-admin-password": "${DATABASE_ADMIN_PASSWORD}",
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "npm test"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "NPM_MIRROR",
-                                "value": "${NPM_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "nodejs:6",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    },
-                    {
-                        "generic": {
-                            "secret": "${GENERIC_WEBHOOK_SECRET}"
-                        },
-                        "type": "Generic"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "MONGODB_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "MONGODB_ADMIN_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-admin-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/pagecount",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 30,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "nodejs-mongodb-example",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/pagecount",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "nodejs-mongodb-example"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "mongodb",
-                        "port": 27017,
-                        "targetPort": 27017
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "MONGODB_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "MONGODB_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "MONGODB_ADMIN_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-admin-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "initialDelaySeconds": 30,
-                                    "tcpSocket": {
-                                        "port": 27017
-                                    },
-                                    "timeoutSeconds": 1
-                                },
-                                "name": "mongodb",
-                                "ports": [
-                                    {
-                                        "containerPort": 27017
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/sh",
-                                            "-i",
-                                            "-c",
-                                            "mongo 127.0.0.1:27017/$MONGODB_DATABASE -u $MONGODB_USER -p $MONGODB_PASSWORD --eval=\"quit()\""
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 3,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_MONGODB_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/mongodb/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "emptyDir": {
-                                    "medium": ""
-                                },
-                                "name": "${DATABASE_SERVICE_NAME}-data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "mongodb"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "mongodb:3.2",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "nodejs-mongodb-example"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Node.js container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the MongoDB container can use.",
-            "displayName": "Memory Limit (MongoDB)",
-            "name": "MEMORY_MONGODB_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/nodejs-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Node.js service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "description": "A secret string used to configure the Generic webhook.",
-            "displayName": "Generic Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GENERIC_WEBHOOK_SECRET"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "mongodb"
-        },
-        {
-            "description": "Username for MongoDB user that will be used for accessing the database.",
-            "displayName": "MongoDB Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "DATABASE_USER"
-        },
-        {
-            "description": "Password for the MongoDB user.",
-            "displayName": "MongoDB Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "sampledb"
-        },
-        {
-            "description": "Password for the database admin user.",
-            "displayName": "Database Administrator Password",
-            "from": "[a-zA-Z0-9]{16}",
-            "generate": "expression",
-            "name": "DATABASE_ADMIN_PASSWORD"
-        },
-        {
-            "description": "The custom NPM mirror URL",
-            "displayName": "Custom NPM Mirror URL",
-            "name": "NPM_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 49
roles/openshift_examples/files/examples/v3.10/quickstart-templates/pvc.yml

@@ -1,49 +0,0 @@
-apiVersion: v1
-kind: Template
-metadata:
-  name: "amp-pvc"
-objects:
-
-- apiVersion: "v1"
-  kind: "PersistentVolumeClaim"
-  metadata:
-    name: "system-storage"
-  spec:
-    accessModes:
-      - "ReadWriteMany"
-    resources:
-      requests:
-        storage: "100Mi"
-
-- apiVersion: "v1"
-  kind: "PersistentVolumeClaim"
-  metadata:
-    name: "mysql-storage"
-  spec:
-    accessModes:
-      - "ReadWriteOnce"
-    resources:
-      requests:
-        storage: "1Gi"
-
-- apiVersion: "v1"
-  kind: "PersistentVolumeClaim"
-  metadata:
-    name: "system-redis-storage"
-  spec:
-    accessModes:
-      - "ReadWriteOnce"
-    resources:
-      requests:
-        storage: "1Gi"
-
-- apiVersion: "v1"
-  kind: "PersistentVolumeClaim"
-  metadata:
-    name: "backend-redis-storage"
-  spec:
-    accessModes:
-      - "ReadWriteOnce"
-    resources:
-      requests:
-        storage: "1Gi"

+ 0 - 612
roles/openshift_examples/files/examples/v3.10/quickstart-templates/rails-postgresql-persistent.json

@@ -1,612 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "rails-pgsql-persistent",
-        "template": "rails-pgsql-persistent"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/rails-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Rails application with a PostgreSQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/rails-ex/blob/master/README.md.",
-            "iconClass": "icon-ruby",
-            "openshift.io/display-name": "Rails + PostgreSQL",
-            "openshift.io/documentation-url": "https://github.com/openshift/rails-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a Rails application, including a build configuration, application deployment configuration, and database deployment configuration.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,ruby,rails",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "rails-pgsql-persistent"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "application-password": "${APPLICATION_PASSWORD}",
-                "application-user": "${APPLICATION_USER}",
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}",
-                "keybase": "${SECRET_KEY_BASE}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "bundle exec rake test"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "RUBYGEM_MIRROR",
-                                "value": "${RUBYGEM_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "ruby:2.3",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "recreateParams": {
-                        "pre": {
-                            "execNewPod": {
-                                "command": [
-                                    "./migrate-database.sh"
-                                ],
-                                "containerName": "${NAME}"
-                            },
-                            "failurePolicy": "Abort"
-                        }
-                    },
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "SECRET_KEY_BASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "keybase",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_MAX_CONNECTIONS",
-                                        "value": "${POSTGRESQL_MAX_CONNECTIONS}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_SHARED_BUFFERS",
-                                        "value": "${POSTGRESQL_SHARED_BUFFERS}"
-                                    },
-                                    {
-                                        "name": "APPLICATION_DOMAIN",
-                                        "value": "${APPLICATION_DOMAIN}"
-                                    },
-                                    {
-                                        "name": "APPLICATION_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "application-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "APPLICATION_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "application-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "RAILS_ENV",
-                                        "value": "${RAILS_ENV}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/articles",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 10,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "${NAME}",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/articles",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${NAME}"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteOnce"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "postgresql",
-                        "port": 5432,
-                        "targetPort": 5432
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_MAX_CONNECTIONS",
-                                        "value": "${POSTGRESQL_MAX_CONNECTIONS}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_SHARED_BUFFERS",
-                                        "value": "${POSTGRESQL_SHARED_BUFFERS}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container",
-                                            "--live"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 120,
-                                    "timeoutSeconds": 10
-                                },
-                                "name": "postgresql",
-                                "ports": [
-                                    {
-                                        "containerPort": 5432
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_POSTGRESQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/pgsql/data",
-                                        "name": "${DATABASE_SERVICE_NAME}-data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${DATABASE_SERVICE_NAME}-data",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${DATABASE_SERVICE_NAME}"
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "postgresql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "postgresql:9.5",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "rails-pgsql-persistent"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Rails container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the PostgreSQL container can use.",
-            "displayName": "Memory Limit (PostgreSQL)",
-            "name": "MEMORY_POSTGRESQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Volume space available for data, e.g. 512Mi, 2Gi",
-            "displayName": "Volume Capacity",
-            "name": "VOLUME_CAPACITY",
-            "required": true,
-            "value": "1Gi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/rails-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Rails service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "description": "Your secret key for verifying the integrity of signed cookies.",
-            "displayName": "Secret Key",
-            "from": "[a-z0-9]{127}",
-            "generate": "expression",
-            "name": "SECRET_KEY_BASE"
-        },
-        {
-            "description": "The application user that is used within the sample application to authorize access on pages.",
-            "displayName": "Application Username",
-            "name": "APPLICATION_USER",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "The application password that is used within the sample application to authorize access on pages.",
-            "displayName": "Application Password",
-            "name": "APPLICATION_PASSWORD",
-            "required": true,
-            "value": "secret"
-        },
-        {
-            "description": "Environment under which the sample application will run. Could be set to production, development or test.",
-            "displayName": "Rails Environment",
-            "name": "RAILS_ENV",
-            "required": true,
-            "value": "production"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "displayName": "Database Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "DATABASE_USER"
-        },
-        {
-            "displayName": "Database Password",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "root"
-        },
-        {
-            "displayName": "Maximum Database Connections",
-            "name": "POSTGRESQL_MAX_CONNECTIONS",
-            "value": "100"
-        },
-        {
-            "displayName": "Shared Buffer Amount",
-            "name": "POSTGRESQL_SHARED_BUFFERS",
-            "value": "12MB"
-        },
-        {
-            "description": "The custom RubyGems mirror URL",
-            "displayName": "Custom RubyGems Mirror URL",
-            "name": "RUBYGEM_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 586
roles/openshift_examples/files/examples/v3.10/quickstart-templates/rails-postgresql.json

@@ -1,586 +0,0 @@
-{
-    "apiVersion": "v1",
-    "kind": "Template",
-    "labels": {
-        "app": "rails-postgresql-example",
-        "template": "rails-postgresql-example"
-    },
-    "message": "The following service(s) have been created in your project: ${NAME}, ${DATABASE_SERVICE_NAME}.\n\nFor more information about using this template, including OpenShift considerations, see https://github.com/openshift/rails-ex/blob/master/README.md.",
-    "metadata": {
-        "annotations": {
-            "description": "An example Rails application with a PostgreSQL database. For more information about using this template, including OpenShift considerations, see https://github.com/openshift/rails-ex/blob/master/README.md.\n\nWARNING: Any data stored will be lost upon pod destruction. Only use this template for testing.",
-            "iconClass": "icon-ruby",
-            "openshift.io/display-name": "Rails + PostgreSQL (Ephemeral)",
-            "openshift.io/documentation-url": "https://github.com/openshift/rails-ex",
-            "openshift.io/long-description": "This template defines resources needed to develop a Rails application, including a build configuration, application deployment configuration, and database deployment configuration.  The database is stored in non-persistent storage, so this configuration should be used for experimental purposes only.",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "openshift.io/support-url": "https://access.redhat.com",
-            "tags": "quickstart,ruby,rails",
-            "template.openshift.io/bindable": "false"
-        },
-        "name": "rails-postgresql-example"
-    },
-    "objects": [
-        {
-            "apiVersion": "v1",
-            "kind": "Secret",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "stringData": {
-                "application-password": "${APPLICATION_PASSWORD}",
-                "application-user": "${APPLICATION_USER}",
-                "database-password": "${DATABASE_PASSWORD}",
-                "database-user": "${DATABASE_USER}",
-                "keybase": "${SECRET_KEY_BASE}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes and load balances the application pods",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${DATABASE_SERVICE_NAME}\", \"kind\": \"Service\"}]"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "web",
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Route",
-            "metadata": {
-                "name": "${NAME}"
-            },
-            "spec": {
-                "host": "${APPLICATION_DOMAIN}",
-                "to": {
-                    "kind": "Service",
-                    "name": "${NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "ImageStream",
-            "metadata": {
-                "annotations": {
-                    "description": "Keeps track of changes in the application image"
-                },
-                "name": "${NAME}"
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "BuildConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to build the application",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "output": {
-                    "to": {
-                        "kind": "ImageStreamTag",
-                        "name": "${NAME}:latest"
-                    }
-                },
-                "postCommit": {
-                    "script": "bundle exec rake test"
-                },
-                "source": {
-                    "contextDir": "${CONTEXT_DIR}",
-                    "git": {
-                        "ref": "${SOURCE_REPOSITORY_REF}",
-                        "uri": "${SOURCE_REPOSITORY_URL}"
-                    },
-                    "type": "Git"
-                },
-                "strategy": {
-                    "sourceStrategy": {
-                        "env": [
-                            {
-                                "name": "RUBYGEM_MIRROR",
-                                "value": "${RUBYGEM_MIRROR}"
-                            }
-                        ],
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "ruby:2.3",
-                            "namespace": "${NAMESPACE}"
-                        }
-                    },
-                    "type": "Source"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    },
-                    {
-                        "github": {
-                            "secret": "${GITHUB_WEBHOOK_SECRET}"
-                        },
-                        "type": "GitHub"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the application server",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${NAME}"
-                },
-                "strategy": {
-                    "recreateParams": {
-                        "pre": {
-                            "execNewPod": {
-                                "command": [
-                                    "./migrate-database.sh"
-                                ],
-                                "containerName": "${NAME}"
-                            },
-                            "failurePolicy": "Abort"
-                        }
-                    },
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${NAME}"
-                        },
-                        "name": "${NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "DATABASE_SERVICE_NAME",
-                                        "value": "${DATABASE_SERVICE_NAME}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "SECRET_KEY_BASE",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "keybase",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_MAX_CONNECTIONS",
-                                        "value": "${POSTGRESQL_MAX_CONNECTIONS}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_SHARED_BUFFERS",
-                                        "value": "${POSTGRESQL_SHARED_BUFFERS}"
-                                    },
-                                    {
-                                        "name": "APPLICATION_DOMAIN",
-                                        "value": "${APPLICATION_DOMAIN}"
-                                    },
-                                    {
-                                        "name": "APPLICATION_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "application-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "APPLICATION_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "application-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "RAILS_ENV",
-                                        "value": "${RAILS_ENV}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "httpGet": {
-                                        "path": "/articles",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 10,
-                                    "timeoutSeconds": 3
-                                },
-                                "name": "${NAME}",
-                                "ports": [
-                                    {
-                                        "containerPort": 8080
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "httpGet": {
-                                        "path": "/articles",
-                                        "port": 8080
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 3
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                }
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${NAME}"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "${NAME}:latest"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "Service",
-            "metadata": {
-                "annotations": {
-                    "description": "Exposes the database server"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "ports": [
-                    {
-                        "name": "postgresql",
-                        "port": 5432,
-                        "targetPort": 5432
-                    }
-                ],
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "DeploymentConfig",
-            "metadata": {
-                "annotations": {
-                    "description": "Defines how to deploy the database",
-                    "template.alpha.openshift.io/wait-for-ready": "true"
-                },
-                "name": "${DATABASE_SERVICE_NAME}"
-            },
-            "spec": {
-                "replicas": 1,
-                "selector": {
-                    "name": "${DATABASE_SERVICE_NAME}"
-                },
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "template": {
-                    "metadata": {
-                        "labels": {
-                            "name": "${DATABASE_SERVICE_NAME}"
-                        },
-                        "name": "${DATABASE_SERVICE_NAME}"
-                    },
-                    "spec": {
-                        "containers": [
-                            {
-                                "env": [
-                                    {
-                                        "name": "POSTGRESQL_USER",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-user",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_PASSWORD",
-                                        "valueFrom": {
-                                            "secretKeyRef": {
-                                                "key": "database-password",
-                                                "name": "${NAME}"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_DATABASE",
-                                        "value": "${DATABASE_NAME}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_MAX_CONNECTIONS",
-                                        "value": "${POSTGRESQL_MAX_CONNECTIONS}"
-                                    },
-                                    {
-                                        "name": "POSTGRESQL_SHARED_BUFFERS",
-                                        "value": "${POSTGRESQL_SHARED_BUFFERS}"
-                                    }
-                                ],
-                                "image": " ",
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container",
-                                            "--live"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 120,
-                                    "timeoutSeconds": 10
-                                },
-                                "name": "postgresql",
-                                "ports": [
-                                    {
-                                        "containerPort": 5432
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/usr/libexec/check-container"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 5,
-                                    "timeoutSeconds": 1
-                                },
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_POSTGRESQL_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/var/lib/pgsql/data",
-                                        "name": "data"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "emptyDir": {},
-                                "name": "data"
-                            }
-                        ]
-                    }
-                },
-                "triggers": [
-                    {
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "postgresql"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "name": "postgresql:9.5",
-                                "namespace": "${NAMESPACE}"
-                            }
-                        },
-                        "type": "ImageChange"
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ]
-            }
-        }
-    ],
-    "parameters": [
-        {
-            "description": "The name assigned to all of the frontend objects defined in this template.",
-            "displayName": "Name",
-            "name": "NAME",
-            "required": true,
-            "value": "rails-postgresql-example"
-        },
-        {
-            "description": "The OpenShift Namespace where the ImageStream resides.",
-            "displayName": "Namespace",
-            "name": "NAMESPACE",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "Maximum amount of memory the Rails container can use.",
-            "displayName": "Memory Limit",
-            "name": "MEMORY_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "Maximum amount of memory the PostgreSQL container can use.",
-            "displayName": "Memory Limit (PostgreSQL)",
-            "name": "MEMORY_POSTGRESQL_LIMIT",
-            "required": true,
-            "value": "512Mi"
-        },
-        {
-            "description": "The URL of the repository with your application source code.",
-            "displayName": "Git Repository URL",
-            "name": "SOURCE_REPOSITORY_URL",
-            "required": true,
-            "value": "https://github.com/openshift/rails-ex.git"
-        },
-        {
-            "description": "Set this to a branch name, tag or other ref of your repository if you are not using the default branch.",
-            "displayName": "Git Reference",
-            "name": "SOURCE_REPOSITORY_REF"
-        },
-        {
-            "description": "Set this to the relative path to your project if it is not in the root of your repository.",
-            "displayName": "Context Directory",
-            "name": "CONTEXT_DIR"
-        },
-        {
-            "description": "The exposed hostname that will route to the Rails service, if left blank a value will be defaulted.",
-            "displayName": "Application Hostname",
-            "name": "APPLICATION_DOMAIN",
-            "value": ""
-        },
-        {
-            "description": "Github trigger secret.  A difficult to guess string encoded as part of the webhook URL.  Not encrypted.",
-            "displayName": "GitHub Webhook Secret",
-            "from": "[a-zA-Z0-9]{40}",
-            "generate": "expression",
-            "name": "GITHUB_WEBHOOK_SECRET"
-        },
-        {
-            "description": "Your secret key for verifying the integrity of signed cookies.",
-            "displayName": "Secret Key",
-            "from": "[a-z0-9]{127}",
-            "generate": "expression",
-            "name": "SECRET_KEY_BASE"
-        },
-        {
-            "description": "The application user that is used within the sample application to authorize access on pages.",
-            "displayName": "Application Username",
-            "name": "APPLICATION_USER",
-            "required": true,
-            "value": "openshift"
-        },
-        {
-            "description": "The application password that is used within the sample application to authorize access on pages.",
-            "displayName": "Application Password",
-            "name": "APPLICATION_PASSWORD",
-            "required": true,
-            "value": "secret"
-        },
-        {
-            "description": "Environment under which the sample application will run. Could be set to production, development or test.",
-            "displayName": "Rails Environment",
-            "name": "RAILS_ENV",
-            "required": true,
-            "value": "production"
-        },
-        {
-            "displayName": "Database Service Name",
-            "name": "DATABASE_SERVICE_NAME",
-            "required": true,
-            "value": "postgresql"
-        },
-        {
-            "displayName": "Database Username",
-            "from": "user[A-Z0-9]{3}",
-            "generate": "expression",
-            "name": "DATABASE_USER"
-        },
-        {
-            "displayName": "Database Password",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "name": "DATABASE_PASSWORD"
-        },
-        {
-            "displayName": "Database Name",
-            "name": "DATABASE_NAME",
-            "required": true,
-            "value": "root"
-        },
-        {
-            "displayName": "Maximum Database Connections",
-            "name": "POSTGRESQL_MAX_CONNECTIONS",
-            "value": "100"
-        },
-        {
-            "displayName": "Shared Buffer Amount",
-            "name": "POSTGRESQL_SHARED_BUFFERS",
-            "value": "12MB"
-        },
-        {
-            "description": "The custom RubyGems mirror URL",
-            "displayName": "Custom RubyGems Mirror URL",
-            "name": "RUBYGEM_MIRROR",
-            "value": ""
-        }
-    ]
-}

+ 0 - 158
roles/openshift_examples/files/examples/v3.10/quickstart-templates/wildcard.yml

@@ -1,158 +0,0 @@
-apiVersion: v1
-kind: Template
-metadata:
-  name: "amp-apicast-wildcard-router"
-objects:
-
-- apiVersion: v1
-  kind: DeploymentConfig
-  metadata:
-    name: apicast-router
-  spec:
-    replicas: 1
-    selector:
-      deploymentconfig: apicast-router
-    strategy:
-      type: Rolling
-    template:
-      metadata:
-        labels:
-          deploymentconfig: apicast-router
-      spec:
-        volumes:
-        - name: apicast-router-config
-          configMap:
-            name: apicast-router-config
-            items:
-            - key: router.conf
-              path: router.conf
-        containers:
-        - env:
-          - name: APICAST_CONFIGURATION_LOADER
-            value: "lazy"
-          - name: APICAST_CONFIGURATION_CACHE
-            value: "0"
-          image: 3scale-amp20/apicast-gateway:1.0-3
-          imagePullPolicy: IfNotPresent
-          name: apicast-router
-          command: ['bin/apicast']
-          livenessProbe:
-            tcpSocket:
-              port: router
-            initialDelaySeconds: 5
-            timeoutSeconds: 5
-            periodSeconds: 10
-          readinessProbe:
-            httpGet:
-              path: /status/ready
-              port: management
-            initialDelaySeconds: 5
-            timeoutSeconds: 5
-            periodSeconds: 30
-          volumeMounts:
-          - name: apicast-router-config
-            mountPath: /opt/app-root/src/sites.d/
-            readOnly: true
-          ports:
-          - containerPort: 8082
-            name: router
-            protocol: TCP
-          - containerPort: 8090
-            name: management
-            protocol: TCP
-    triggers:
-    - type: ConfigChange
-
-- apiVersion: v1
-  kind: Service
-  metadata:
-    name: apicast-router
-  spec:
-    ports:
-    - name: router
-      port: 80
-      protocol: TCP
-      targetPort: router
-    selector:
-      deploymentconfig: apicast-router
-
-- apiVersion: v1
-  kind: ConfigMap
-  metadata:
-    name: apicast-router-config
-  data:
-    router.conf: |-
-      upstream wildcard {
-        server 0.0.0.1:1;
-
-        balancer_by_lua_block {
-          local round_robin = require 'resty.balancer.round_robin'
-          local balancer = round_robin.new()
-          local peers = balancer:peers(ngx.ctx.apicast)
-
-          local peer, err = balancer:set_peer(peers)
-
-          if not peer then
-            ngx.status = ngx.HTTP_SERVICE_UNAVAILABLE
-            ngx.log(ngx.ERR, "failed to set current backend peer: ", err)
-            ngx.exit(ngx.status)
-          end
-        }
-
-        keepalive 1024;
-      }
-
-      server {
-        listen 8082;
-        server_name ~-(?<apicast>apicast-(staging|production))\.;
-        access_log /dev/stdout combined;
-
-        location / {
-          access_by_lua_block {
-            local resolver = require('resty.resolver'):instance()
-            local servers = resolver:get_servers(ngx.var.apicast, { port = 8080 })
-
-            if #servers == 0 then
-              ngx.status = ngx.HTTP_BAD_GATEWAY
-              ngx.exit(ngx.HTTP_OK)
-            end
-
-            ngx.ctx.apicast = servers
-          }
-          proxy_http_version 1.1;
-          proxy_pass $scheme://wildcard;
-          proxy_set_header Host $host;
-          proxy_set_header Connection "";
-        }
-      }
-
-- apiVersion: v1
-  kind: Route
-  metadata:
-    name: apicast-wildcard-router
-    labels:
-      app: apicast-wildcard-router
-  spec:
-    host: apicast-${TENANT_NAME}.${WILDCARD_DOMAIN}
-    to:
-      kind: Service
-      name: apicast-router
-    port:
-      targetPort: router
-    wildcardPolicy: Subdomain
-    tls:
-      termination: edge
-      insecureEdgeTerminationPolicy: Allow
-
-parameters:
-- name: AMP_RELEASE
-  description: "AMP release tag."
-  value: 2.0.0-CR2-redhat-1
-  required: true
-- name: WILDCARD_DOMAIN
-  description: Root domain for the wildcard routes. Eg. example.com will generate 3scale-admin.example.com.
-  required: true
-- name: TENANT_NAME
-  description: "Domain name under the root that Admin UI will be available with -admin suffix."
-  required: true
-  value: "3scale"

+ 0 - 137
roles/openshift_examples/files/examples/v3.10/xpaas-streams/amq62-image-stream.json

@@ -1,137 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "amq62-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss AMQ 6.2.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-amq-62",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.2 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.2,messaging",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq62-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.2 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.2,messaging",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq62-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.2 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.2,messaging",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq62-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.2 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.2,messaging",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq62-openshift:1.4"
-                        }
-                    },
-                    {
-                        "name": "1.5",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.2 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.2,messaging",
-                            "version": "1.5",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq62-openshift:1.5"
-                        }
-                    },
-                    {
-                        "name": "1.6",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.2 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports":"amq:6.2,messaging",
-                            "version": "1.6",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq62-openshift:1.6"
-                        }
-                    },
-                    {
-                        "name": "1.7",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.2 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports":"amq:6.2,messaging",
-                            "version": "1.7",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq62-openshift:1.7"
-                        }
-                     }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 92
roles/openshift_examples/files/examples/v3.10/xpaas-streams/amq63-image-stream.json

@@ -1,92 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "amq63-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss AMQ 6.3.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-amq-63",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss A-MQ 6.3",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.3 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.3,messaging",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq63-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.3 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.3,messaging",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq63-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.3 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.3,messaging",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq63-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss A-MQ 6.3 broker image.",
-                            "iconClass": "icon-amq",
-                            "tags": "messaging,amq,jboss,hidden",
-                            "supports": "amq:6.3,messaging",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-amq-6/amq63-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 154
roles/openshift_examples/files/examples/v3.10/xpaas-streams/datagrid65-image-stream.json

@@ -1,154 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "datagrid65-image-streams",
-        "annotations": {
-            "description": "ImageStream definitions for Red Hat JBoss Data Grid 6.5.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-datagrid65-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss Data Grid 6.5 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:6.5",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-6/datagrid65-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss Data Grid 6.5 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:6.5",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-6/datagrid65-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "JBoss Data Grid 6.5 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:6.5",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-6/datagrid65-openshift:1.4"
-                        }
-                    },
-                    {
-                        "name": "1.5",
-                        "annotations": {
-                            "description": "JBoss Data Grid 6.5 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:6.5",
-                            "version": "1.5",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-6/datagrid65-openshift:1.5"
-                        }
-                    },
-                    {
-                        "name": "1.6",
-                        "annotations": {
-                            "description": "JBoss Data Grid 6.5 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:6.5",
-                            "version": "1.6",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-6/datagrid65-openshift:1.6"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-datagrid65-client-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5 Client Modules for EAP",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Data Grid 6.5 Client Modules for EAP.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "client,jboss,hidden",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5 Client Modules for EAP"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-6/datagrid65-client-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss Data Grid 6.5 Client Modules for EAP.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "client,jboss,hidden",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 6.5 Client Modules for EAP"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-6/datagrid65-client-openshift:1.1"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 125
roles/openshift_examples/files/examples/v3.10/xpaas-streams/datagrid71-image-stream.json

@@ -1,125 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "datagrid71-image-streams",
-        "annotations": {
-            "description": "ImageStream definitions for Red Hat JBoss Data Grid 7.1.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-datagrid71-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Data Grid 7.1",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Data Grid 7.1 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:7.1",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-7/datagrid71-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss Data Grid 7.1 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:7.1",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-7/datagrid71-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss Data Grid 7.1 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:7.1",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-7/datagrid71-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss Data Grid 7.1 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:7.1",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-7/datagrid71-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-datagrid71-client-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Data Grid 7.1 Client Modules for EAP",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Data Grid 7.1 Client Modules for EAP.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "client,jboss,hidden",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 7.1 Client Modules for EAP"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-7/datagrid71-client-openshift:1.0"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 43
roles/openshift_examples/files/examples/v3.10/xpaas-streams/datagrid72-image-stream.json

@@ -1,43 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "datagrid72-image-streams",
-        "annotations": {
-            "description": "ImageStream definitions for Red Hat JBoss Data Grid 7.2.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-datagrid72-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Data Grid 7.2",
-                    "openshift.io/provider-display-name": "Red Hat, Inc."
-                }
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "Red Hat JBoss Data Grid 7.2 S2I images.",
-                            "iconClass": "icon-datagrid",
-                            "tags": "datagrid,jboss,hidden",
-                            "supports": "datagrid:7.2",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss Data Grid 7.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datagrid-7/datagrid72-openshift:1.0"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 154
roles/openshift_examples/files/examples/v3.10/xpaas-streams/datavirt63-image-stream.json

@@ -1,154 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "datavirt63-image-streams",
-        "annotations": {
-            "description": "ImageStream definitions for Red Hat JBoss Data Virtualization 6.3.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-datavirt63-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.3",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "Red Hat JBoss Data Virtualization 6.3 S2I images.",
-                            "iconClass": "icon-datavirt",
-                            "tags": "datavirt,jboss,hidden",
-                            "supports": "datavirt:6.3",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datavirt-6/datavirt63-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "Red Hat JBoss Data Virtualization 6.3 S2I images.",
-                            "iconClass": "icon-datavirt",
-                            "tags": "datavirt,jboss,hidden",
-                            "supports": "datavirt:6.3",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datavirt-6/datavirt63-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "Red Hat JBoss Data Virtualization 6.3 S2I images.",
-                            "iconClass": "icon-datavirt",
-                            "tags": "datavirt,jboss,hidden",
-                            "supports": "datavirt:6.3",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datavirt-6/datavirt63-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "Red Hat JBoss Data Virtualization 6.3 S2I images.",
-                            "iconClass": "icon-datavirt",
-                            "tags": "datavirt,jboss,hidden",
-                            "supports":"datavirt:6.3",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datavirt-6/datavirt63-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "Red Hat JBoss Data Virtualization 6.3 S2I images.",
-                            "iconClass": "icon-datavirt",
-                            "tags": "datavirt,jboss,hidden",
-                            "supports":"datavirt:6.3",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datavirt-6/datavirt63-openshift:1.4"
-                        }
-                     }
-                ]
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-datavirt63-driver-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.5 JDBC Driver Modules for EAP",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Data Virtualization 6.5 JDBC Driver Modules for EAP.",
-                            "iconClass": "icon-datavirt",
-                            "tags": "client,jboss,hidden",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.5 JDBC Driver Modules for EAP"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datavirt-6/datavirt63-driver-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss Data Virtualization 6.5 JDBC Driver Modules for EAP.",
-                            "iconClass": "icon-datavirt",
-                            "tags": "client,jboss,hidden",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Data Virtualization 6.5 JDBC Driver Modules for EAP"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-datavirt-6/datavirt63-driver-openshift:1.1"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 49
roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver62-image-stream.json

@@ -1,49 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "decisionserver62-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss BRMS 6.2 decision server.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-decisionserver62-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss BRMS 6.2 decision server",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "Red Hat JBoss BRMS 6.2 decision server S2I images.",
-                            "iconClass": "icon-decisionserver",
-                            "tags": "builder,decisionserver,hidden",
-                            "supports": "decisionserver:6.2",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "decisionserver/hellorules",
-                            "sampleRef": "1.2",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss BRMS 6.2 decision server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-decisionserver-6/decisionserver62-openshift:1.2"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 68
roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver63-image-stream.json

@@ -1,68 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "decisionserver63-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss BRMS 6.3 decision server.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-decisionserver63-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss BRMS 6.3 decision server",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "Red Hat JBoss BRMS 6.3 decision server S2I images.",
-                            "iconClass": "icon-decisionserver",
-                            "tags": "builder,decisionserver,hidden",
-                            "supports": "decisionserver:6.3",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "decisionserver/hellorules",
-                            "sampleRef": "1.3",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss BRMS 6.3 decision server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-decisionserver-6/decisionserver63-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "Red Hat JBoss BRMS 6.3 decision server S2I images.",
-                            "iconClass": "icon-decisionserver",
-                            "tags": "builder,decisionserver,java,hidden",
-                            "supports": "decisionserver:6.3,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "decisionserver/hellorules",
-                            "sampleRef": "1.3",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat JBoss BRMS 6.3 decision server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-decisionserver-6/decisionserver63-openshift:1.4"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 104
roles/openshift_examples/files/examples/v3.10/xpaas-streams/decisionserver64-image-stream.json

@@ -1,104 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "decisionserver64-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss BRMS 6.4 decision server.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-decisionserver64-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss BRMS 6.4 decision server",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "Red Hat JBoss BRMS 6.4 decision server S2I images.",
-                            "iconClass": "icon-decisionserver",
-                            "tags": "builder,decisionserver,java,hidden",
-                            "supports": "decisionserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "decisionserver/hellorules",
-                            "sampleRef": "1.3",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss BRMS 6.4 decision server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-decisionserver-6/decisionserver64-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "Red Hat JBoss BRMS 6.4 decision server S2I images.",
-                            "iconClass": "icon-decisionserver",
-                            "tags": "builder,decisionserver,java,hidden",
-                            "supports": "decisionserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "decisionserver/hellorules",
-                            "sampleRef": "1.3",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss BRMS 6.4 decision server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-decisionserver-6/decisionserver64-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "Red Hat JBoss BRMS 6.4 decision server S2I images.",
-                            "iconClass": "icon-decisionserver",
-                            "tags": "builder,decisionserver,java,hidden",
-                            "supports": "decisionserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "decisionserver/hellorules",
-                            "sampleRef": "1.3",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss BRMS 6.4 decision server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-decisionserver-6/decisionserver64-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "Red Hat JBoss BRMS 6.4 decision server S2I images.",
-                            "iconClass": "icon-decisionserver",
-                            "tags": "builder,decisionserver,java,hidden",
-                            "supports": "decisionserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "decisionserver/hellorules",
-                            "sampleRef": "1.3",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss BRMS 6.4 decision server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-decisionserver-6/decisionserver64-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 124
roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap-cd-image-stream.json

@@ -1,124 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "jboss-cd-image-streams",
-        "annotations": {
-            "description": "ImageStream definition for JBoss Enterprise Application Platform continuous delivery.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-    {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "eap-cd-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "JBoss EAP continuous delivery",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "13.0"
-                }
-            },
-            "labels": {
-                "xpaas": "1.5.0"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "latest",
-                        "annotations": {
-                            "description": "JBoss EAP continuous delivery Tech Preview S2I Image",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.2,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jbossas/eap-quickstarts/openshift",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "openshift",
-                            "version": "latest",
-                            "openshift.io/display-name": "JBoss EAP continuous delivery (Tech Preview)"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7-tech-preview/eap-cd-openshift:latest"
-                        }
-                    },
-                    {
-                        "name": "13",
-                        "annotations": {
-                            "description": "The latest available build of JBoss EAP continuous delivery Tech Preview.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.2,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "openshift",
-                            "version": "13",
-                            "openshift.io/display-name": "JBoss EAP continuous delivery (Tech Preview)"
-                        },
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "13.0"
-
-                        }
-                    },
-                    {
-                        "name": "12",
-                        "annotations": {
-                            "description": "The latest available build of JBoss EAP continuous delivery Tech Preview.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.2,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "openshift",
-                            "version": "12",
-                            "openshift.io/display-name": "JBoss EAP continuous delivery (Tech Preview)"
-                        },
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "12.0"
-
-                        }
-                    },
-                    {
-                        "name": "12.0",
-                        "annotations": {
-                            "description": "JBoss EAP continuous delivery Tech Preview S2I Image",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.2,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jbossas/eap-quickstarts/openshift",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "openshift",
-                            "version": "12.0",
-                            "openshift.io/display-name": "JBoss EAP continuous delivery (Tech Preview)"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7-tech-preview/eap-cd-openshift:12.0"
-                        }
-                    },
-                    {
-                        "name": "13.0",
-                        "annotations": {
-                            "description": "JBoss EAP continuous delivery Tech Preview S2I Image",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.2,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jbossas/eap-quickstarts/openshift",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "openshift",
-                            "version": "13.0",
-                            "openshift.io/display-name": "JBoss EAP continuous delivery (Tech Preview)"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7-tech-preview/eap-cd-openshift:13.0"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 194
roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap64-image-stream.json

@@ -1,194 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "eap64-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss EAP 6.4.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-eap64-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss EAP 6.4",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "latest",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I image (latest).",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "latest",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:latest"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.4"
-                        }
-                    },
-                    {
-                        "name": "1.5",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.5",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.5"
-                        }
-                    },
-                    {
-                        "name": "1.6",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.6",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.6"
-                        }
-                    },
-                    {
-                        "name": "1.7",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.7",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.7"
-                        }
-                    },
-                    {
-                        "name": "1.8",
-                        "annotations": {
-                            "description": "JBoss EAP 6.4 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:6.4,javaee:6,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "6.4.x",
-                            "version": "1.8",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 6.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-6/eap64-openshift:1.8"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 122
roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap70-image-stream.json

@@ -1,122 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "eap70-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss EAP 7.0.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-eap70-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss EAP 7.0",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss EAP 7.0 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.0,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.0.0.GA",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap70-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "JBoss EAP 7.0 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.0,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.0.0.GA",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap70-openshift:1.4"
-                        }
-                    },
-                    {
-                        "name": "1.5",
-                        "annotations": {
-                            "description": "JBoss EAP 7.0 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.0,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.0.0.GA",
-                            "version": "1.5",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap70-openshift:1.5"
-                        }
-                    },
-                    {
-                        "name": "1.6",
-                        "annotations": {
-                            "description": "JBoss EAP 7.0 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.0,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.0.0.GA",
-                            "version": "1.6",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap70-openshift:1.6"
-                        }
-                    },
-                    {
-                        "name": "1.7",
-                        "annotations": {
-                            "description": "JBoss EAP 7.0 S2I images.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.0,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.0.0.GA",
-                            "version": "1.7",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap70-openshift:1.7"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 104
roles/openshift_examples/files/examples/v3.10/xpaas-streams/eap71-image-stream.json

@@ -1,104 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "eap71-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss EAP 7.1.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-eap71-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss EAP 7.1",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "latest",
-                        "annotations": {
-                            "description": "JBoss EAP 7.1 S2I image (latest).",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.1,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.1.0.GA",
-                            "version": "latest",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap71-openshift:latest"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss EAP 7.1 S2I image.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.1,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.1.0.GA",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap71-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss EAP 7.1 S2I image.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.1,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.1.0.GA",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap71-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss EAP 7.1 S2I image.",
-                            "iconClass": "icon-eap",
-                            "tags": "builder,eap,javaee,java,jboss,hidden",
-                            "supports": "eap:7.1,javaee:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-developer/jboss-eap-quickstarts.git",
-                            "sampleContextDir": "kitchensink",
-                            "sampleRef": "7.1.0.GA",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss EAP 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-eap-7/eap71-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 90
roles/openshift_examples/files/examples/v3.10/xpaas-streams/fis-image-streams.json

@@ -1,90 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "fis-image-streams",
-        "annotations": {
-            "description": "ImageStream definitions for JBoss Fuse Integration Services."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "fis-java-openshift"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Fuse Integration Services 1.0 Java S2I images.",
-                            "iconClass": "icon-jboss",
-                            "tags": "builder,jboss-fuse,java,xpaas,hidden",
-                            "supports":"jboss-fuse:6.2.1,java:8,xpaas:1.2",
-                            "version": "1.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-fuse-6/fis-java-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "2.0",
-                        "annotations": {
-                            "description": "JBoss Fuse Integration Services 2.0 Java S2I images.",
-                            "iconClass": "icon-jboss",
-                            "tags": "builder,jboss-fuse,java,xpaas",
-                            "supports":"jboss-fuse:6.3.0,java:8,xpaas:1.2",
-                            "version": "2.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-fuse-6/fis-java-openshift:2.0"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "fis-karaf-openshift"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Fuse Integration Services 1.0 Karaf S2I images.",
-                            "iconClass": "icon-jboss",
-                            "tags": "builder,jboss-fuse,java,karaf,xpaas,hidden",
-                            "supports":"jboss-fuse:6.2.1,java:8,xpaas:1.2",
-                            "version": "1.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-fuse-6/fis-karaf-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "2.0",
-                        "annotations": {
-                            "description": "JBoss Fuse Integration Services 2.0 Karaf S2I images.",
-                            "iconClass": "icon-jboss",
-                            "tags": "builder,jboss-fuse,java,karaf,xpaas",
-                            "supports":"jboss-fuse:6.3.0,java:8,xpaas:1.2",
-                            "version": "2.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-fuse-6/fis-karaf-openshift:2.0"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 83
roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws30-tomcat7-image-stream.json

@@ -1,83 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "webserver30-tomcat7-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss Web Server 3.0 Apache Tomcat 7.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-webserver30-tomcat7-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Apache Tomcat 7",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.0 Apache Tomcat 7 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat7,java,jboss,hidden",
-                            "supports": "tomcat7:3.0,tomcat:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Apache Tomcat 7"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat7-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.0 Apache Tomcat 7 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat7,java,jboss,hidden",
-                            "supports": "tomcat7:3.0,tomcat:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Apache Tomcat 7"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat7-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.0 Apache Tomcat 7 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat7,java,jboss,hidden",
-                            "supports": "tomcat7:3.0,tomcat:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 ApacheTomcat 7"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat7-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 83
roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws30-tomcat8-image-stream.json

@@ -1,83 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "webserver30-tomcat8-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss Web Server 3.0 Apache Tomcat 8.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-webserver30-tomcat8-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Apache Tomcat 8",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.0 Apache Tomcat 8 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat8,java,jboss,hidden",
-                            "supports": "tomcat8:3.0,tomcat:8,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Apache Tomcat 8"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.0 Apache Tomcat 8 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat8,java,jboss,hidden",
-                            "supports": "tomcat8:3.0,tomcat:8,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Apache Tomcat 8"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.0 Apache Tomcat 8 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat8,java,jboss,hidden",
-                            "supports": "tomcat8:3.0,tomcat:8,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.0 Apache Tomcat 8"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver30-tomcat8-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 83
roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws31-tomcat7-image-stream.json

@@ -1,83 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "webserver31-tomcat7-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss Web Server 3.1 Apache Tomcat 7.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-webserver31-tomcat7-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss Web Server 3.1 Apache Tomcat 7",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.1 Apache Tomcat 7 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat7,java,jboss,hidden",
-                            "supports": "tomcat7:3.1,tomcat:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.1 Apache Tomcat 7"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat7-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.1 Apache Tomcat 7 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat7,java,jboss,hidden",
-                            "supports": "tomcat7:3.1,tomcat:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.1 Apache Tomcat 7"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat7-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.1 Apache Tomcat 7 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat7,java,jboss,hidden",
-                            "supports": "tomcat7:3.1,tomcat:7,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.1 Apache Tomcat 7"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat7-openshift:1.2"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 83
roles/openshift_examples/files/examples/v3.10/xpaas-streams/jws31-tomcat8-image-stream.json

@@ -1,83 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "webserver31-tomcat8-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss Web Server 3.1 Apache Tomcat 8.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-webserver31-tomcat8-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "JBoss Web Server 3.1 Apache Tomcat 8",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.1 Apache Tomcat 8 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat8,java,jboss,hidden",
-                            "supports": "tomcat8:3.1,tomcat:8,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.0",
-                            "openshift.io/display-name": "JBoss Web Server 3.1 Apache Tomcat 8"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat8-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.1 Apache Tomcat 8 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat8,java,jboss,hidden",
-                            "supports": "tomcat8:3.1,tomcat:8,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.1 Apache Tomcat 8"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat8-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "JBoss Web Server 3.1 Apache Tomcat 8 S2I images.",
-                            "iconClass": "icon-rh-tomcat",
-                            "tags": "builder,tomcat,tomcat8,java,jboss,hidden",
-                            "supports": "tomcat8:3.1,tomcat:8,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "tomcat-websocket-chat",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss Web Server 3.1 Apache Tomcat 8"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-webserver-3/webserver31-tomcat8-openshift:1.2"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 170
roles/openshift_examples/files/examples/v3.10/xpaas-streams/openjdk18-image-stream.json

@@ -1,170 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "openjdk18-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat OpenJDK 8.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "redhat-openjdk18-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat OpenJDK 8",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "openshift.io/display-name": "Red Hat OpenJDK 8",
-                            "description": "Build and run Java applications using Maven and OpenJDK 8.",
-                            "iconClass": "icon-rh-openjdk",
-                            "tags": "builder,java,openjdk,hidden",
-                            "supports": "java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts",
-                            "sampleContextDir": "undertow-servlet",
-                            "version": "1.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "openshift.io/display-name": "Red Hat OpenJDK 8",
-                            "description": "Build and run Java applications using Maven and OpenJDK 8.",
-                            "iconClass": "icon-rh-openjdk",
-                            "tags": "builder,java,openjdk,hidden",
-                            "supports": "java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts",
-                            "sampleContextDir": "undertow-servlet",
-                            "version": "1.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "openshift.io/display-name": "Red Hat OpenJDK 8",
-                            "description": "Build and run Java applications using Maven and OpenJDK 8.",
-                            "iconClass": "icon-rh-openjdk",
-                            "tags": "builder,java,openjdk,hidden",
-                            "supports": "java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts",
-                            "sampleContextDir": "undertow-servlet",
-                            "version": "1.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "openshift.io/display-name": "Red Hat OpenJDK 8",
-                            "description": "Build and run Java applications using Maven and OpenJDK 8.",
-                            "iconClass": "icon-rh-openjdk",
-                            "tags": "builder,java,openjdk,hidden",
-                            "supports": "java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts",
-                            "sampleContextDir": "undertow-servlet",
-                            "version": "1.3"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "openshift.io/display-name": "Red Hat OpenJDK 8",
-                            "description": "Build and run Java applications using Maven and OpenJDK 8.",
-                            "iconClass": "icon-rh-openjdk",
-                            "tags": "builder,java,openjdk,hidden",
-                            "supports": "java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts",
-                            "sampleContextDir": "undertow-servlet",
-                            "version": "1.4"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.4"
-                        }
-                    }
-                ]
-            }
-        },
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "java",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat OpenJDK 8",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "8",
-                        "annotations": {
-                            "openshift.io/display-name": "Red Hat OpenJDK 8",
-                            "description": "Build and run Java applications using Maven and OpenJDK 8.",
-                            "iconClass": "icon-rh-openjdk",
-                            "tags": "builder,java,openjdk",
-                            "supports": "java:8,java",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts",
-                            "sampleContextDir": "undertow-servlet",
-                            "version": "8"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:latest"
-                        }
-                    },
-                    {
-                        "name": "latest",
-                        "annotations": {
-                            "openshift.io/display-name": "Red Hat OpenJDK 8",
-                            "description": "Build and run Java applications using Maven and OpenJDK 8.",
-                            "iconClass": "icon-rh-openjdk",
-                            "tags": "builder,java,openjdk",
-                            "supports": "java:8,java",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts",
-                            "sampleContextDir": "undertow-servlet",
-                            "version": "latest"
-                        },
-                        "from": {
-                            "kind": "ImageStreamTag",
-                            "name": "java:8"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 68
roles/openshift_examples/files/examples/v3.10/xpaas-streams/processserver63-image-stream.json

@@ -1,68 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "processserver63-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss BPM Suite 6.3 intelligent process server.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-processserver63-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.3 intelligent process server",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "Red Hat JBoss BPM Suite 6.3 intelligent process server S2I images.",
-                            "iconClass": "icon-processserver",
-                            "tags": "builder,processserver,hidden",
-                            "supports": "processserver:6.3",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "processserver/library",
-                            "sampleRef": "1.3",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.3 intelligent process server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-processserver-6/processserver63-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "Red Hat JBoss BPM Suite 6.3 intelligent process server S2I images.",
-                            "iconClass": "icon-processserver",
-                            "tags": "builder,processserver,java,hidden",
-                            "supports": "processserver:6.3,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "processserver/library",
-                            "sampleRef": "1.3",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.3 intelligent process server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-processserver-6/processserver63-openshift:1.4"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 104
roles/openshift_examples/files/examples/v3.10/xpaas-streams/processserver64-image-stream.json

@@ -1,104 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "processserver64-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat JBoss BPM Suite 6.4 intelligent process server.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "jboss-processserver64-openshift",
-                "annotations": {
-                    "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.4 intelligent process server",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "Red Hat JBoss BPM Suite 6.4 intelligent process server S2I images.",
-                            "iconClass": "icon-processserver",
-                            "tags": "builder,processserver,java,hidden",
-                            "supports": "processserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "processserver/library",
-                            "sampleRef": "1.3",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.4 intelligent process server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-processserver-6/processserver64-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "Red Hat JBoss BPM Suite 6.4 intelligent process server S2I images.",
-                            "iconClass": "icon-processserver",
-                            "tags": "builder,processserver,java,hidden",
-                            "supports": "processserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "processserver/library",
-                            "sampleRef": "1.3",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.4 intelligent process server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-processserver-6/processserver64-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "Red Hat JBoss BPM Suite 6.4 intelligent process server S2I images.",
-                            "iconClass": "icon-processserver",
-                            "tags": "builder,processserver,java,hidden",
-                            "supports": "processserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "processserver/library",
-                            "sampleRef": "1.3",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.4 intelligent process server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-processserver-6/processserver64-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "Red Hat JBoss BPM Suite 6.4 intelligent process server S2I images.",
-                            "iconClass": "icon-processserver",
-                            "tags": "builder,processserver,java,hidden",
-                            "supports": "processserver:6.4,java:8",
-                            "sampleRepo": "https://github.com/jboss-openshift/openshift-quickstarts.git",
-                            "sampleContextDir": "processserver/library",
-                            "sampleRef": "1.3",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat JBoss BPM Suite 6.4 intelligent process server"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/jboss-processserver-6/processserver64-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 66
roles/openshift_examples/files/examples/v3.10/xpaas-streams/rhdm70-image-streams.yaml

@@ -1,66 +0,0 @@
-kind: List
-apiVersion: v1
-metadata:
-  name: rhdm70-image-streams
-  annotations:
-    description: ImageStream definitions for Red Hat Decision Manager 7.0
-    openshift.io/provider-display-name: Red Hat, Inc.
-items:
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhdm70-decisioncentral-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Decision Manager Central 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Decision Manager 7.0 - Decision Central image.
-        iconClass: icon-jboss
-        tags: rhdm,xpaas
-        supports: rhdm:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhdm-7/rhdm70-decisioncentral-openshift:1.0
-    - name: '1.1'
-      annotations:
-        description: Red Hat Decision Manager 7.0 - Decision Central image.
-        iconClass: icon-jboss
-        tags: rhdm,xpaas
-        supports: rhdm:7.0,xpaas:1.4
-        version: '1.1'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhdm-7/rhdm70-decisioncentral-openshift:1.1
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhdm70-kieserver-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Decision Manager KIE Server 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Decision Manager 7.0 - KIE Server image.
-        iconClass: icon-jboss
-        tags: rhdm,xpaas
-        supports: rhdm:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhdm-7/rhdm70-kieserver-openshift:1.0
-    - name: '1.1'
-      annotations:
-        description: Red Hat Decision Manager 7.0 - KIE Server image.
-        iconClass: icon-jboss
-        tags: rhdm,xpaas
-        supports: rhdm:7.0,xpaas:1.4
-        version: '1.1'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhdm-7/rhdm70-kieserver-openshift:1.1

+ 0 - 123
roles/openshift_examples/files/examples/v3.10/xpaas-streams/rhpam70-image-streams.yaml

@@ -1,123 +0,0 @@
-kind: List
-apiVersion: v1
-metadata:
-  name: rhpam70-image-streams
-  annotations:
-    description: ImageStream definitions for Red Hat Process Automation Manager 7.0
-    openshift.io/provider-display-name: Red Hat, Inc.
-items:
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhpam70-businesscentral-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Process Automation Manager Business Central 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Process Automation Manager 7.0 - Business Central image.
-        iconClass: icon-jboss
-        tags: rhpam,xpaas
-        supports: rhpam:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-openshift:1.0
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhpam70-businesscentral-monitoring-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Process Automation Manager Business Central Monitoring 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Process Automation Manager 7.0 - Business Central Monitoring image.
-        iconClass: icon-jboss
-        tags: rhpam,xpaas
-        supports: rhpam:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-monitoring-openshift:1.0
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhpam70-controller-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Process Automation Manager Standalone Controller 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Process Automation Manager 7.0 - Standalone Controller image.
-        iconClass: icon-jboss
-        tags: rhpam,xpaas
-        supports: rhpam:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhpam-7/rhpam70-controller-openshift:1.0
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhpam70-kieserver-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Process Automation Manager KIE Server 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Process Automation Manager 7.0 - KIE Server image.
-        iconClass: icon-jboss
-        tags: rhpam,xpaas
-        supports: rhpam:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhpam-7/rhpam70-kieserver-openshift:1.0
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhpam70-smartrouter-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Process Automation Manager Smart Router 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Process Automation Manager 7.0 - Smart Router image.
-        iconClass: icon-jboss
-        tags: rhpam,xpaas
-        supports: rhpam:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhpam-7/rhpam70-smartrouter-openshift:1.0
-- kind: ImageStream
-  apiVersion: v1
-  metadata:
-    name: rhpam70-businesscentral-indexing-openshift
-    annotations:
-      openshift.io/display-name: Red Hat Process Automation Manager Business Central Indexing 7.0
-      openshift.io/provider-display-name: Red Hat, Inc.
-  spec:
-    tags:
-    - name: '1.0'
-      annotations:
-        description: Red Hat Process Automation Manager 7.0 - Business Central Indexing image.
-        iconClass: icon-jboss
-        tags: rhpam,xpaas
-        supports: rhpam:7.0,xpaas:1.4
-        version: '1.0'
-      from:
-        kind: DockerImage
-        name: registry.access.redhat.com/rhpam-7/rhpam70-businesscentral-indexing-openshift:1.0
-

+ 0 - 63
roles/openshift_examples/files/examples/v3.10/xpaas-streams/sso70-image-stream.json

@@ -1,63 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "sso70-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat Single Sign-On 7.0.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "redhat-sso70-openshift",
-                "annotations": {
-                    "description": "Red Hat SSO 7.0",
-                    "openshift.io/display-name": "Red Hat Single Sign-On 7.0",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.0",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.0",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso70-openshift:1.3"
-                        }
-                    },
-                    {
-                        "name": "1.4",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.0",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.0",
-                            "version": "1.4",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.0"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso70-openshift:1.4"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 93
roles/openshift_examples/files/examples/v3.10/xpaas-streams/sso71-image-stream.json

@@ -1,93 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "sso71-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat Single Sign-On 7.1.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "redhat-sso71-openshift",
-                "annotations": {
-                    "description": "Red Hat SSO 7.1",
-                    "openshift.io/display-name": "Red Hat Single Sign-On 7.1",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.1",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.1",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso71-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.1",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.1",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso71-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.1",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.1",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso71-openshift:1.2"
-                        }
-                    },
-                    {
-                        "name": "1.3",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.1",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.1",
-                            "version": "1.3",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.1"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso71-openshift:1.3"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 78
roles/openshift_examples/files/examples/v3.10/xpaas-streams/sso72-image-stream.json

@@ -1,78 +0,0 @@
-{
-    "kind": "List",
-    "apiVersion": "v1",
-    "metadata": {
-        "name": "sso72-image-stream",
-        "annotations": {
-            "description": "ImageStream definition for Red Hat Single Sign-On 7.2.",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        }
-    },
-    "items": [
-        {
-            "kind": "ImageStream",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "redhat-sso72-openshift",
-                "annotations": {
-                    "description": "Red Hat SSO 7.2",
-                    "openshift.io/display-name": "Red Hat Single Sign-On 7.2",
-                    "openshift.io/provider-display-name": "Red Hat, Inc.",
-                    "version": "1.4.14"
-                }
-            },
-            "labels": {
-                "xpaas": "1.4.14"
-            },
-            "spec": {
-                "tags": [
-                    {
-                        "name": "1.0",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.2",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.2",
-                            "version": "1.0",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso72-openshift:1.0"
-                        }
-                    },
-                    {
-                        "name": "1.1",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.2",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.2",
-                            "version": "1.1",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso72-openshift:1.1"
-                        }
-                    },
-                    {
-                        "name": "1.2",
-                        "annotations": {
-                            "description": "Red Hat SSO 7.2",
-                            "iconClass": "icon-sso",
-                            "tags": "sso,keycloak,redhat,hidden",
-                            "supports": "sso:7.2",
-                            "version": "1.2",
-                            "openshift.io/display-name": "Red Hat Single Sign-On 7.2"
-                        },
-                        "from": {
-                            "kind": "DockerImage",
-                            "name": "registry.access.redhat.com/redhat-sso-7/sso72-openshift:1.2"
-                        }
-                    }
-                ]
-            }
-        }
-    ]
-}

+ 0 - 372
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-basic.json

@@ -1,372 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "description": "Application template for JBoss A-MQ brokers. These can be deployed as standalone or in a mesh. This template doesn't feature SSL support.",
-            "iconClass": "icon-amq",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "tags": "messaging,amq,jboss,hidden",
-            "version": "1.4.14",
-            "openshift.io/display-name": "JBoss A-MQ 6.2 (Ephemeral, no SSL)"
-        },
-        "name": "amq62-basic"
-    },
-    "labels": {
-        "template": "amq62-basic",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new messaging service has been created in your project. It will handle the protocol(s) \"${MQ_PROTOCOL}\". The username/password for accessing the service is ${MQ_USERNAME}/${MQ_PASSWORD}.",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "broker",
-            "required": true
-        },
-        {
-            "displayName": "A-MQ Protocols",
-            "description": "Protocols to configure, separated by commas. Allowed values are: `openwire`, `amqp`, `stomp` and `mqtt`.",
-            "name": "MQ_PROTOCOL",
-            "value": "openwire",
-            "required": false
-        },
-        {
-            "displayName": "Queues",
-            "description": "Queue names, separated by commas. These queues will be automatically created when the broker starts. If left empty, queues will be still created dynamically.",
-            "name": "MQ_QUEUES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Topics",
-            "description": "Topic names, separated by commas. These topics will be automatically created when the broker starts. If left empty, topics will be still created dynamically.",
-            "name": "MQ_TOPICS",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Serializable Packages",
-            "description": "List of packages that are allowed to be serialized for use in ObjectMessage, separated by commas. If your app doesn't use ObjectMessages, leave this blank. This is a security enforcement. For the rationale, see http://activemq.apache.org/objectmessage.html",
-            "name": "MQ_SERIALIZABLE_PACKAGES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Username",
-            "description": "User name for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
-            "name": "MQ_USERNAME",
-            "from": "user[a-zA-Z0-9]{3}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Password",
-            "description": "Password for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
-            "name": "MQ_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Mesh Discovery Type",
-            "description": "The discovery agent type to use for discovering mesh endpoints.  'dns' will use OpenShift's DNS service to resolve endpoints.  'kube' will use Kubernetes REST API to resolve service endpoints.  If using 'kube' the service account for the pod must have the 'view' role, which can be added via 'oc policy add-role-to-user view system:serviceaccount:<namespace>:default' where <namespace> is the project namespace.",
-            "name": "AMQ_MESH_DISCOVERY_TYPE",
-            "value": "dns",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Store Usage Limit",
-            "description": "Sets the store disk limit usage in activemq.xml. If the value set is greater than the disk size, it will be resized to the available disk space.",
-            "name": "AMQ_STORAGE_USAGE_LIMIT",
-            "value": "100 gb",
-            "required": false
-        },
-        {
-            "displayName": "Queue Memory Limit",
-            "description": "The queue memory limit (default is 1mb)",
-            "name": "AMQ_QUEUE_MEMORY_LIMIT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 5672,
-                        "targetPort": 5672
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-amqp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's AMQP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 1883,
-                        "targetPort": 1883
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mqtt",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's MQTT port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61613,
-                        "targetPort": 61613
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-stomp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's STOMP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61616,
-                        "targetPort": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-tcp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's OpenWire port.",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-amq-amqp\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-mqtt\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-stomp\", \"kind\": \"Service\"}]"
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "mesh",
-                        "port": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mesh",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "Supports node discovery for mesh formation."
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Rolling",
-                    "rollingParams": {
-                        "maxSurge": 0
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}-amq"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-amq-62:1.7"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}-amq",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}-amq",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq",
-                                "image": "jboss-amq-62",
-                                "imagePullPolicy": "Always",
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/amq/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "amqp",
-                                        "containerPort": 5672,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "mqtt",
-                                        "containerPort": 1883,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "stomp",
-                                        "containerPort": 61613,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "tcp",
-                                        "containerPort": 61616,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "AMQ_USER",
-                                        "value": "${MQ_USERNAME}"
-                                    },
-                                    {
-                                        "name": "AMQ_PASSWORD",
-                                        "value": "${MQ_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "AMQ_TRANSPORTS",
-                                        "value": "${MQ_PROTOCOL}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUES",
-                                        "value": "${MQ_QUEUES}"
-                                    },
-                                    {
-                                        "name": "AMQ_TOPICS",
-                                        "value": "${MQ_TOPICS}"
-                                    },
-                                    {
-                                        "name": "MQ_SERIALIZABLE_PACKAGES",
-                                        "value": "${MQ_SERIALIZABLE_PACKAGES}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_DISCOVERY_TYPE",
-                                        "value": "${AMQ_MESH_DISCOVERY_TYPE}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-amq-mesh"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAMESPACE",
-                                        "valueFrom": {
-                                            "fieldRef": {
-                                                "fieldPath": "metadata.namespace"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "AMQ_STORAGE_USAGE_LIMIT",
-                                        "value": "${AMQ_STORAGE_USAGE_LIMIT}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUE_MEMORY_LIMIT",
-                                        "value": "${AMQ_QUEUE_MEMORY_LIMIT}"
-                                    }
-                                ]
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}

File diff suppressed because it is too large
+ 0 - 718
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-persistent-ssl.json


+ 0 - 532
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-persistent.json

@@ -1,532 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "description": "Application template for JBoss A-MQ brokers. These can be deployed as standalone and use persistent storage for saving messages, including message migration when the number of pods are reduced. This template doesn't feature SSL support.",
-            "iconClass": "icon-amq",
-            "tags": "messaging,amq,jboss,hidden",
-            "version": "1.4.14",
-            "openshift.io/display-name": "JBoss A-MQ 6.2 (no SSL)",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        },
-        "name": "amq62-persistent"
-    },
-    "labels": {
-        "template": "amq62-persistent",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new persistent messaging service has been created in your project. It will handle the protocol(s) \"${MQ_PROTOCOL}\". The username/password for accessing the service is ${MQ_USERNAME}/${MQ_PASSWORD}.",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "broker",
-            "required": true
-        },
-        {
-            "displayName": "Split Data?",
-            "description": "Split the data directory for each node in a mesh, this is now the default behaviour.",
-            "name": "AMQ_SPLIT",
-            "value": "true",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Protocols",
-            "description": "Protocols to configure, separated by commas.  Allowed values are: `openwire`, `amqp`, `stomp` and `mqtt`.",
-            "name": "MQ_PROTOCOL",
-            "value": "openwire",
-            "required": false
-        },
-        {
-            "displayName": "Queues",
-            "description": "Queue names, separated by commas.  These queues will be automatically created when the broker starts.  If left empty, queues will be still created dynamically.",
-            "name": "MQ_QUEUES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Topics",
-            "description": "Topic names, separated by commas.  These topics will be automatically created when the broker starts.  If left empty, topics will be still created dynamically.",
-            "name": "MQ_TOPICS",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Serializable Packages",
-            "description": "List of packages that are allowed to be serialized for use in ObjectMessage, separated by commas. If your app doesn't use ObjectMessages, leave this blank. This is a security enforcement. For the rationale, see http://activemq.apache.org/objectmessage.html",
-            "name": "MQ_SERIALIZABLE_PACKAGES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Volume Size",
-            "description": "Size of the volume used by A-MQ for persisting messages.",
-            "name": "VOLUME_CAPACITY",
-            "value": "1Gi",
-            "required": true
-        },
-        {
-            "displayName": "A-MQ Username",
-            "description": "User name for standard broker user.  It is required for connecting to the broker.  If left empty, it will be generated.",
-            "name": "MQ_USERNAME",
-            "from": "user[a-zA-Z0-9]{3}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Password",
-            "description": "Password for standard broker user.  It is required for connecting to the broker.  If left empty, it will be generated.",
-            "name": "MQ_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Mesh Discovery Type",
-            "description": "The discovery agent type to use for discovering mesh endpoints.  'dns' will use OpenShift's DNS service to resolve endpoints.  'kube' will use Kubernetes REST API to resolve service endpoints.  If using 'kube' the service account for the pod must have the 'view' role, which can be added via 'oc policy add-role-to-user view system:serviceaccount:<namespace>:default' where <namespace> is the project namespace.",
-            "name": "AMQ_MESH_DISCOVERY_TYPE",
-            "value": "dns",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Store Usage Limit",
-            "description": "Sets the store disk limit usage in activemq.xml. If the value set is greater than the disk size, it will be resized to the available disk space.",
-            "name": "AMQ_STORAGE_USAGE_LIMIT",
-            "value": "100 gb",
-            "required": false
-        },
-        {
-            "displayName": "Queue Memory Limit",
-            "description": "The queue memory limit (default is 1mb)",
-            "name": "AMQ_QUEUE_MEMORY_LIMIT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 5672,
-                        "targetPort": 5672
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-amqp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's AMQP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 1883,
-                        "targetPort": 1883
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mqtt",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's MQTT port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61613,
-                        "targetPort": 61613
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-stomp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's STOMP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61616,
-                        "targetPort": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-tcp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's OpenWire port.",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-amq-amqp\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-mqtt\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-stomp\", \"kind\": \"Service\"}]"
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "mesh",
-                        "port": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mesh",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "Supports node discovery for mesh formation."
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Rolling",
-                    "rollingParams": {
-                        "maxSurge": 0
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}-amq"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-amq-62:1.7"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}-amq",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}-amq",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq",
-                                "image": "jboss-amq-62",
-                                "imagePullPolicy": "Always",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/opt/amq/data",
-                                        "name": "${APPLICATION_NAME}-amq-pvol"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/amq/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "amqp",
-                                        "containerPort": 5672,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "mqtt",
-                                        "containerPort": 1883,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "stomp",
-                                        "containerPort": 61613,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "tcp",
-                                        "containerPort": 61616,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "AMQ_USER",
-                                        "value": "${MQ_USERNAME}"
-                                    },
-                                    {
-                                        "name": "AMQ_PASSWORD",
-                                        "value": "${MQ_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "AMQ_TRANSPORTS",
-                                        "value": "${MQ_PROTOCOL}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUES",
-                                        "value": "${MQ_QUEUES}"
-                                    },
-                                    {
-                                        "name": "AMQ_TOPICS",
-                                        "value": "${MQ_TOPICS}"
-                                    },
-                                    {
-                                        "name": "MQ_SERIALIZABLE_PACKAGES",
-                                        "value": "${MQ_SERIALIZABLE_PACKAGES}"
-                                    },
-                                    {
-                                        "name": "AMQ_SPLIT",
-                                        "value": "${AMQ_SPLIT}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_DISCOVERY_TYPE",
-                                        "value": "${AMQ_MESH_DISCOVERY_TYPE}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-amq-mesh"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAMESPACE",
-                                        "valueFrom": {
-                                            "fieldRef": {
-                                                "fieldPath": "metadata.namespace"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "AMQ_STORAGE_USAGE_LIMIT",
-                                        "value": "${AMQ_STORAGE_USAGE_LIMIT}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUE_MEMORY_LIMIT",
-                                        "value": "${AMQ_QUEUE_MEMORY_LIMIT}"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq-pvol",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${APPLICATION_NAME}-amq-claim"
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-drainer",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}-drainer"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-amq-62:1.7"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-drainer"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}-drainer",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}-drainer",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}-drainer",
-                                "image": "jboss-amq-62",
-                                "command": [
-                                    "/opt/amq/bin/drain.sh"
-                                ],
-                                "imagePullPolicy": "Always",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/opt/amq/data",
-                                        "name": "${APPLICATION_NAME}-amq-pvol"
-                                    }
-                                ],
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "tcp",
-                                        "containerPort": 61616,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "AMQ_USER",
-                                        "value": "${MQ_USERNAME}"
-                                    },
-                                    {
-                                        "name": "AMQ_PASSWORD",
-                                        "value": "${MQ_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-amq-mesh"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAMESPACE",
-                                        "valueFrom": {
-                                            "fieldRef": {
-                                                "fieldPath": "metadata.namespace"
-                                            }
-                                        }
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq-pvol",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${APPLICATION_NAME}-amq-claim"
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-claim",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteMany"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        }
-    ]
-}

File diff suppressed because it is too large
+ 0 - 558
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq62-ssl.json


+ 0 - 372
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-basic.json

@@ -1,372 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "description": "Application template for JBoss A-MQ brokers. These can be deployed as standalone or in a mesh. This template doesn't feature SSL support.",
-            "iconClass": "icon-amq",
-            "tags": "messaging,amq,jboss",
-            "version": "1.4.14",
-            "openshift.io/display-name": "Red Hat JBoss A-MQ 6.3 (Ephemeral, no SSL)",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        },
-        "name": "amq63-basic"
-    },
-    "labels": {
-        "template": "amq63-basic",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new messaging service has been created in your project. It will handle the protocol(s) \"${MQ_PROTOCOL}\". The username/password for accessing the service is ${MQ_USERNAME}/${MQ_PASSWORD}.",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "broker",
-            "required": true
-        },
-        {
-            "displayName": "A-MQ Protocols",
-            "description": "Protocols to configure, separated by commas. Allowed values are: `openwire`, `amqp`, `stomp` and `mqtt`.",
-            "name": "MQ_PROTOCOL",
-            "value": "openwire",
-            "required": false
-        },
-        {
-            "displayName": "Queues",
-            "description": "Queue names, separated by commas. These queues will be automatically created when the broker starts. If left empty, queues will be still created dynamically.",
-            "name": "MQ_QUEUES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Topics",
-            "description": "Topic names, separated by commas. These topics will be automatically created when the broker starts. If left empty, topics will be still created dynamically.",
-            "name": "MQ_TOPICS",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Serializable Packages",
-            "description": "List of packages that are allowed to be serialized for use in ObjectMessage, separated by commas. If your app doesn't use ObjectMessages, leave this blank. This is a security enforcement. For the rationale, see http://activemq.apache.org/objectmessage.html",
-            "name": "MQ_SERIALIZABLE_PACKAGES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Username",
-            "description": "User name for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
-            "name": "MQ_USERNAME",
-            "from": "user[a-zA-Z0-9]{3}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Password",
-            "description": "Password for standard broker user. It is required for connecting to the broker. If left empty, it will be generated.",
-            "name": "MQ_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Mesh Discovery Type",
-            "description": "The discovery agent type to use for discovering mesh endpoints.  'dns' will use OpenShift's DNS service to resolve endpoints.  'kube' will use Kubernetes REST API to resolve service endpoints.  If using 'kube' the service account for the pod must have the 'view' role, which can be added via 'oc policy add-role-to-user view system:serviceaccount:<namespace>:default' where <namespace> is the project namespace.",
-            "name": "AMQ_MESH_DISCOVERY_TYPE",
-            "value": "dns",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Store Usage Limit",
-            "description": "Sets the store disk limit usage in activemq.xml. If the value set is greater than the disk size, it will be resized to the available disk space.",
-            "name": "AMQ_STORAGE_USAGE_LIMIT",
-            "value": "100 gb",
-            "required": false
-        },
-        {
-            "displayName": "Queue Memory Limit",
-            "description": "The queue memory limit (default is 1mb)",
-            "name": "AMQ_QUEUE_MEMORY_LIMIT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 5672,
-                        "targetPort": 5672
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-amqp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's AMQP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 1883,
-                        "targetPort": 1883
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mqtt",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's MQTT port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61613,
-                        "targetPort": 61613
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-stomp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's STOMP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61616,
-                        "targetPort": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-tcp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's OpenWire port.",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-amq-amqp\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-mqtt\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-stomp\", \"kind\": \"Service\"}]"
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "mesh",
-                        "port": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mesh",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "Supports node discovery for mesh formation."
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Rolling",
-                    "rollingParams": {
-                        "maxSurge": 0
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}-amq"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-amq-63:1.3"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}-amq",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}-amq",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq",
-                                "image": "jboss-amq-63",
-                                "imagePullPolicy": "Always",
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/amq/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "amqp",
-                                        "containerPort": 5672,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "mqtt",
-                                        "containerPort": 1883,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "stomp",
-                                        "containerPort": 61613,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "tcp",
-                                        "containerPort": 61616,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "AMQ_USER",
-                                        "value": "${MQ_USERNAME}"
-                                    },
-                                    {
-                                        "name": "AMQ_PASSWORD",
-                                        "value": "${MQ_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "AMQ_TRANSPORTS",
-                                        "value": "${MQ_PROTOCOL}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUES",
-                                        "value": "${MQ_QUEUES}"
-                                    },
-                                    {
-                                        "name": "AMQ_TOPICS",
-                                        "value": "${MQ_TOPICS}"
-                                    },
-                                    {
-                                        "name": "MQ_SERIALIZABLE_PACKAGES",
-                                        "value": "${MQ_SERIALIZABLE_PACKAGES}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_DISCOVERY_TYPE",
-                                        "value": "${AMQ_MESH_DISCOVERY_TYPE}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-amq-mesh"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAMESPACE",
-                                        "valueFrom": {
-                                            "fieldRef": {
-                                                "fieldPath": "metadata.namespace"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "AMQ_STORAGE_USAGE_LIMIT",
-                                        "value": "${AMQ_STORAGE_USAGE_LIMIT}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUE_MEMORY_LIMIT",
-                                        "value": "${AMQ_QUEUE_MEMORY_LIMIT}"
-                                    }
-                                ]
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}

File diff suppressed because it is too large
+ 0 - 717
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-persistent-ssl.json


+ 0 - 535
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-persistent.json

@@ -1,535 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "iconClass": "icon-amq",
-            "tags": "messaging,amq,jboss",
-            "version": "1.4.14",
-            "openshift.io/display-name": "JBoss A-MQ 6.3 (no SSL)",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "description": "An example JBoss A-MQ application. For more information about using this template, see https://github.com/jboss-openshift/application-templates.",
-            "template.openshift.io/long-description": "This template defines resources needed to develop Red Hat JBoss A-MQ 6.3 based application, including a deployment configuration and using persistence.",
-            "template.openshift.io/documentation-url": "https://access.redhat.com/documentation/en/red-hat-jboss-amq/",
-            "template.openshift.io/support-url": "https://access.redhat.com"
-        },
-        "name": "amq63-persistent"
-    },
-    "labels": {
-        "template": "amq63-persistent",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new persistent messaging service has been created in your project. It will handle the protocol(s) \"${MQ_PROTOCOL}\". The username/password for accessing the service is ${MQ_USERNAME}/${MQ_PASSWORD}.",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "broker",
-            "required": true
-        },
-        {
-            "displayName": "Split Data?",
-            "description": "Split the data directory for each node in a mesh, this is now the default behaviour.",
-            "name": "AMQ_SPLIT",
-            "value": "true",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Protocols",
-            "description": "Protocols to configure, separated by commas.  Allowed values are: `openwire`, `amqp`, `stomp` and `mqtt`.",
-            "name": "MQ_PROTOCOL",
-            "value": "openwire",
-            "required": false
-        },
-        {
-            "displayName": "Queues",
-            "description": "Queue names, separated by commas.  These queues will be automatically created when the broker starts.  If left empty, queues will be still created dynamically.",
-            "name": "MQ_QUEUES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Topics",
-            "description": "Topic names, separated by commas.  These topics will be automatically created when the broker starts.  If left empty, topics will be still created dynamically.",
-            "name": "MQ_TOPICS",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Serializable Packages",
-            "description": "List of packages that are allowed to be serialized for use in ObjectMessage, separated by commas. If your app doesn't use ObjectMessages, leave this blank. This is a security enforcement. For the rationale, see http://activemq.apache.org/objectmessage.html",
-            "name": "MQ_SERIALIZABLE_PACKAGES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Volume Size",
-            "description": "Size of the volume used by A-MQ for persisting messages.",
-            "name": "VOLUME_CAPACITY",
-            "value": "1Gi",
-            "required": true
-        },
-        {
-            "displayName": "A-MQ Username",
-            "description": "User name for standard broker user.  It is required for connecting to the broker.  If left empty, it will be generated.",
-            "name": "MQ_USERNAME",
-            "from": "user[a-zA-Z0-9]{3}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Password",
-            "description": "Password for standard broker user.  It is required for connecting to the broker.  If left empty, it will be generated.",
-            "name": "MQ_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Mesh Discovery Type",
-            "description": "The discovery agent type to use for discovering mesh endpoints.  'dns' will use OpenShift's DNS service to resolve endpoints.  'kube' will use Kubernetes REST API to resolve service endpoints.  If using 'kube' the service account for the pod must have the 'view' role, which can be added via 'oc policy add-role-to-user view system:serviceaccount:<namespace>:default' where <namespace> is the project namespace.",
-            "name": "AMQ_MESH_DISCOVERY_TYPE",
-            "value": "dns",
-            "required": false
-        },
-        {
-            "displayName": "A-MQ Store Usage Limit",
-            "description": "Sets the store disk limit usage in activemq.xml. If the value set is greater than the disk size, it will be resized to the available disk space.",
-            "name": "AMQ_STORAGE_USAGE_LIMIT",
-            "value": "100 gb",
-            "required": false
-        },
-        {
-            "displayName": "Queue Memory Limit",
-            "description": "The queue memory limit (default is 1mb)",
-            "name": "AMQ_QUEUE_MEMORY_LIMIT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 5672,
-                        "targetPort": 5672
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-amqp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's AMQP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 1883,
-                        "targetPort": 1883
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mqtt",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's MQTT port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61613,
-                        "targetPort": 61613
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-stomp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's STOMP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 61616,
-                        "targetPort": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-tcp",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The broker's OpenWire port.",
-                    "service.alpha.openshift.io/dependencies": "[{\"name\": \"${APPLICATION_NAME}-amq-amqp\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-mqtt\", \"kind\": \"Service\"},{\"name\": \"${APPLICATION_NAME}-amq-stomp\", \"kind\": \"Service\"}]"
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "mesh",
-                        "port": 61616
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-mesh",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "Supports node discovery for mesh formation."
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Rolling",
-                    "rollingParams": {
-                        "maxSurge": 0
-                    }
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}-amq"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-amq-63:1.3"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-amq"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}-amq",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}-amq",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq",
-                                "image": "jboss-amq-63",
-                                "imagePullPolicy": "Always",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/opt/amq/data",
-                                        "name": "${APPLICATION_NAME}-amq-pvol"
-                                    }
-                                ],
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/amq/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "amqp",
-                                        "containerPort": 5672,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "mqtt",
-                                        "containerPort": 1883,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "stomp",
-                                        "containerPort": 61613,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "tcp",
-                                        "containerPort": 61616,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "AMQ_USER",
-                                        "value": "${MQ_USERNAME}"
-                                    },
-                                    {
-                                        "name": "AMQ_PASSWORD",
-                                        "value": "${MQ_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "AMQ_TRANSPORTS",
-                                        "value": "${MQ_PROTOCOL}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUES",
-                                        "value": "${MQ_QUEUES}"
-                                    },
-                                    {
-                                        "name": "AMQ_TOPICS",
-                                        "value": "${MQ_TOPICS}"
-                                    },
-                                    {
-                                        "name": "MQ_SERIALIZABLE_PACKAGES",
-                                        "value": "${MQ_SERIALIZABLE_PACKAGES}"
-                                    },
-                                    {
-                                        "name": "AMQ_SPLIT",
-                                        "value": "${AMQ_SPLIT}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_DISCOVERY_TYPE",
-                                        "value": "${AMQ_MESH_DISCOVERY_TYPE}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-amq-mesh"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAMESPACE",
-                                        "valueFrom": {
-                                            "fieldRef": {
-                                                "fieldPath": "metadata.namespace"
-                                            }
-                                        }
-                                    },
-                                    {
-                                        "name": "AMQ_STORAGE_USAGE_LIMIT",
-                                        "value": "${AMQ_STORAGE_USAGE_LIMIT}"
-                                    },
-                                    {
-                                        "name": "AMQ_QUEUE_MEMORY_LIMIT",
-                                        "value": "${AMQ_QUEUE_MEMORY_LIMIT}"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq-pvol",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${APPLICATION_NAME}-amq-claim"
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-drainer",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}-drainer"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-amq-63:1.3"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}-drainer"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}-drainer",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}-drainer",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}-drainer",
-                                "image": "jboss-amq-63",
-                                "command": [
-                                    "/opt/amq/bin/drain.sh"
-                                ],
-                                "imagePullPolicy": "Always",
-                                "volumeMounts": [
-                                    {
-                                        "mountPath": "/opt/amq/data",
-                                        "name": "${APPLICATION_NAME}-amq-pvol"
-                                    }
-                                ],
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "tcp",
-                                        "containerPort": 61616,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "AMQ_USER",
-                                        "value": "${MQ_USERNAME}"
-                                    },
-                                    {
-                                        "name": "AMQ_PASSWORD",
-                                        "value": "${MQ_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-amq-mesh"
-                                    },
-                                    {
-                                        "name": "AMQ_MESH_SERVICE_NAMESPACE",
-                                        "valueFrom": {
-                                            "fieldRef": {
-                                                "fieldPath": "metadata.namespace"
-                                            }
-                                        }
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "${APPLICATION_NAME}-amq-pvol",
-                                "persistentVolumeClaim": {
-                                    "claimName": "${APPLICATION_NAME}-amq-claim"
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        },
-        {
-            "apiVersion": "v1",
-            "kind": "PersistentVolumeClaim",
-            "metadata": {
-                "name": "${APPLICATION_NAME}-amq-claim",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "accessModes": [
-                    "ReadWriteMany"
-                ],
-                "resources": {
-                    "requests": {
-                        "storage": "${VOLUME_CAPACITY}"
-                    }
-                }
-            }
-        }
-    ]
-}

File diff suppressed because it is too large
+ 0 - 561
roles/openshift_examples/files/examples/v3.10/xpaas-templates/amq63-ssl.json


+ 0 - 411
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-basic.json

@@ -1,411 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "iconClass": "icon-datagrid",
-            "description": "Application template for JDG 6.5 applications.",
-            "tags": "datagrid,jboss,hidden",
-            "version": "1.4.14",
-            "openshift.io/display-name": "JBoss Data Grid 6.5 (Ephemeral, no https)",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        },
-        "name": "datagrid65-basic"
-    },
-    "labels": {
-        "template": "datagrid65-basic",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new data grid service has been created in your project. It supports connector type(s) \"${INFINISPAN_CONNECTORS}\".",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "datagrid-app",
-            "required": true
-        },
-        {
-            "displayName": "Custom http Route Hostname",
-            "description": "Custom hostname for http service route.  Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
-            "name": "HOSTNAME_HTTP",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Username",
-            "description": "User name for JDG user.",
-            "name": "USERNAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Password",
-            "description": "The password to access the JDG Caches. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s). (optional)",
-            "name": "PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        },
-        {
-            "displayName": "Infinispan Connectors",
-            "description": "Comma-separated list of connector types that should be configured (defaults to 'memcached,hotrod,rest')",
-            "name": "INFINISPAN_CONNECTORS",
-            "value": "hotrod,memcached,rest",
-            "required": false
-        },
-        {
-            "displayName": "Cache Names",
-            "description": "Comma-separated list of caches to configure.  By default, a distributed-cache, with a mode of SYNC will be configured for each entry.",
-            "name": "CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Datavirt Cache Names",
-            "description": "Comma-separated list of caches to configure for use by Red Hat JBoss Data Virtualization for materialization of views.  Three caches will be created for each named cache: <name>, <name>_staging and <name>_alias.",
-            "name": "DATAVIRT_CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Default Cache Type",
-            "description": "Default cache type for all caches. If empty then distributed will be the default",
-            "name": "CACHE_TYPE_DEFAULT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Encryption Requires SSL Client Authentication?",
-            "description": "",
-            "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Memcached Cache Name",
-            "description": "The name of the cache to expose through this memcached connector (defaults to 'default')",
-            "name": "MEMCACHED_CACHE",
-            "value": "default",
-            "required": false
-        },
-        {
-            "displayName": "REST Security Domain",
-            "description": "The domain, declared in the security subsystem, that should be used to authenticate access to the REST endpoint",
-            "name": "REST_SECURITY_DOMAIN",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Cluster Password",
-            "description": "JGroups cluster password",
-            "name": "JGROUPS_CLUSTER_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": true
-        },
-        {
-            "description": "Container memory limit",
-            "name": "MEMORY_LIMIT",
-            "value": "1Gi",
-            "required": false
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The web server's HTTP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11211,
-                        "targetPort": 11211
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-memcached",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Memcached service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11333,
-                        "targetPort": 11333
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-hotrod",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Hot Rod service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "ping",
-                        "port": 8888
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-ping",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "The JGroups ping port for clustering."
-                }
-            }
-        },
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "id": "${APPLICATION_NAME}-http",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Route for application's HTTP service."
-                }
-            },
-            "spec": {
-                "host": "${HOSTNAME_HTTP}",
-                "to": {
-                    "name": "${APPLICATION_NAME}"
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-datagrid65-openshift:1.6"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}",
-                                "image": "jboss-datagrid65-openshift",
-                                "imagePullPolicy": "Always",
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/livenessProbe.sh"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 60
-                                },
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "http",
-                                        "containerPort": 8080,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "ping",
-                                        "containerPort": 8888,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "memcached",
-                                        "containerPort": 11211,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod-internal",
-                                        "containerPort": 11222,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod",
-                                        "containerPort": 11333,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "USERNAME",
-                                        "value": "${USERNAME}"
-                                    },
-                                    {
-                                        "name": "PASSWORD",
-                                        "value": "${PASSWORD}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_PING_PROTOCOL",
-                                        "value": "openshift.DNS_PING"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-ping"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_PORT",
-                                        "value": "8888"
-                                    },
-                                    {
-                                        "name": "INFINISPAN_CONNECTORS",
-                                        "value": "${INFINISPAN_CONNECTORS}"
-                                    },
-                                    {
-                                        "name": "CACHE_NAMES",
-                                        "value": "${CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "DATAVIRT_CACHE_NAMES",
-                                        "value": "${DATAVIRT_CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "CACHE_TYPE_DEFAULT",
-                                        "value": "${CACHE_TYPE_DEFAULT}"
-                                    },
-                                    {
-                                        "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-                                        "value": "${ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH}"
-                                    },
-                                    {
-                                        "name": "HOTROD_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-hotrod"
-                                    },
-                                    {
-                                        "name": "MEMCACHED_CACHE",
-                                        "value": "${MEMCACHED_CACHE}"
-                                    },
-                                    {
-                                        "name": "REST_SECURITY_DOMAIN",
-                                        "value": "${REST_SECURITY_DOMAIN}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_CLUSTER_PASSWORD",
-                                        "value": "${JGROUPS_CLUSTER_PASSWORD}"
-                                    }
-                                ]
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}

+ 0 - 592
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-https.json

@@ -1,592 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "iconClass": "icon-datagrid",
-            "description": "Application template for JDG 6.5 applications.",
-            "tags": "datagrid,jboss,hidden",
-            "version": "1.4.14",
-            "openshift.io/display-name": "JBoss Data Grid 6.5 (Ephemeral with https)",
-            "openshift.io/provider-display-name": "Red Hat, Inc."
-        },
-        "name": "datagrid65-https"
-    },
-    "labels": {
-        "template": "datagrid65-https",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new data grid service has been created in your project. It supports connector type(s) \"${INFINISPAN_CONNECTORS}\". Please be sure to create the following secrets: \"${HTTPS_SECRET}\" containing the ${HTTPS_KEYSTORE} file used for serving secure content; \"${JGROUPS_ENCRYPT_SECRET}\" containing the ${JGROUPS_ENCRYPT_KEYSTORE} file used for securing JGroups communications.",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "datagrid-app",
-            "required": true
-        },
-        {
-            "displayName": "Custom http Route Hostname",
-            "description": "Custom hostname for http service route.  Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
-            "name": "HOSTNAME_HTTP",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Custom https Route Hostname",
-            "description": "Custom hostname for https service route.  Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
-            "name": "HOSTNAME_HTTPS",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Username",
-            "description": "User name for JDG user.",
-            "name": "USERNAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Password",
-            "description": "The password to access the JDG Caches. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s). (optional)",
-            "name": "PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Server Keystore Secret Name",
-            "description": "The name of the secret containing the keystore file",
-            "name": "HTTPS_SECRET",
-            "value": "datagrid-app-secret",
-            "required": true
-        },
-        {
-            "displayName": "Server Keystore Filename",
-            "description": "The name of the keystore file within the secret",
-            "name": "HTTPS_KEYSTORE",
-            "value": "keystore.jks",
-            "required": false
-        },
-        {
-            "displayName": "Server Certificate Name",
-            "description": "The name associated with the server certificate",
-            "name": "HTTPS_NAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Server Keystore Password",
-            "description": "The password for the keystore and certificate",
-            "name": "HTTPS_PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        },
-        {
-            "displayName": "Infinispan Connectors",
-            "description": "Comma-separated list of connector types that should be configured (defaults to 'memcached,hotrod,rest')",
-            "name": "INFINISPAN_CONNECTORS",
-            "value": "hotrod,memcached,rest",
-            "required": false
-        },
-        {
-            "displayName": "Cache Names",
-            "description": "Comma-separated list of caches to configure.  By default, a distributed-cache, with a mode of SYNC will be configured for each entry.",
-            "name": "CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Datavirt Cache Names",
-            "description": "Comma-separated list of caches to configure for use by Red Hat JBoss Data Virtualization for materialization of views.  Three caches will be created for each named cache: <name>, <name>_staging and <name>_alias.",
-            "name": "DATAVIRT_CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Default Cache Type",
-            "description": "Default cache type for all caches. If empty then distributed will be the default",
-            "name": "CACHE_TYPE_DEFAULT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Encryption Requires SSL Client Authentication?",
-            "description": "",
-            "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Memcached Cache Name",
-            "description": "The name of the cache to expose through this memcached connector (defaults to 'default')",
-            "name": "MEMCACHED_CACHE",
-            "value": "default",
-            "required": false
-        },
-        {
-            "displayName": "REST Security Domain",
-            "description": "The domain, declared in the security subsystem, that should be used to authenticate access to the REST endpoint",
-            "name": "REST_SECURITY_DOMAIN",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Secret Name",
-            "description": "The name of the secret containing the keystore file",
-            "name": "JGROUPS_ENCRYPT_SECRET",
-            "value": "datagrid-app-secret",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Keystore Filename",
-            "description": "The name of the keystore file within the secret",
-            "name": "JGROUPS_ENCRYPT_KEYSTORE",
-            "value": "jgroups.jceks",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Certificate Name",
-            "description": "The name associated with the server certificate",
-            "name": "JGROUPS_ENCRYPT_NAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Keystore Password",
-            "description": "The password for the keystore and certificate",
-            "name": "JGROUPS_ENCRYPT_PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Cluster Password",
-            "description": "JGroups cluster password",
-            "name": "JGROUPS_CLUSTER_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": true
-        },
-        {
-            "description": "Container memory limit",
-            "name": "MEMORY_LIMIT",
-            "value": "1Gi",
-            "required": false
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The web server's HTTP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 8443,
-                        "targetPort": 8443
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "secure-${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The web server's HTTPS port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11211,
-                        "targetPort": 11211
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-memcached",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Memcached service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11333,
-                        "targetPort": 11333
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-hotrod",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Hot Rod service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "ping",
-                        "port": 8888
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-ping",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "The JGroups ping port for clustering."
-                }
-            }
-        },
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "id": "${APPLICATION_NAME}-http",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Route for application's HTTP service."
-                }
-            },
-            "spec": {
-                "host": "${HOSTNAME_HTTP}",
-                "to": {
-                    "name": "${APPLICATION_NAME}"
-                }
-            }
-        },
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "id": "${APPLICATION_NAME}-https",
-            "metadata": {
-                "name": "secure-${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Route for application's HTTPS service."
-                }
-            },
-            "spec": {
-                "host": "${HOSTNAME_HTTPS}",
-                "to": {
-                    "name": "secure-${APPLICATION_NAME}"
-                },
-                "tls": {
-                    "termination": "passthrough"
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-datagrid65-openshift:1.6"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}",
-                                "image": "jboss-datagrid65-openshift",
-                                "imagePullPolicy": "Always",
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "name": "datagrid-keystore-volume",
-                                        "mountPath": "/etc/datagrid-secret-volume",
-                                        "readOnly": true
-                                    },
-                                    {
-                                        "name": "datagrid-jgroups-keystore-volume",
-                                        "mountPath": "/etc/jgroups-encrypt-secret-volume",
-                                        "readOnly": true
-                                    }
-                                ],
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/livenessProbe.sh"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 60
-                                },
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "http",
-                                        "containerPort": 8080,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "https",
-                                        "containerPort": 8443,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "ping",
-                                        "containerPort": 8888,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "memcached",
-                                        "containerPort": 11211,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod-internal",
-                                        "containerPort": 11222,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod",
-                                        "containerPort": 11333,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "USERNAME",
-                                        "value": "${USERNAME}"
-                                    },
-                                    {
-                                        "name": "PASSWORD",
-                                        "value": "${PASSWORD}"
-                                    },
-                                    {
-                                        "name": "HTTPS_KEYSTORE_DIR",
-                                        "value": "/etc/datagrid-secret-volume"
-                                    },
-                                    {
-                                        "name": "HTTPS_KEYSTORE",
-                                        "value": "${HTTPS_KEYSTORE}"
-                                    },
-                                    {
-                                        "name": "HTTPS_NAME",
-                                        "value": "${HTTPS_NAME}"
-                                    },
-                                    {
-                                        "name": "HTTPS_PASSWORD",
-                                        "value": "${HTTPS_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_PING_PROTOCOL",
-                                        "value": "openshift.DNS_PING"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-ping"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_PORT",
-                                        "value": "8888"
-                                    },
-                                    {
-                                        "name": "INFINISPAN_CONNECTORS",
-                                        "value": "${INFINISPAN_CONNECTORS}"
-                                    },
-                                    {
-                                        "name": "CACHE_NAMES",
-                                        "value": "${CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "DATAVIRT_CACHE_NAMES",
-                                        "value": "${DATAVIRT_CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "CACHE_TYPE_DEFAULT",
-                                        "value": "${CACHE_TYPE_DEFAULT}"
-                                    },
-                                    {
-                                        "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-                                        "value": "${ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH}"
-                                    },
-                                    {
-                                        "name": "HOTROD_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-hotrod"
-                                    },
-                                    {
-                                        "name": "MEMCACHED_CACHE",
-                                        "value": "${MEMCACHED_CACHE}"
-                                    },
-                                    {
-                                        "name": "REST_SECURITY_DOMAIN",
-                                        "value": "${REST_SECURITY_DOMAIN}"
-                                    },
-                                    {
-                                        "name": "HOTROD_ENCRYPTION",
-                                        "value": "${HTTPS_NAME}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_SECRET",
-                                        "value": "${JGROUPS_ENCRYPT_SECRET}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_KEYSTORE",
-                                        "value": "${JGROUPS_ENCRYPT_KEYSTORE}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_KEYSTORE_DIR",
-                                        "value": "/etc/jgroups-encrypt-secret-volume"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_NAME",
-                                        "value": "${JGROUPS_ENCRYPT_NAME}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_PASSWORD",
-                                        "value": "${JGROUPS_ENCRYPT_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_CLUSTER_PASSWORD",
-                                        "value": "${JGROUPS_CLUSTER_PASSWORD}"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "datagrid-keystore-volume",
-                                "secret": {
-                                    "secretName": "${HTTPS_SECRET}"
-                                }
-                            },
-                            {
-                                "name": "datagrid-jgroups-keystore-volume",
-                                "secret": {
-                                    "secretName": "${JGROUPS_ENCRYPT_SECRET}"
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}

File diff suppressed because it is too large
+ 0 - 912
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-mysql-persistent.json


File diff suppressed because it is too large
+ 0 - 882
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-mysql.json


File diff suppressed because it is too large
+ 0 - 884
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-postgresql-persistent.json


File diff suppressed because it is too large
+ 0 - 853
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid65-postgresql.json


+ 0 - 458
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid71-basic.json

@@ -1,458 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "iconClass": "icon-datagrid",
-            "tags": "datagrid,jboss",
-            "version": "1.4.14",
-            "openshift.io/display-name": "JBoss Data Grid 7.1 (Ephemeral, no https)",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "description": "An example JBoss Data Grid application. For more information about using this template, see https://github.com/jboss-openshift/application-templates.",
-            "template.openshift.io/long-description": "This template defines resources needed to develop Red Hat JBoss Data Grid 7.1 based application, including a deployment configuration, using using ephemeral (temporary) storage and communication using http.",
-            "template.openshift.io/documentation-url": "https://access.redhat.com/documentation/en/red-hat-jboss-data-grid/",
-            "template.openshift.io/support-url": "https://access.redhat.com"
-        },
-        "name": "datagrid71-basic"
-    },
-    "labels": {
-        "template": "datagrid71-basic",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new data grid service has been created in your project. It supports connector type(s) \"${INFINISPAN_CONNECTORS}\".",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "datagrid-app",
-            "required": true
-        },
-        {
-            "displayName": "Custom http Route Hostname",
-            "description": "Custom hostname for http service route.  Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
-            "name": "HOSTNAME_HTTP",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Username",
-            "description": "User name for JDG user.",
-            "name": "USERNAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Password",
-            "description": "The password to access the JDG Caches. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s). (optional)",
-            "name": "PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JDG User Roles/Groups",
-            "description": "Comma delimited list of roles/groups associated with the JDG user",
-            "name": "ADMIN_GROUP",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Hotrod Authentication",
-            "description": "Enable Hotrod Authentication",
-            "name": "HOTROD_AUTHENTICATION",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Container Security Role Mapper",
-            "description": "Defines which role mapper to use for cache authentication",
-            "name": "CONTAINER_SECURITY_ROLE_MAPPER",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Container Security Roles",
-            "description": "Comma delimited list of role names and assigned permissions",
-            "name": "CONTAINER_SECURITY_ROLES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        },
-        {
-            "displayName": "Infinispan Connectors",
-            "description": "Comma-separated list of connector types that should be configured (defaults to 'memcached,hotrod,rest')",
-            "name": "INFINISPAN_CONNECTORS",
-            "value": "hotrod,memcached,rest",
-            "required": false
-        },
-        {
-            "displayName": "Cache Names",
-            "description": "Comma-separated list of caches to configure.  By default, a distributed-cache, with a mode of SYNC will be configured for each entry.",
-            "name": "CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Datavirt Cache Names",
-            "description": "Comma-separated list of caches to configure for use by Red Hat JBoss Data Virtualization for materialization of views.  Three caches will be created for each named cache: <name>, <name>_staging and <name>_alias.",
-            "name": "DATAVIRT_CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Default Cache Type",
-            "description": "Default cache type for all caches. If empty then distributed will be the default",
-            "name": "CACHE_TYPE_DEFAULT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Encryption Requires SSL Client Authentication?",
-            "description": "",
-            "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Memcached Cache Name",
-            "description": "The name of the cache to expose through this memcached connector (defaults to 'default')",
-            "name": "MEMCACHED_CACHE",
-            "value": "default",
-            "required": false
-        },
-        {
-            "displayName": "REST Security Domain",
-            "description": "The domain, declared in the security subsystem, that should be used to authenticate access to the REST endpoint",
-            "name": "REST_SECURITY_DOMAIN",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Cluster Password",
-            "description": "JGroups cluster password",
-            "name": "JGROUPS_CLUSTER_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": true
-        },
-        {
-            "description": "Container memory limit",
-            "name": "MEMORY_LIMIT",
-            "value": "1Gi",
-            "required": false
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The web server's HTTP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11211,
-                        "targetPort": 11211
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-memcached",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Memcached service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11333,
-                        "targetPort": 11333
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-hotrod",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Hot Rod service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "ping",
-                        "port": 8888
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-ping",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "The JGroups ping port for clustering."
-                }
-            }
-        },
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "id": "${APPLICATION_NAME}-http",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Route for application's HTTP service."
-                }
-            },
-            "spec": {
-                "host": "${HOSTNAME_HTTP}",
-                "to": {
-                    "name": "${APPLICATION_NAME}"
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-datagrid71-openshift:1.3"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}",
-                                "image": "jboss-datagrid71-openshift",
-                                "imagePullPolicy": "Always",
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/livenessProbe.sh"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 60
-                                },
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "http",
-                                        "containerPort": 8080,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "ping",
-                                        "containerPort": 8888,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "memcached",
-                                        "containerPort": 11211,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod-internal",
-                                        "containerPort": 11222,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod",
-                                        "containerPort": 11333,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "USERNAME",
-                                        "value": "${USERNAME}"
-                                    },
-                                    {
-                                        "name": "PASSWORD",
-                                        "value": "${PASSWORD}"
-                                    },
-                                    {
-                                        "name": "ADMIN_GROUP",
-                                        "value": "${ADMIN_GROUP}"
-                                    },
-                                    {
-                                        "name": "HOTROD_AUTHENTICATION",
-                                        "value": "${HOTROD_AUTHENTICATION}"
-                                    },
-                                    {
-                                        "name": "CONTAINER_SECURITY_ROLE_MAPPER",
-                                        "value": "${CONTAINER_SECURITY_ROLE_MAPPER}"
-                                    },
-                                    {
-                                        "name": "CONTAINER_SECURITY_ROLES",
-                                        "value": "${CONTAINER_SECURITY_ROLES}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_PING_PROTOCOL",
-                                        "value": "openshift.DNS_PING"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-ping"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_PORT",
-                                        "value": "8888"
-                                    },
-                                    {
-                                        "name": "INFINISPAN_CONNECTORS",
-                                        "value": "${INFINISPAN_CONNECTORS}"
-                                    },
-                                    {
-                                        "name": "CACHE_NAMES",
-                                        "value": "${CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "DATAVIRT_CACHE_NAMES",
-                                        "value": "${DATAVIRT_CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "CACHE_TYPE_DEFAULT",
-                                        "value": "${CACHE_TYPE_DEFAULT}"
-                                    },
-                                    {
-                                        "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-                                        "value": "${ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH}"
-                                    },
-                                    {
-                                        "name": "HOTROD_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-hotrod"
-                                    },
-                                    {
-                                        "name": "MEMCACHED_CACHE",
-                                        "value": "${MEMCACHED_CACHE}"
-                                    },
-                                    {
-                                        "name": "REST_SECURITY_DOMAIN",
-                                        "value": "${REST_SECURITY_DOMAIN}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_CLUSTER_PASSWORD",
-                                        "value": "${JGROUPS_CLUSTER_PASSWORD}"
-                                    }
-                                ]
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}

+ 0 - 639
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid71-https.json

@@ -1,639 +0,0 @@
-{
-    "kind": "Template",
-    "apiVersion": "v1",
-    "metadata": {
-        "annotations": {
-            "iconClass": "icon-datagrid",
-            "tags": "datagrid,jboss,hidden",
-            "version": "1.4.14",
-            "openshift.io/display-name": "JBoss Data Grid 7.1 (Ephemeral with https)",
-            "openshift.io/provider-display-name": "Red Hat, Inc.",
-            "description": "An example JBoss Data Grid application. For more information about using this template, see https://github.com/jboss-openshift/application-templates.",
-            "template.openshift.io/long-description": "This template defines resources needed to develop Red Hat JBoss Data Grid 7.1 based application, including a deployment configuration, using using ephemeral (temporary) storage and secure communication using https.",
-            "template.openshift.io/documentation-url": "https://access.redhat.com/documentation/en/red-hat-jboss-data-grid/",
-            "template.openshift.io/support-url": "https://access.redhat.com"
-        },
-        "name": "datagrid71-https"
-    },
-    "labels": {
-        "template": "datagrid71-https",
-        "xpaas": "1.4.14"
-    },
-    "message": "A new data grid service has been created in your project. It supports connector type(s) \"${INFINISPAN_CONNECTORS}\". Please be sure to create the following secrets: \"${HTTPS_SECRET}\" containing the ${HTTPS_KEYSTORE} file used for serving secure content; \"${JGROUPS_ENCRYPT_SECRET}\" containing the ${JGROUPS_ENCRYPT_KEYSTORE} file used for securing JGroups communications.",
-    "parameters": [
-        {
-            "displayName": "Application Name",
-            "description": "The name for the application.",
-            "name": "APPLICATION_NAME",
-            "value": "datagrid-app",
-            "required": true
-        },
-        {
-            "displayName": "Custom http Route Hostname",
-            "description": "Custom hostname for http service route.  Leave blank for default hostname, e.g.: <application-name>-<project>.<default-domain-suffix>",
-            "name": "HOSTNAME_HTTP",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Custom https Route Hostname",
-            "description": "Custom hostname for https service route.  Leave blank for default hostname, e.g.: secure-<application-name>-<project>.<default-domain-suffix>",
-            "name": "HOSTNAME_HTTPS",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Username",
-            "description": "User name for JDG user.",
-            "name": "USERNAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Password",
-            "description": "The password to access the JDG Caches. Must be different than username; must not be root, admin, or administrator; must contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), and 1 non-alphanumeric symbol(s). (optional)",
-            "name": "PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JDG User Roles/Groups",
-            "description": "Comma delimited list of roles/groups associated with the JDG user",
-            "name": "ADMIN_GROUP",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Hotrod Authentication",
-            "description": "Enable Hotrod Authentication",
-            "name": "HOTROD_AUTHENTICATION",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Container Security Role Mapper",
-            "description": "Defines which role mapper to use for cache authentication",
-            "name": "CONTAINER_SECURITY_ROLE_MAPPER",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Container Security Roles",
-            "description": "Comma delimited list of role names and assigned permissions",
-            "name": "CONTAINER_SECURITY_ROLES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Server Keystore Secret Name",
-            "description": "The name of the secret containing the keystore file",
-            "name": "HTTPS_SECRET",
-            "value": "datagrid-app-secret",
-            "required": true
-        },
-        {
-            "displayName": "Server Keystore Filename",
-            "description": "The name of the keystore file within the secret",
-            "name": "HTTPS_KEYSTORE",
-            "value": "keystore.jks",
-            "required": false
-        },
-        {
-            "displayName": "Server Certificate Name",
-            "description": "The name associated with the server certificate",
-            "name": "HTTPS_NAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Server Keystore Password",
-            "description": "The password for the keystore and certificate",
-            "name": "HTTPS_PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "ImageStream Namespace",
-            "description": "Namespace in which the ImageStreams for Red Hat Middleware images are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project.",
-            "name": "IMAGE_STREAM_NAMESPACE",
-            "value": "openshift",
-            "required": true
-        },
-        {
-            "displayName": "Infinispan Connectors",
-            "description": "Comma-separated list of connector types that should be configured (defaults to 'memcached,hotrod,rest')",
-            "name": "INFINISPAN_CONNECTORS",
-            "value": "hotrod,memcached,rest",
-            "required": false
-        },
-        {
-            "displayName": "Cache Names",
-            "description": "Comma-separated list of caches to configure.  By default, a distributed-cache, with a mode of SYNC will be configured for each entry.",
-            "name": "CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Datavirt Cache Names",
-            "description": "Comma-separated list of caches to configure for use by Red Hat JBoss Data Virtualization for materialization of views.  Three caches will be created for each named cache: <name>, <name>_staging and <name>_alias.",
-            "name": "DATAVIRT_CACHE_NAMES",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Default Cache Type",
-            "description": "Default cache type for all caches. If empty then distributed will be the default",
-            "name": "CACHE_TYPE_DEFAULT",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Encryption Requires SSL Client Authentication?",
-            "description": "",
-            "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "Memcached Cache Name",
-            "description": "The name of the cache to expose through this memcached connector (defaults to 'default')",
-            "name": "MEMCACHED_CACHE",
-            "value": "default",
-            "required": false
-        },
-        {
-            "displayName": "REST Security Domain",
-            "description": "The domain, declared in the security subsystem, that should be used to authenticate access to the REST endpoint",
-            "name": "REST_SECURITY_DOMAIN",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Secret Name",
-            "description": "The name of the secret containing the keystore file",
-            "name": "JGROUPS_ENCRYPT_SECRET",
-            "value": "datagrid-app-secret",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Keystore Filename",
-            "description": "The name of the keystore file within the secret",
-            "name": "JGROUPS_ENCRYPT_KEYSTORE",
-            "value": "jgroups.jceks",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Certificate Name",
-            "description": "The name associated with the server certificate",
-            "name": "JGROUPS_ENCRYPT_NAME",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Keystore Password",
-            "description": "The password for the keystore and certificate",
-            "name": "JGROUPS_ENCRYPT_PASSWORD",
-            "value": "",
-            "required": false
-        },
-        {
-            "displayName": "JGroups Cluster Password",
-            "description": "JGroups cluster password",
-            "name": "JGROUPS_CLUSTER_PASSWORD",
-            "from": "[a-zA-Z0-9]{8}",
-            "generate": "expression",
-            "required": true
-        },
-        {
-            "description": "Container memory limit",
-            "name": "MEMORY_LIMIT",
-            "value": "1Gi",
-            "required": false
-        }
-    ],
-    "objects": [
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 8080,
-                        "targetPort": 8080
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The web server's HTTP port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 8443,
-                        "targetPort": 8443
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "secure-${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "The web server's HTTPS port."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11211,
-                        "targetPort": 11211
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-memcached",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Memcached service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "ports": [
-                    {
-                        "port": 11333,
-                        "targetPort": 11333
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-hotrod",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Hot Rod service for clustered applications."
-                }
-            }
-        },
-        {
-            "kind": "Service",
-            "apiVersion": "v1",
-            "spec": {
-                "clusterIP": "None",
-                "ports": [
-                    {
-                        "name": "ping",
-                        "port": 8888
-                    }
-                ],
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                }
-            },
-            "metadata": {
-                "name": "${APPLICATION_NAME}-ping",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "service.alpha.kubernetes.io/tolerate-unready-endpoints": "true",
-                    "description": "The JGroups ping port for clustering."
-                }
-            }
-        },
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "id": "${APPLICATION_NAME}-http",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Route for application's HTTP service."
-                }
-            },
-            "spec": {
-                "host": "${HOSTNAME_HTTP}",
-                "to": {
-                    "name": "${APPLICATION_NAME}"
-                }
-            }
-        },
-        {
-            "kind": "Route",
-            "apiVersion": "v1",
-            "id": "${APPLICATION_NAME}-https",
-            "metadata": {
-                "name": "secure-${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                },
-                "annotations": {
-                    "description": "Route for application's HTTPS service."
-                }
-            },
-            "spec": {
-                "host": "${HOSTNAME_HTTPS}",
-                "to": {
-                    "name": "secure-${APPLICATION_NAME}"
-                },
-                "tls": {
-                    "termination": "passthrough"
-                }
-            }
-        },
-        {
-            "kind": "DeploymentConfig",
-            "apiVersion": "v1",
-            "metadata": {
-                "name": "${APPLICATION_NAME}",
-                "labels": {
-                    "application": "${APPLICATION_NAME}"
-                }
-            },
-            "spec": {
-                "strategy": {
-                    "type": "Recreate"
-                },
-                "triggers": [
-                    {
-                        "type": "ImageChange",
-                        "imageChangeParams": {
-                            "automatic": true,
-                            "containerNames": [
-                                "${APPLICATION_NAME}"
-                            ],
-                            "from": {
-                                "kind": "ImageStreamTag",
-                                "namespace": "${IMAGE_STREAM_NAMESPACE}",
-                                "name": "jboss-datagrid71-openshift:1.3"
-                            }
-                        }
-                    },
-                    {
-                        "type": "ConfigChange"
-                    }
-                ],
-                "replicas": 1,
-                "selector": {
-                    "deploymentConfig": "${APPLICATION_NAME}"
-                },
-                "template": {
-                    "metadata": {
-                        "name": "${APPLICATION_NAME}",
-                        "labels": {
-                            "deploymentConfig": "${APPLICATION_NAME}",
-                            "application": "${APPLICATION_NAME}"
-                        }
-                    },
-                    "spec": {
-                        "terminationGracePeriodSeconds": 60,
-                        "containers": [
-                            {
-                                "name": "${APPLICATION_NAME}",
-                                "image": "jboss-datagrid71-openshift",
-                                "imagePullPolicy": "Always",
-                                "resources": {
-                                    "limits": {
-                                        "memory": "${MEMORY_LIMIT}"
-                                    }
-                                },
-                                "volumeMounts": [
-                                    {
-                                        "name": "datagrid-keystore-volume",
-                                        "mountPath": "/etc/datagrid-secret-volume",
-                                        "readOnly": true
-                                    },
-                                    {
-                                        "name": "datagrid-jgroups-keystore-volume",
-                                        "mountPath": "/etc/jgroups-encrypt-secret-volume",
-                                        "readOnly": true
-                                    }
-                                ],
-                                "livenessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/livenessProbe.sh"
-                                        ]
-                                    },
-                                    "initialDelaySeconds": 60
-                                },
-                                "readinessProbe": {
-                                    "exec": {
-                                        "command": [
-                                            "/bin/bash",
-                                            "-c",
-                                            "/opt/datagrid/bin/readinessProbe.sh"
-                                        ]
-                                    }
-                                },
-                                "ports": [
-                                    {
-                                        "name": "jolokia",
-                                        "containerPort": 8778,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "http",
-                                        "containerPort": 8080,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "https",
-                                        "containerPort": 8443,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "ping",
-                                        "containerPort": 8888,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "memcached",
-                                        "containerPort": 11211,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod-internal",
-                                        "containerPort": 11222,
-                                        "protocol": "TCP"
-                                    },
-                                    {
-                                        "name": "hotrod",
-                                        "containerPort": 11333,
-                                        "protocol": "TCP"
-                                    }
-                                ],
-                                "env": [
-                                    {
-                                        "name": "USERNAME",
-                                        "value": "${USERNAME}"
-                                    },
-                                    {
-                                        "name": "PASSWORD",
-                                        "value": "${PASSWORD}"
-                                    },
-                                    {
-                                        "name": "ADMIN_GROUP",
-                                        "value": "${ADMIN_GROUP}"
-                                    },
-                                    {
-                                        "name": "HOTROD_AUTHENTICATION",
-                                        "value": "${HOTROD_AUTHENTICATION}"
-                                    },
-                                    {
-                                        "name": "CONTAINER_SECURITY_ROLE_MAPPER",
-                                        "value": "${CONTAINER_SECURITY_ROLE_MAPPER}"
-                                    },
-                                    {
-                                        "name": "CONTAINER_SECURITY_ROLES",
-                                        "value": "${CONTAINER_SECURITY_ROLES}"
-                                    },
-                                    {
-                                        "name": "HTTPS_KEYSTORE_DIR",
-                                        "value": "/etc/datagrid-secret-volume"
-                                    },
-                                    {
-                                        "name": "HTTPS_KEYSTORE",
-                                        "value": "${HTTPS_KEYSTORE}"
-                                    },
-                                    {
-                                        "name": "HTTPS_NAME",
-                                        "value": "${HTTPS_NAME}"
-                                    },
-                                    {
-                                        "name": "HTTPS_PASSWORD",
-                                        "value": "${HTTPS_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_PING_PROTOCOL",
-                                        "value": "openshift.DNS_PING"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-ping"
-                                    },
-                                    {
-                                        "name": "OPENSHIFT_DNS_PING_SERVICE_PORT",
-                                        "value": "8888"
-                                    },
-                                    {
-                                        "name": "INFINISPAN_CONNECTORS",
-                                        "value": "${INFINISPAN_CONNECTORS}"
-                                    },
-                                    {
-                                        "name": "CACHE_NAMES",
-                                        "value": "${CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "DATAVIRT_CACHE_NAMES",
-                                        "value": "${DATAVIRT_CACHE_NAMES}"
-                                    },
-                                    {
-                                        "name": "CACHE_TYPE_DEFAULT",
-                                        "value": "${CACHE_TYPE_DEFAULT}"
-                                    },
-                                    {
-                                        "name": "ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH",
-                                        "value": "${ENCRYPTION_REQUIRE_SSL_CLIENT_AUTH}"
-                                    },
-                                    {
-                                        "name": "HOTROD_SERVICE_NAME",
-                                        "value": "${APPLICATION_NAME}-hotrod"
-                                    },
-                                    {
-                                        "name": "HOTROD_ENCRYPTION",
-                                        "value": "${HTTPS_NAME}"
-                                    },
-                                    {
-                                        "name": "MEMCACHED_CACHE",
-                                        "value": "${MEMCACHED_CACHE}"
-                                    },
-                                    {
-                                        "name": "REST_SECURITY_DOMAIN",
-                                        "value": "${REST_SECURITY_DOMAIN}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_SECRET",
-                                        "value": "${JGROUPS_ENCRYPT_SECRET}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_KEYSTORE",
-                                        "value": "${JGROUPS_ENCRYPT_KEYSTORE}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_KEYSTORE_DIR",
-                                        "value": "/etc/jgroups-encrypt-secret-volume"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_NAME",
-                                        "value": "${JGROUPS_ENCRYPT_NAME}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_ENCRYPT_PASSWORD",
-                                        "value": "${JGROUPS_ENCRYPT_PASSWORD}"
-                                    },
-                                    {
-                                        "name": "JGROUPS_CLUSTER_PASSWORD",
-                                        "value": "${JGROUPS_CLUSTER_PASSWORD}"
-                                    }
-                                ]
-                            }
-                        ],
-                        "volumes": [
-                            {
-                                "name": "datagrid-keystore-volume",
-                                "secret": {
-                                    "secretName": "${HTTPS_SECRET}"
-                                }
-                            },
-                            {
-                                "name": "datagrid-jgroups-keystore-volume",
-                                "secret": {
-                                    "secretName": "${JGROUPS_ENCRYPT_SECRET}"
-                                }
-                            }
-                        ]
-                    }
-                }
-            }
-        }
-    ]
-}

+ 0 - 0
roles/openshift_examples/files/examples/v3.10/xpaas-templates/datagrid71-mysql-persistent.json


Some files were not shown because too many files changed in this diff