node_azure -> azure_vm
database_server -> azure_sqldb
virtual_network -> azure_vnet
azure_affinity_group -> azure_affinitygroup
This commit is contained in:
Ranjan Kumar 2013-12-09 11:54:13 +05:30
Родитель e1e5a59630
Коммит 97bca0e7fe
42 изменённых файлов: 61 добавлений и 61 удалений

Просмотреть файл

@ -41,7 +41,7 @@ Manage Virtual machine
You may launch a new instance and install puppet agent with this module installed using the following single command: You may launch a new instance and install puppet agent with this module installed using the following single command:
$puppet node_azure create --management-certificate pem-or-pfx-file-path --azure-subscription-id=your-subscription-id \ $puppet azure_vm create --management-certificate pem-or-pfx-file-path --azure-subscription-id=your-subscription-id \
--image b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-13_04-amd64-server-20130501-en-us-30GB --location 'west us' --image b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-13_04-amd64-server-20130501-en-us-30GB --location 'west us'
--vm-name vmname --vm-user username --password ComplexPassword --puppet-master-ip 198.62.195.5 --vm-name vmname --vm-user username --password ComplexPassword --puppet-master-ip 198.62.195.5
@ -61,14 +61,14 @@ Other avaliable actions are
To list all options for any action To list all options for any action
$puppet help node_azure ACTION-NAME $puppet help azure_vm ACTION-NAME
Manage Virtual Network Manage Virtual Network
======================== ========================
Creating virtual network Creating virtual network
$puppet virtual_network set --management-certificate pem-or-pfx-file-path --azure-subscription-id=your-subscription-id $puppet azure_vnet set --management-certificate pem-or-pfx-file-path --azure-subscription-id=your-subscription-id
--virtual-network-name vnetname --affinity-group-name ag-name --address-space '172.16.0.0/12,192.168.0.0/16' --virtual-network-name vnetname --affinity-group-name ag-name --address-space '172.16.0.0/12,192.168.0.0/16'
--dns-servers 'dns1-1:10.10.8.8,dns2:172.8.4.4' --subnets 'subnet-1:172.16.0.0:12,subnet-2:192.168.0.0:29' --dns-servers 'dns1-1:10.10.8.8,dns2:172.8.4.4' --subnets 'subnet-1:172.16.0.0:12,subnet-2:192.168.0.0:29'
@ -83,7 +83,7 @@ Manage SQL database server
Creating SQL database server Creating SQL database server
$puppet database_server create --management-certificate pem-or-pfx-file-path --azure-subscription-id=your-subscription-id \ $puppet azure_sqldb create --management-certificate pem-or-pfx-file-path --azure-subscription-id=your-subscription-id \
--management-endpoint=https://management.database.windows.net:8443/ --login loginname --password ComplexPassword --location 'West Us' --management-endpoint=https://management.database.windows.net:8443/ --login loginname --password ComplexPassword --location 'West Us'
Other avaliable actions are Other avaliable actions are

Просмотреть файл

@ -21,7 +21,7 @@ module Puppet::AffinityGroup
class << self class << self
def views(name) def views(name)
File.join(File.dirname(__FILE__), 'face/azure_affinity_group/views', name) File.join(File.dirname(__FILE__), 'face/azure_affinitygroup/views', name)
end end
def add_create_options(action) def add_create_options(action)

Просмотреть файл

@ -15,5 +15,5 @@
require 'puppet/face' require 'puppet/face'
require 'puppet/application/face_base' require 'puppet/application/face_base'
class Puppet::Application::AzureAffinityGroup < Puppet::Application::FaceBase class Puppet::Application::AzureAffinitygroup < Puppet::Application::FaceBase
end end

Просмотреть файл

@ -14,5 +14,5 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'puppet/application/face_base' require 'puppet/application/face_base'
class Puppet::Application::DatabaseServer < Puppet::Application::FaceBase class Puppet::Application::AzureSqldb < Puppet::Application::FaceBase
end end

Просмотреть файл

@ -14,5 +14,5 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'puppet/application/face_base' require 'puppet/application/face_base'
class Puppet::Application::VirtualNetwork < Puppet::Application::FaceBase class Puppet::Application::AzureVm < Puppet::Application::FaceBase
end end

Просмотреть файл

@ -14,5 +14,5 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'puppet/application/face_base' require 'puppet/application/face_base'
class Puppet::Application::NodeAzure < Puppet::Application::FaceBase class Puppet::Application::AzureVnet < Puppet::Application::FaceBase
end end

Просмотреть файл

@ -1,6 +1,6 @@
require 'puppet/affinity_group' require 'puppet/affinity_group'
Puppet::Face.define(:azure_affinity_group, '0.0.1') do Puppet::Face.define(:azure_affinitygroup, '0.0.1') do
copyright "Windows Azure", 2013 copyright "Windows Azure", 2013
license "Microsoft Open Technologies, Inc; see COPYING" license "Microsoft Open Technologies, Inc; see COPYING"

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :azure_affinity_group, '0.0.1' do Puppet::Face.define :azure_affinitygroup, '0.0.1' do
action :create do action :create do
summary 'Create affinity group.' summary 'Create affinity group.'
@ -36,7 +36,7 @@ Puppet::Face.define :azure_affinity_group, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet azure_affinity_group create --management-certificate path-to-azure-certificate \ $ puppet azure_affinitygroup create --management-certificate path-to-azure-certificate \
--azure-subscription-id YOUR-SUBSCRIPTION-ID --location 'West Us' --label aglabel\ --azure-subscription-id YOUR-SUBSCRIPTION-ID --location 'West Us' --label aglabel\
--affinity-group-name agname --description 'Some Description' --affinity-group-name agname --description 'Some Description'
EOT EOT

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :azure_affinity_group, '0.0.1' do Puppet::Face.define :azure_affinitygroup, '0.0.1' do
action :delete do action :delete do
summary 'Delete affinity group.' summary 'Delete affinity group.'
@ -35,7 +35,7 @@ Puppet::Face.define :azure_affinity_group, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet azure_affinity_group delete --management-certificate path-to-azure-certificate \ $ puppet azure_affinitygroup delete --management-certificate path-to-azure-certificate \
--azure-subscription-id YOUR-SUBSCRIPTION-ID --affinity-group-name ag-name --azure-subscription-id YOUR-SUBSCRIPTION-ID --affinity-group-name ag-name
EOT EOT
end end

Просмотреть файл

@ -1,4 +1,4 @@
Puppet::Face.define :azure_affinity_group, '0.0.1' do Puppet::Face.define :azure_affinitygroup, '0.0.1' do
action :list do action :list do
summary 'List affinity groups.' summary 'List affinity groups.'

Просмотреть файл

@ -1,4 +1,4 @@
Puppet::Face.define :azure_affinity_group, '0.0.1' do Puppet::Face.define :azure_affinitygroup, '0.0.1' do
action :update do action :update do
summary 'Update affinity group.' summary 'Update affinity group.'
@ -21,7 +21,7 @@ Puppet::Face.define :azure_affinity_group, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet azure_affinity_group update --management-certificate path-to-azure-certificate \ $ puppet azure_affinitygroup update --management-certificate path-to-azure-certificate \
--azure-subscription-id YOUR-SUBSCRIPTION-ID --label aglabel \ --azure-subscription-id YOUR-SUBSCRIPTION-ID --label aglabel \
--affinity-group-name agname --description 'Some Description' --affinity-group-name agname --description 'Some Description'
EOT EOT

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'puppet/sql_database' require 'puppet/sql_database'
Puppet::Face.define(:database_server, '0.0.1') do Puppet::Face.define(:azure_sqldb, '0.0.1') do
copyright "Windows Azure", 2013 copyright "Windows Azure", 2013
license "Microsoft Open Technologies, Inc; see COPYING" license "Microsoft Open Technologies, Inc; see COPYING"

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :database_server, '0.0.1' do Puppet::Face.define :azure_sqldb, '0.0.1' do
action :create do action :create do
summary 'Create SQL database server.' summary 'Create SQL database server.'
@ -32,7 +32,7 @@ Puppet::Face.define :database_server, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet database_server create --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb create --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=ABCD1234 --login puppet --location 'West Us'\ --azure-subscription-id=ABCD1234 --login puppet --location 'West Us'\
--management-endpoint=https://management.database.windows.net:8443/ --password Ranjan@123 --management-endpoint=https://management.database.windows.net:8443/ --password Ranjan@123
EOT EOT

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :database_server, '0.0.1' do Puppet::Face.define :azure_sqldb, '0.0.1' do
action :create_firewall do action :create_firewall do
summary 'Create SQL database server.' summary 'Create SQL database server.'
@ -32,11 +32,11 @@ Puppet::Face.define :database_server, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet database_server create_firewall --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb create_firewall --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\ --azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\
--server-name=g2jxhsbk0w --rule-name ranjan --start-ip-address 10.10.0.0 --end-ip-address 10.10.0.255 --server-name=g2jxhsbk0w --rule-name ranjan --start-ip-address 10.10.0.0 --end-ip-address 10.10.0.255
$ puppet database_server create_firewall --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb create_firewall --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\ --azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\
--server-name=g2jxhsbk0w --rule-name ranjan --server-name=g2jxhsbk0w --rule-name ranjan
EOT EOT

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :database_server, '0.0.1' do Puppet::Face.define :azure_sqldb, '0.0.1' do
action :delete do action :delete do
summary 'Delete Windows Azure sql database server' summary 'Delete Windows Azure sql database server'
@ -34,7 +34,7 @@ Puppet::Face.define :database_server, '0.0.1' do
returns 'NONE' returns 'NONE'
examples <<-'EOT' examples <<-'EOT'
$ puppet database_server delete --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb delete --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=ABCD123 --server-name=ezprthvj9w\ --azure-subscription-id=ABCD123 --server-name=ezprthvj9w\
--management-endpoint=https://management.database.windows.net:8443/ --management-endpoint=https://management.database.windows.net:8443/
EOT EOT

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :database_server, '0.0.1' do Puppet::Face.define :azure_sqldb, '0.0.1' do
action :delete_firewall do action :delete_firewall do
summary 'Delete Windows Azure sql database server firewall' summary 'Delete Windows Azure sql database server firewall'
@ -34,8 +34,8 @@ Puppet::Face.define :database_server, '0.0.1' do
returns 'NONE' returns 'NONE'
examples <<-'EOT' examples <<-'EOT'
$ puppet database_server delete --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb delete --management-certificate ~/exp/azuremanagement.pem\
puppet database_server delete_firewall --management-certificate ~/exp/azuremanagement.pem\ puppet azure_sqldb delete_firewall --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\ --azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\
--server-name=xlykw0su08 --rule-name rule1 --server-name=xlykw0su08 --rule-name rule1
EOT EOT

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'tilt' require 'tilt'
Puppet::Face.define :database_server, '0.0.1' do Puppet::Face.define :azure_sqldb, '0.0.1' do
action :list do action :list do
summary 'List SQL database servers.' summary 'List SQL database servers.'
@ -37,7 +37,7 @@ Puppet::Face.define :database_server, '0.0.1' do
returns 'Array of database server objets.' returns 'Array of database server objets.'
examples <<-'EOT' examples <<-'EOT'
$ puppet database_server list --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb list --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.database.windows.net:8443/ --azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.database.windows.net:8443/
Listing Servers Listing Servers

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'tilt' require 'tilt'
Puppet::Face.define :database_server, '0.0.1' do Puppet::Face.define :azure_sqldb, '0.0.1' do
action :list_firewall do action :list_firewall do
summary 'List firewall of SQL database servers.' summary 'List firewall of SQL database servers.'
@ -35,7 +35,7 @@ Puppet::Face.define :database_server, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet database_server list_firewall --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb list_firewall --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\ --azure-subscription-id=ID --management-endpoint=https://management.database.windows.net:8443/\
--server-name=g2jxhsbk0w --server-name=g2jxhsbk0w
Listing Firewall Listing Firewall

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :database_server, '0.0.1' do Puppet::Face.define :azure_sqldb, '0.0.1' do
action :reset_password do action :reset_password do
summary 'Reset password of sql database server.' summary 'Reset password of sql database server.'
@ -32,7 +32,7 @@ Puppet::Face.define :database_server, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet database_server reset_password --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_sqldb reset_password --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=368a3762-fce0 --management-endpoint=https://management.database.windows.net:8443/\ --azure-subscription-id=368a3762-fce0 --management-endpoint=https://management.database.windows.net:8443/\
--server-name hc786mm0l8 --password Ranjan@1234 --server-name hc786mm0l8 --password Ranjan@1234
EOT EOT

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'puppet/virtual_machine' require 'puppet/virtual_machine'
Puppet::Face.define(:node_azure, '0.0.1') do Puppet::Face.define(:azure_vm, '0.0.1') do
copyright "Windows Azure", 2013 copyright "Windows Azure", 2013
license "Microsoft Open Technologies, Inc; see COPYING" license "Microsoft Open Technologies, Inc; see COPYING"

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'puppet/cloudpack/bootstrap' require 'puppet/cloudpack/bootstrap'
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :bootstrap do action :bootstrap do
summary 'Install puppet node on Windows Azure VM' summary 'Install puppet node on Windows Azure VM'
@ -31,7 +31,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure bootstrap --publish-settings-file=azuremanagement_pfx.publishsettings \ $ puppet azure_vm bootstrap --publish-settings-file=azuremanagement_pfx.publishsettings \
--vm-user=username --puppet-master-ip=152.56.161.48 --password=Abcd123 \ --vm-user=username --puppet-master-ip=152.56.161.48 --password=Abcd123 \
--node-ip-address=domain.cloudapp.net --node-ip-address=domain.cloudapp.net
EOT EOT

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :create do action :create do
summary 'Create Windows Azure VM' summary 'Create Windows Azure VM'
@ -71,7 +71,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
end end
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure create --publish-settings-file azuremanagement.publishsettings --vm-name vmname\ $ puppet azure_vm create --publish-settings-file azuremanagement.publishsettings --vm-name vmname\
--vm-user ranjan --password Password!@12 --storage-account-name storageaccount1'\ --vm-user ranjan --password Password!@12 --storage-account-name storageaccount1'\
--image b4590d9e3ed742e4a1d46e5424aa335e__SUSE-Linux-Enterprise-Server-11-SP2-Agent13\ --image b4590d9e3ed742e4a1d46e5424aa335e__SUSE-Linux-Enterprise-Server-11-SP2-Agent13\
--cloud-service-name cloudname --subscription-id 2346a-fce0-4cd3-a4ea-80e84bddff87\ --cloud-service-name cloudname --subscription-id 2346a-fce0-4cd3-a4ea-80e84bddff87\

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :delete do action :delete do
summary 'Delete Windows Azure node instances' summary 'Delete Windows Azure node instances'
@ -34,7 +34,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
returns 'NONE' returns 'NONE'
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure delete --publish-settings-file azuremanagement.publishsettings \ $ puppet azure_vm delete --publish-settings-file azuremanagement.publishsettings \
--cloud-service-name service_name --vm-name name --cloud-service-name service_name --vm-name name
EOT EOT

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'tilt' require 'tilt'
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :images do action :images do
summary 'List Windows Azure images' summary 'List Windows Azure images'
@ -36,7 +36,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
returns 'Array of attribute hashes containing information about each Azure images.' returns 'Array of attribute hashes containing information about each Azure images.'
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure images --publish-settings-file azuremanagement.publishsettings --azure-subscription-id ID $ puppet azure_vm images --publish-settings-file azuremanagement.publishsettings --azure-subscription-id ID
OS Type OS Nmae OS Type OS Nmae
Windows : 2cdc6229df6344129ee553dd3499f0d3__BizTalk-Server-2013-Beta Windows : 2cdc6229df6344129ee553dd3499f0d3__BizTalk-Server-2013-Beta
Windows : 2cdc6229df6344129ee553dd3499f0d3__BizTalk-Server-2013-Beta-February-2013 Windows : 2cdc6229df6344129ee553dd3499f0d3__BizTalk-Server-2013-Beta-February-2013

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'tilt' require 'tilt'
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :locations do action :locations do
summary 'List Windows Azure locations' summary 'List Windows Azure locations'
@ -36,7 +36,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
returns 'Array of attribute hashes containing information about each Azure locations.' returns 'Array of attribute hashes containing information about each Azure locations.'
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure locations --publish-settings-file azuremanagement.publishsettings $ puppet azure_vm locations --publish-settings-file azuremanagement.publishsettings
Location Name Available Service Location Name Available Service
West US : Compute, Storage, PersistentVMRole West US : Compute, Storage, PersistentVMRole

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'tilt' require 'tilt'
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :servers do action :servers do
summary 'List Windows Azure node instances' summary 'List Windows Azure node instances'
@ -37,7 +37,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
returns 'Array of attribute hashes containing information about each Azure instance.' returns 'Array of attribute hashes containing information about each Azure instance.'
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure servers --publish-settings-file azuremanagement.publishsettings --azure-subscription-id ID $ puppet azure_vm servers --publish-settings-file azuremanagement.publishsettings --azure-subscription-id ID
Server: 1 Server: 1
Service: cloudserver1 Service: cloudserver1
Deployment: deployment1 Deployment: deployment1

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :shutdown do action :shutdown do
summary 'Shutdown Windows Azure node instances' summary 'Shutdown Windows Azure node instances'
@ -34,7 +34,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
returns 'NONE' returns 'NONE'
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure shutdown --publish-settings-file azuremanagement.publishsettings \ $ puppet azure_vm shutdown --publish-settings-file azuremanagement.publishsettings \
--cloud-service-name service_name --vm-name name --cloud-service-name service_name --vm-name name
EOT EOT

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :node_azure, '0.0.1' do Puppet::Face.define :azure_vm, '0.0.1' do
action :start do action :start do
summary 'starts Windows Azure node instances' summary 'starts Windows Azure node instances'
@ -34,7 +34,7 @@ Puppet::Face.define :node_azure, '0.0.1' do
returns 'NONE' returns 'NONE'
examples <<-'EOT' examples <<-'EOT'
$ puppet node_azure start --publish-settings-file azuremanagement.publishsettings \ $ puppet azure_vm start --publish-settings-file azuremanagement.publishsettings \
--cloud-service-name service_name --vm-name name --cloud-service-name service_name --vm-name name
EOT EOT

Просмотреть файл

@ -14,7 +14,7 @@
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
require 'puppet/virtual_network' require 'puppet/virtual_network'
Puppet::Face.define(:virtual_network, '0.0.1') do Puppet::Face.define(:azure_vnet, '0.0.1') do
copyright "Windows Azure", 2013 copyright "Windows Azure", 2013
license "Microsoft Open Technologies, Inc; see COPYING" license "Microsoft Open Technologies, Inc; see COPYING"

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :virtual_network, '0.0.1' do Puppet::Face.define :azure_vnet, '0.0.1' do
action :list do action :list do
summary 'List virtual networks.' summary 'List virtual networks.'
@ -36,7 +36,7 @@ Puppet::Face.define :virtual_network, '0.0.1' do
returns 'Array of virtual network objets.' returns 'Array of virtual network objets.'
examples <<-'EOT' examples <<-'EOT'
$ puppet virtual_network list --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_vnet list --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.core.windows.net Listing virtual networks --azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.core.windows.net Listing virtual networks
Virtual Network: 1 Virtual Network: 1

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :virtual_network, '0.0.1' do Puppet::Face.define :azure_vnet, '0.0.1' do
action :set do action :set do
summary 'Set Network configures the virtual network' summary 'Set Network configures the virtual network'
@ -53,7 +53,7 @@ Puppet::Face.define :virtual_network, '0.0.1' do
returns 'None ' returns 'None '
examples <<-'EOT' examples <<-'EOT'
$ puppet virtual_network set --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_vnet set --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.database.windows.net:8443/ --azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.database.windows.net:8443/
EOT EOT

Просмотреть файл

@ -13,7 +13,7 @@
# limitations under the License. # limitations under the License.
#-------------------------------------------------------------------------- #--------------------------------------------------------------------------
Puppet::Face.define :virtual_network, '0.0.1' do Puppet::Face.define :azure_vnet, '0.0.1' do
action :set_xml_schema do action :set_xml_schema do
summary 'set_xml_schema Network configures the virtual network using xml schema' summary 'set_xml_schema Network configures the virtual network using xml schema'
@ -33,7 +33,7 @@ Puppet::Face.define :virtual_network, '0.0.1' do
returns 'None ' returns 'None '
examples <<-'EOT' examples <<-'EOT'
$ puppet virtual_network set --management-certificate ~/exp/azuremanagement.pem\ $ puppet azure_vnet set --management-certificate ~/exp/azuremanagement.pem\
--azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.database.windows.net:8443/ --azure-subscription-id=368a3-dcd0-4cd3 --management-endpoint=https://management.database.windows.net:8443/
EOT EOT

Просмотреть файл

@ -29,7 +29,7 @@ module Puppet::SqlDatabase
end end
def views(name) def views(name)
File.join(File.dirname(__FILE__), 'face/database_server/views', name) File.join(File.dirname(__FILE__), 'face/azure_sqldb/views', name)
end end
def add_create_options(action) def add_create_options(action)

Просмотреть файл

@ -20,7 +20,7 @@ module Puppet::VirtualMachine
class << self class << self
def views(name) def views(name)
File.join(File.dirname(__FILE__), 'face/node_azure/views', name) File.join(File.dirname(__FILE__), 'face/azure_vm/views', name)
end end
def add_shutdown_options(action) def add_shutdown_options(action)

Просмотреть файл

@ -22,7 +22,7 @@ module Puppet::VirtualNetwork
class << self class << self
def views(name) def views(name)
File.join(File.dirname(__FILE__), 'face/virtual_network/views', name) File.join(File.dirname(__FILE__), 'face/azure_vnet/views', name)
end end
def add_set_virtual_network_options(action) def add_set_virtual_network_options(action)