Sunday, January 24, 2021

Configure Weblogic Custom Network Channel

HOWTO

WLST to add custom channel

[dave@dave base_domain]$ more Script1611468688411.py 

cd('/Servers/AdminServer')
cmo.createNetworkAccessPoint('DaveChannel')

cd('/Servers/AdminServer/NetworkAccessPoints/DaveChannel')
cmo.setProtocol('t3')
cmo.setListenPort(8001)
cmo.setEnabled(true)
cmo.setHttpEnabledForThisProtocol(true)
cmo.setTunnelingEnabled(false)
cmo.setOutboundEnabled(false)
cmo.setTwoWaySSLEnabled(false)
cmo.setClientCertificateEnforced(false)

activate()

Weblogic server log

####<Jan 24, 2021 6:13:42,045 AM GMT> <Notice> <Server> <f403a85ea0c9> <AdminServer> <weblogic.socket.ServerListenThread> <<WLS Kernel>> <> <365e7dc7-40ef-4cff-bf44-b736fef5ffdd-0000000e> <1611468822045> <[severity-value: 32] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] 
> <BEA-002613> <Channel "DaveChannel[1]" is now listening on 127.0.0.1:8001 for protocols t3, http.>

Friday, January 22, 2021

Ansible - create multiple directories

HOWTO

 

GitHub repo

 


 Create role

- name: Create /app/dave  dir
  become: true
  file:
    path: /app/dave
    state: directory
    owner: dave
    group: dave
    recurse: yes
    mode: '0755'

- name: Create /app/dave/  appl dirs
  file:
      path: "{{ item }}"
      owner: dave
      group: dave
      recurse: yes
  with_items:
        - /app/dave/opt/jboss
        - /app/dave/data/

Dir structure
[dave@dave devops-ansible]$ find create-dev-env/
create-dev-env/
create-dev-env/tasks
create-dev-env/tasks/main.yml

 

Call role 

Create file local.yml

---
- name: Configure local dev env
  hosts: localhost
  connection: local
  gather_facts: no
  roles:
    - dave-dev-env

 

Run playbook

ansible-playbook local.yml