This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# a3 = Automate Atlassian Addons | |
def get_server_info(server, auth): | |
''' Check application version on the server ''' | |
print("\n>>> Checking server information") | |
server_application = server.split('.')[0].split('-')[0] | |
url = "https://{}/rest/applinks/1.0/manifest".format(server) | |
headers = {'content-type': 'application/xml'} | |
response = requests.get(url, auth=auth, headers=headers) | |
response.raise_for_status() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Check if this is a new cluster that has not been initialized | |
stat: | |
path: "{{ atl_product_home_shared }}/export/indexsnapshots" | |
register: snapshotfolder | |
- name: Remove offline jira nodes from clusternode table | |
postgresql_query: | |
login_host: "{{ atl_db_host }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
atl_db_root_password: "{{ (lookup('aws_secret', '/jira/database/master', region='ap-southeast-2')| from_json).get('password') }}" | |
current_epoch_time_sec: "{{ ansible_date_time.epoch }}" | |
delete_threshold_hours: '24' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
vars: | |
accounts: | |
dev: | |
account: 123 | |
contact: Jackie@123.com | |
uat: | |
account: 456 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: jira | |
labels: | |
app: jira | |
annotations: | |
traefik.ingress.kubernetes.io/affinity: "true" | |
traefik.ingress.kubernetes.io/session-cookie-name: "sticky" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: sandbox | |
namespace: default | |
annotations: | |
kubernetes.io/ingress.class: traefik | |
spec: | |
rules: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ kubectl describe sc glusterfs | |
Name: glusterfs | |
IsDefaultClass: Yes | |
Annotations: kubectl.kubernetes.io/last-applied-configuration={"allowVolumeExpansion":true,"apiVersion":"storage.k8s.io/v1","kind":"StorageClass","metadata":{"annotations":{},"name":"glusterfs"},"parameters":{"resturl":"http://xxx.xxx.xxx.xxx:8080","volumetype":"none"},"provisioner":"kubernetes.io/glusterfs"} | |
,storageclass.kubernetes.io/is-default-class=true | |
Provisioner: kubernetes.io/glusterfs | |
Parameters: resturl=http://xxx.xxx.xxx.xxx:8080,volumetype=none | |
AllowVolumeExpansion: True | |
MountOptions: <none> | |
ReclaimPolicy: Delete |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: jira-postgres | |
labels: | |
app: jira-postgres | |
spec: | |
type: ClusterIP | |
ports: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: jira-postgres | |
labels: | |
app: jira-postgres | |
spec: | |
replicas: 1 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
kind: PersistentVolumeClaim | |
apiVersion: v1 | |
metadata: | |
name: jira-postgres-pvc | |
labels: | |
app: jira-postgres | |
spec: | |
accessModes: | |
- ReadWriteOnce |