Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
pycklets / resources / frecklet / keycloak-postgresql-helper-script-file.frecklet
Size: Mime:
doc: {}
args:
  postgresql_driver_jar:
    doc: The location to the postgres driver jar.
    type: string
    required: true
  keycloak_db_name:
    doc: The name of the keycloak db.
    type: string
    required: true
    default: keycloak
  keycloak_db_password:
    doc: The password for the keycloak db.
    type: string
    secret: true
    required: true
    default: keycloak
  keycloak_db_user:
    doc: The user for the keycloak db.
    type: string
    required: true
    default: keycloak
frecklets:
- file-with-content:
    path: '{{:: path ::}}'
    group: '{{:: group ::}}'
    owner: '{{:: owner ::}}'
    mode: '{{:: mode ::}}'
    content: "embed-server --server-config=standalone.xml --std-out=echo\n\nbatch\n#\n# remove the default provided datasource\n#\n/subsystem=datasources/data-source=KeycloakDS/:remove\n\n#\n# add it back using PostgreSQL\n#\nmodule add --name=org.postgres --resources={{:: postgresql_driver_jar ::}} --dependencies=javax.api,javax.transaction.api\n\n/subsystem=datasources/jdbc-driver=postgres:add(driver-name=\"postgres\",driver-module-name=\"org.postgres\",driver-class-name=org.postgresql.Driver)\n\n/subsystem=datasources/data-source=KeycloakDS/:add(connection-url=jdbc:postgresql://localhost:5432/{{:: keycloak_db_name ::}},driver-name=postgres,jndi-name=java:jboss/datasources/KeycloakDS,password={{:: keycloak_db_password ::}},user-name={{:: keycloak_db_user ::}})\n\nrun-batch"
meta: {}