c4727ab558b91445c07aba3e6989ab6c8709ee74

Author
Robby Russell <robby@planetargon.com>
Committer
Robby Russell <robby@planetargon.com>
Date

Message

Merge pull request #1262 from fred-o/glassfish-plugin

Glassfish plugin

Diff

This diff is truncated to protect this page.

  1diff --git a/plugins/glassfish/_asadmin b/plugins/glassfish/_asadmin
  2new file mode 100644
  3index 0000000000000000000000000000000000000000..a6a7af5498aaac1d64ec25a6b3fbad6bd7824865
  4--- /dev/null
  5+++ b/plugins/glassfish/_asadmin
  6@@ -0,0 +1,1150 @@
  7+#compdef asadmin
  8+#autoload
  9+
 10+local -a _1st_arguments
 11+_1st_arguments=(
 12+    "add-library:adds one or more library JAR files to GlassFish Server"
 13+    "add-resources:creates the resources specified in an XML file"
 14+    "apply-http-lb-changes:applies load balancer configuration changes to the load balancer"
 15+    "backup-domain:performs a backup on the domain"
 16+    "change-admin-password:changes the administrator password"
 17+    "change-master-broker:changes the master broker in a Message Queue cluster providing JMS services for a GlassFish Server cluster."
 18+    "change-master-password:changes the master password"
 19+    "collect-log-files:creates a ZIP archive of all available log files"
 20+    "configure-jms-cluster:configures the Message Queue cluster providing JMS services to a GlassFish Server cluster"
 21+    "configure-lb-weight:sets load balancing weights for clustered instances"
 22+    "configure-ldap-for-admin:configures the authentication realm named admin-realm for the given LDAP"
 23+    "copy-config:copies an existing named configuration to create another configuration"
 24+    "create-admin-object:adds the administered object with the specified JNDI name for a resource adapter"
 25+    "create-application-ref:creates a reference to an application"
 26+    "create-audit-module:adds an audit module"
 27+    "create-auth-realm:adds the named authentication realm"
 28+    "create-cluster:creates a GlassFish Server cluster"
 29+    "create-connector-connection-pool:adds a connection pool with the specified connection pool name"
 30+    "create-connector-resource:registers the connector resource with the specified JNDI name"
 31+    "create-connector-security-map:creates a security map for the specified connector connection pool"
 32+    "create-connector-work-security-map:creates a work security map for the specified resource adapter"
 33+    "create-custom-resource:creates a custom resource"
 34+    "create-domain:creates a domain"
 35+    "create-file-user:creates a new file user"
 36+    "create-http:sets HTTP parameters for a protocol"
 37+    "create-http-health-checker:creates a health-checker for a specified load balancer configuration"
 38+    "create-http-lb:creates a load balancer"
 39+    "create-http-lb-config:creates a configuration for the load balancer"
 40+    "create-http-lb-ref:adds an existing cluster or server instance to an existing load balancer configuration or load balancer"
 41+    "create-http-listener:adds a new HTTP network listener socket"
 42+    "create-http-redirect:adds a new HTTP redirect"
 43+    "create-iiop-listener:adds an IIOP listener"
 44+    "create-instance:creates a GlassFish Server instance"
 45+    "create-jacc-provider:enables administrators to create a JACC provider that can be used by third-party authorization modules for applications running in GlassFish Server"
 46+    "create-javamail-resource:creates a JavaMail session resource"
 47+    "create-jdbc-connection-pool:registers a JDBC connection pool"
 48+    "create-jdbc-resource:creates a JDBC resource with the specified JNDI name"
 49+    "create-jms-host:creates a JMS host"
 50+    "create-jms-resource:creates a JMS resource"
 51+    "create-jmsdest:creates a JMS physical destination"
 52+    "create-jndi-resource:registers a JNDI resource"
 53+    "create-jvm-options:creates options for the Java application launcher"
 54+    "create-lifecycle-module:creates a lifecycle module"
 55+    "create-local-instance:creates a GlassFish Server instance on the host where the subcommand is run"
 56+    "create-message-security-provider:enables administrators to create a message security provider, which specifies how SOAP messages will be secured."
 57+    "create-network-listener:adds a new network listener socket"
 58+    "create-node-config:creates a node that is not enabled for remote communication"
 59+    "create-node-dcom:creates a node that is enabled for com munication over DCOM"
 60+    "create-node-ssh:creates a node that is enabled for communication over SSH"
 61+    "create-password-alias:creates a password alias"
 62+    "create-profiler:creates the profiler element"
 63+    "create-protocol:adds a new protocol"
 64+    "create-protocol-filter:adds a new protocol filter"
 65+    "create-protocol-finder:adds a new protocol finder"
 66+    "create-resource-adapter-config:creates the configuration information for the connector module"
 67+    "create-resource-ref:creates a reference to a resource"
 68+    "create-service:configures the starting of a DAS or a GlassFish Server instance on an unattended boot"
 69+    "create-ssl:creates and configures the SSL element in the selected HTTP listener, IIOP listener, or IIOP service"
 70+    "create-system-properties:adds one or more system property elements that can be referenced elsewhere in the configuration."
 71+    "create-threadpool:adds a thread pool"
 72+    "create-transport:adds a new transport"
 73+    "create-virtual-server:creates the named virtual server"
 74+    "delete-admin-object:removes the administered object with the specified JNDI name."
 75+    "delete-application-ref:removes a reference to an applica tion"
 76+    "delete-audit-module:removes the named audit-module"
 77+    "delete-auth-realm:removes the named authentication realm"
 78+    "delete-cluster:deletes a GlassFish Server cluster"
 79+    "delete-config:deletes an existing named configuration"
 80+    "delete-connector-connection-pool:removes the specified connector connection pool"
 81+    "delete-connector-resource:removes the connector resource with the specified JNDI name"
 82+    "delete-connector-security-map:deletes a security map for the specified connector connection pool"
 83+    "delete-connector-work-security-map:deletes a work security map for the specified resource adapter"
 84+    "delete-custom-resource:removes a custom resource"
 85+    "delete-domain:deletes a domain"
 86+    "delete-file-user:removes the named file user"
 87+    "delete-http:removes HTTP parameters from a protocol"
 88+    "delete-http-health-checker:deletes the health-checker for a specified load balancer configuration"
 89+    "delete-http-lb:deletes a load balancer"
 90+    "delete-http-lb-config:deletes a load balancer configuration"
 91+    "delete-http-lb-ref:deletes the cluster or server instance from a load balancer"
 92+    "delete-http-listener:removes a network listener"
 93+    "delete-http-redirect:removes an HTTP redirect"
 94+    "delete-iiop-listener:removes an IIOP listener"
 95+    "delete-instance:deletes a GlassFish Server instance"
 96+    "delete-jacc-provider:enables administrators to delete JACC providers defined for a domain"
 97+    "delete-javamail-resource:removes a JavaMail session resource"
 98+    "delete-jdbc-connection-pool:removes the specified JDBC connection pool"
 99+    "delete-jdbc-resource:removes a JDBC resource with the specified JNDI name"
100+    "delete-jms-host:removes a JMS host"
101+    "delete-jms-resource:removes a JMS resource"
102+    "delete-jmsdest:removes a JMS physical destination"
103+    "delete-jndi-resource:removes a JNDI resource"
104+    "delete-jvm-options:removes one or more options for the Java application launcher"
105+    "delete-lifecycle-module:removes the lifecycle module"
106diff --git a/plugins/glassfish/glassfish.plugin.zsh b/plugins/glassfish/glassfish.plugin.zsh
107new file mode 100644
108index 0000000000000000000000000000000000000000..fde2edb2a59de8f9be9459fee93803c07d9b785d
109--- /dev/null
110+++ b/plugins/glassfish/glassfish.plugin.zsh
111@@ -0,0 +1,3 @@
112+# if there is a user named 'glassfish' on the system, we'll assume
113+# that is the user asadmin should be run as
114+# grep -e '^glassfish' /etc/passwd > /dev/null && alias asadmin='sudo -u glassfish asadmin'