Liking cljdoc? Tell your friends :D

pallet.configure

Pallet configuration using ~/.pallet/config.clj, the pallet.config namespace or from settings.xml.

config.clj should be in ~/.pallet or a directory specified by the PALLET_HOME environment variable.

service definitions can also be specified as clojure maps in ~/.pallet/services/*.clj

Pallet configuration using ~/.pallet/config.clj, the pallet.config namespace
or from settings.xml.

config.clj should be in ~/.pallet or a directory specified by the PALLET_HOME
environment variable.

service definitions can also be specified as clojure maps in
~/.pallet/services/*.clj
raw docstring

admin-userclj

(admin-user)

Instantiate an admin-user.

If passed no arguments, then the blobstore service is looked up in the following order:

  • from a var referenced by pallet.config.admin-user system property
  • from pallet.config/admin-user if defined
  • the :admin-user top level key in config.clj

Service specific admin-user values should be specified through a :user key on the :environment for the service.

The other arguments are keyword value pairs.

  • :identity username or key
  • :credential password or secret
  • :extensions extension modules for jclouds
  • :node-list a list of nodes for the "node-list" provider.
  • :environment an environment map with service specific values.
Instantiate an admin-user.

If passed no arguments, then the blobstore service is looked up in the
following order:
- from a var referenced by pallet.config.admin-user system property
- from pallet.config/admin-user if defined
- the :admin-user top level key in config.clj

Service specific admin-user values should be specified through a :user
key on the :environment for the service.

The other arguments are keyword value pairs.
- :identity     username or key
- :credential   password or secret
- :extensions   extension modules for jclouds
- :node-list    a list of nodes for the "node-list" provider.
- :environment  an environment map with service specific values.
sourceraw docstring

admin-user-from-configclj

(admin-user-from-config config)

Set the admin user based on a config map

Set the admin user based on a config map
sourceraw docstring

admin-user-from-config-fileclj

(admin-user-from-config-file)

Create an admin user form a configuration map.

Create an admin user form a configuration map.
sourceraw docstring

admin-user-from-config-varclj

(admin-user-from-config-var)

Set the admin user based on pallet.config setup.

Set the admin user based on pallet.config setup.
sourceraw docstring

admin-user-from-propertyclj

(admin-user-from-property)

If the pallet.config.admin-user property is defined, and refers to a var then return its value.

If the pallet.config.admin-user property is defined, and refers to a var
then return its value.
sourceraw docstring

blobstore-from-configclj

(blobstore-from-config config service options)

Create a blobstore service form a configuration map.

Create a blobstore service form a configuration map.
sourceraw docstring

blobstore-from-mapclj

(blobstore-from-map credentials)

Create a blobstore service from a credentials map. Uses :provider, :identity, :credential and :blobstore-provider, :blobstore-identity and :blobstore-credential. Blobstore keys fall back to the compute keys

Create a blobstore service from a credentials map.
Uses :provider, :identity, :credential and
:blobstore-provider, :blobstore-identity and :blobstore-credential.
Blobstore keys fall back to the compute keys
sourceraw docstring

blobstore-lookupclj

Translate compute provider to associated blobstore provider

Translate compute provider to associated blobstore provider
sourceraw docstring

blobstore-serviceclj

(blobstore-service)
(blobstore-service service-name & {:as options})

Instantiate a blobstore service.

If passed no arguments, then the blobstore service is looked up in the following order:

  • from a var referenced by pallet.config.blobstore-service system property
  • from pallet.config/blobstore-service if defined
  • the first service in config.clj
  • the service from the first active profile in settings.xml

If passed a service name, it is looked up in external configuration (~/.pallet/config.clj or ~/.m2/settings.xml). A service name is one of the keys in the :services map in config.clj, or a profile id in settings.xml.

When passed a provider name and credentials, the service is instantiated based on the credentials. The provider name should be a recognised provider name (see pallet.blobstore/supported-providers to obtain a list of these).

The other arguments are keyword value pairs.

  • :identity username or key
  • :credential password or secret
  • :extensions extension modules for jclouds
  • :node-list a list of nodes for the "node-list" provider.
  • :environment an environment map with service specific values.
Instantiate a blobstore service.

If passed no arguments, then the blobstore service is looked up in the
following order:
- from a var referenced by pallet.config.blobstore-service system property
- from pallet.config/blobstore-service if defined
- the first service in config.clj
- the service from the first active profile in settings.xml

If passed a service name, it is looked up in external
configuration (~/.pallet/config.clj or ~/.m2/settings.xml). A service name is
one of the keys in the :services map in config.clj, or a profile id in
settings.xml.

When passed a provider name and credentials, the service is instantiated
based on the credentials.  The provider name should be a recognised provider
name (see `pallet.blobstore/supported-providers` to obtain a list of these).

The other arguments are keyword value pairs.
- :identity     username or key
- :credential   password or secret
- :extensions   extension modules for jclouds
- :node-list    a list of nodes for the "node-list" provider.
- :environment  an environment map with service specific values.
sourceraw docstring

blobstore-service-from-config-fileclj

(blobstore-service-from-config-file)
(blobstore-service-from-config-file service options)

Create a blobstore service form a configuration map.

Create a blobstore service form a configuration map.
sourceraw docstring

blobstore-service-from-config-varclj

(blobstore-service-from-config-var)

Checks to see if pallet.config/service is a var, and if so returns its value.

Checks to see if pallet.config/service is a var, and if so returns its
value.
sourceraw docstring

blobstore-service-from-propertyclj

(blobstore-service-from-property)

If the pallet.config.service property is defined, and refers to a var, then return its value.

If the pallet.config.service property is defined, and refers to a var, then
return its value.
sourceraw docstring

compute-serviceclj

(compute-service)
(compute-service service-name & {:as options})

Instantiate a compute service.

If passed no arguments, then the compute service is looked up in the following order:

  • from a var referenced by the pallet.config.service system property
  • from pallet.config/service if defined
  • the first service in config.clj
  • the service from the first active profile in settings.xml

If passed a service name, it is looked up in external configuration (~/.pallet/config.clj or ~/.m2/settings.xml). A service name is one of the keys in the :services map in config.clj, or a profile id in settings.xml.

When passed a provider name and credentials, the service is instantiated based on the credentials. The provider name should be a recognised provider name (see pallet.compute/supported-providers to obtain a list of these).

The other arguments are keyword value pairs.

  • :identity username or key
  • :credential password or secret
  • :extensions extension modules for jclouds
  • :node-list a list of nodes for the "node-list" provider.
  • :environment an environment map with service specific values.
Instantiate a compute service.

If passed no arguments, then the compute service is looked up in the
following order:
- from a var referenced by the pallet.config.service system property
- from pallet.config/service if defined
- the first service in config.clj
- the service from the first active profile in settings.xml

If passed a service name, it is looked up in external
configuration (~/.pallet/config.clj or ~/.m2/settings.xml). A service name is
one of the keys in the :services map in config.clj, or a profile id in
settings.xml.

When passed a provider name and credentials, the service is instantiated
based on the credentials.  The provider name should be a recognised provider
name (see `pallet.compute/supported-providers` to obtain a list of these).

The other arguments are keyword value pairs.
- :identity     username or key
- :credential   password or secret
- :extensions   extension modules for jclouds
- :node-list    a list of nodes for the "node-list" provider.
- :environment  an environment map with service specific values.
sourceraw docstring

compute-service-from-configclj

(compute-service-from-config config service provider-options)

Compute service from a defpallet configuration map and a service keyword.

Compute service from a defpallet configuration map and a service keyword.
sourceraw docstring

compute-service-from-config-fileclj

(compute-service-from-config-file)
(compute-service-from-config-file service provider-options)

Return a compute service from the configuration in ~/.pallet/config.clj and ~/.pallet/service/*.clj.

service is a keyword used to find an entry in the :services map.

provider-options is a map of provider options to be merged with the service configuration in the configuration file.

Return a compute service from the configuration in `~/.pallet/config.clj` and
`~/.pallet/service/*.clj`.

`service` is a keyword used to find an entry in the :services map.

`provider-options` is a map of provider options to be merged
with the service configuration in the configuration file.
sourceraw docstring

compute-service-from-config-varclj

(compute-service-from-config-var)

Checks to see if pallet.config/service is a var, and if so returns its value.

Checks to see if pallet.config/service is a var, and if so returns its
value.
sourceraw docstring

compute-service-from-mapclj

(compute-service-from-map credentials)

Create a compute service from a credentials map. Uses the :provider, :identity, :credential, :extensions and :node-list keys. The :extensions and :node-list keys will be read with read-string if they are strings.

Create a compute service from a credentials map.
Uses the :provider, :identity, :credential, :extensions and :node-list keys.
The :extensions and :node-list keys will be read with read-string if they
are strings.
sourceraw docstring

compute-service-from-propertyclj

(compute-service-from-property)

If the pallet.config.service property is defined, and refers to a var, then return its value.

If the pallet.config.service property is defined, and refers to a var, then
return its value.
sourceraw docstring

compute-service-propertiesclj

(compute-service-properties config service)

Helper to read compute service properties. Given a config file return the selected service definition as a map.

Helper to read compute service properties. Given a config file return the
selected service definition as a map.
sourceraw docstring

config-file-pathclj

(config-file-path)

Returns a java.io.File for the user's config.clj file

Returns a java.io.File for the user's config.clj file
sourceraw docstring

default-compute-serviceclj

(default-compute-service config)

Returns the default compute service

Returns the default compute service
sourceraw docstring

defpalletcljmacro

(defpallet &
           {:keys [provider identity credential providers admin-user]
            :as config-options})

Top level macro for the pallet config.clj file.

Top level macro for the pallet config.clj file.
sourceraw docstring

pallet-configclj

(pallet-config)

Read pallet configuration from config.clj and services/*.clj files. The files are taken from ~/.pallet or $PALLET_HOME if set.

Read pallet configuration from config.clj and services/*.clj files. The
files are taken from ~/.pallet or $PALLET_HOME if set.
sourceraw docstring

service-filesclj

(service-files)

Read all service definitions in ${PALLET_HOME:~/.pallet}/services.

Read all service definitions in ${PALLET_HOME:~/.pallet}/services.
sourceraw docstring

service-mapclj

(service-map)
(service-map service-name)

Instantiate service objects. The service objects are returned in a map with keys as expected by configure or lift.

Instantiate service objects. The service objects are returned in a map
with keys as expected by `configure` or `lift`.
sourceraw docstring

service-resourcesclj

(service-resources)

Read all service definitions in pallet_services/ resources.

Read all service definitions in pallet_services/ resources.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close