이 콘텐츠는 선택한 언어로 제공되지 않습니다.
fabric:create
Name
fabric:create — creates a new fabric and imports fabric profiles
Synopsis
fabric:create
[
--help
] [
--clean
] [
--no-import
] [
--import-dir dir
] [[
-v
] | [
--verbose
]] [[
-t
] | [
--time
]millis
] [[
-n
] | [
--non-managed
]] [[
-p
] | [
--profile
]profile
] [
--new-user username
] [
--new-user-password password
] [
--new-user-role role
] [
--zookeeper-password zooPassword
] [
--generate-zookeeper-password
] [[
-g
] | [
--global-resolver
]policy
] [[
-r
] | [
--resolver
]policy
] [[
-m
] | [
--manual-ip
]ipAddress
] [
--min-port port
] [
--max-port port
] [
ContainerList
]
Description
- The contents of a container should now be managed using fabric profiles. Do not try to deploy bundles and features directly in a fabric container.
- The default JAAS realm is superseded by the Zookeeper login module, which stores user data in the Zookeeper registry. As the fabric is created it initializes the user data by importing all of the user data that it finds in the
etc/users.properties
file. If theusers.properties
file is empty, you can specify a new user explicitly using the--new-user
and--new-user-password
options (at least one user must be defined).
- Create a fabric that imports the sample profiles (for example, using
fabric:create
). - Modify the sample profiles using the
fabric:profile-create
,fabric:profile-delete
, andfabric:edit
commands. - Export the modified profiles using the
fabric:export
command.
Arguments
Argument | Interpretation |
---|---|
--help | Displays the online help for this command |
--clean | Clean local zookeeper cluster and configurations. |
--no-import | Disable the import of the sample registry data. |
--import-dir | Directory of files to import into the newly created ensemble. |
-v, --verbose | Flag to enable verbose output of files being imported. |
-t, --time | How long to wait (milliseconds) for the ensemble to start up, before trying to import the default data. |
-n , --non-managed | Specifies that the container remains unmanaged. |
-p, --profile | Specifies the profile to use for the ensemble containers in the new fabric. |
--new-user |
Create a new user in the new fabric's JAAS realm. Because the
fabric:create command automatically imports user data from the etc/users.properties file, you would only need to specify this option, if the etc/users.properties file contains no valid user entries.
When using this option, you must also specify a password using the
--new-user-password option.
|
--new-user-password | Used in combination with the --new-user option to specify the new user's password. No default value. |
--new-user-role | Used in combination with the --new-user option to specify the new user's role. Default is admin . |
--zookeeper-password |
Specifies the Zookeeper password, which is used to access the Zookeeper nodes under the
/fabric/ path. Defaults to the password of the current session user.
Subsequently, because the Zookeeper password is cached in the current session, you normally do not need to provide it when executing fabric commands. You can display the Zookeeper password at any time using the
fabric:ensemble-password command.
|
--generate-zookeeper-password | Directs Fabric to generate a random Zookeeper password. Subsequently, you can display the Zookeeper password using the fabric:ensemble-password command. |
-g, --global-resolver | Specifies the global resolver policy, which becomes the default resolver policy applied to all new containers created in this fabric. Possible values are: localip , localhostname , publicip , publichostname , manualip . The default is localhostname . |
-r, --resolver | Specifies the local resolver policy. Possible values are: localip , localhostname , publicip , publichostname , manualip . The default is localhostname . |
-m, --manual-ip | If you select the manualip resolver policy (using either the --resolver or --global-resolver options), specifies the IP address to use for the resolver. |
--min-port | Specifies the minimum port number of the allowed IP port range. Default is 0 . |
--max-port | Specifies the maximum port number of the allowed IP port range. Default is 65535 . |
ContainerList | The list of containers to include in the ensemble. An empty list implies the current container. |
Examples
ESBInstallDir/fabric/import
directory, as follows:
fabric:create --clean
fabric:create --clean --no-import
fabric:create --clean --import-dir CustomImportDir
reg1
, reg2
, and reg3
, are now included in the registry ensemble (an ensemble must consist of an odd number of containers):
fabric:create reg1 reg2 reg3