Author: fapeeler Date: Mon May 14 17:29:57 2012 New Revision: 1338301 URL: http://svn.apache.org/viewvc?rev=1338301&view=rev Log: VCL-576
inserted AL2.0 license file help routine rename in health_check.pl Modified: incubator/vcl/trunk/managementnode/bin/health_check.pl incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/OSX.pm incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/esxthin.README incubator/vcl/trunk/managementnode/tools/OSX/adminadd incubator/vcl/trunk/managementnode/tools/OSX/admindel incubator/vcl/trunk/managementnode/tools/OSX/dhcp_enable incubator/vcl/trunk/managementnode/tools/OSX/fw_disable_rdp incubator/vcl/trunk/managementnode/tools/OSX/fw_enable incubator/vcl/trunk/managementnode/tools/OSX/fw_enable_rdp incubator/vcl/trunk/managementnode/tools/OSX/logoff_users incubator/vcl/trunk/managementnode/tools/OSX/oamessage incubator/vcl/trunk/managementnode/tools/OSX/password_reset incubator/vcl/trunk/managementnode/tools/OSX/useradd incubator/vcl/trunk/managementnode/tools/OSX/userdel Modified: incubator/vcl/trunk/managementnode/bin/health_check.pl URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/bin/health_check.pl?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/bin/health_check.pl (original) +++ incubator/vcl/trunk/managementnode/bin/health_check.pl Mon May 14 17:29:57 2012 @@ -59,7 +59,7 @@ use Getopt::Long; #------- Subroutine declarations ------- sub main(); -sub _help(); +sub help_healthcheck(); sub print_usage(); #----------GLOBALS-------------- @@ -70,24 +70,24 @@ our $STAGE = 0; our $HELP = 0; -GetOptions(\%OPTIONS, 'help', 'powerdown=s'); +#GetOptions(\%OPTIONS, 'help', 'powerdown=s'); # Get the remaining command line parameters -$HELP = $OPTIONS{help} if (defined($OPTIONS{help} && $OPTIONS{help})); -$STAGE = $OPTIONS{powerdown} if (defined($OPTIONS{powerdown} && $OPTIONS{powerdown})); +#$HELP = $OPTIONS{help} if (defined($OPTIONS{help} && $OPTIONS{help})); +#$STAGE = $OPTIONS{powerdown} if (defined($OPTIONS{powerdown} && $OPTIONS{powerdown})); if($STAGE){ unless($STAGE =~ /available|all/){ print "\nInvalid powerdown option\n\n"; - _help(); + help; exit; } } if($HELP){ - _help(); + help_healthcheck(); exit; } ############################################################################## @@ -141,7 +141,7 @@ sub print_usage() { #///////////////////////////////////////////////////////////////////////////// -=head2 _help +=head2 help_healthcheck Parameters : Returns : @@ -149,7 +149,7 @@ sub print_usage() { =cut -sub _help() { +sub help_healthcheck() { my $message = <<"END"; -------------------------------------------- @@ -160,7 +160,7 @@ END print $message; print_usage(); exit; -} ## end sub _help +} ## end sub help_healthcheck #///////////////////////////////////////////////////////////////////////////// 1; Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/OSX.pm URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/OSX.pm?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/OSX.pm (original) +++ incubator/vcl/trunk/managementnode/lib/VCL/Module/OS/OSX.pm Mon May 14 17:29:57 2012 @@ -1,4 +1,20 @@ #!/usr/bin/perl -w + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ############################################################################### # $Id: OSX.pm 1075500 2011-10-17 jodell $ ############################################################################### Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/esxthin.README URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/esxthin.README?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/esxthin.README (original) +++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/esxthin.README Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ Pre-Installation: +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + You need to install the VMware VI Perl toolkit installed on any management node using the esxthin module Each vmware ESX hypervisor you want VCL to provision to requires the NetApp image library volume to be connected and named 'VCL' Modified: incubator/vcl/trunk/managementnode/tools/OSX/adminadd URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/adminadd?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/adminadd (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/adminadd Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # less /var/db/dslocal/nodes/Default/groups/admin.plist new_user="jdoe" Modified: incubator/vcl/trunk/managementnode/tools/OSX/admindel URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/admindel?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/admindel (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/admindel Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + new_user="jdoe" dscl . -delete /Groups/admin GroupMembership "$new_user" Modified: incubator/vcl/trunk/managementnode/tools/OSX/dhcp_enable URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/dhcp_enable?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/dhcp_enable (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/dhcp_enable Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + networksetup -listallnetworkservices networksetup -getinfo <networkservice> networksetup -setdhcp <networkservice> [clientid] Modified: incubator/vcl/trunk/managementnode/tools/OSX/fw_disable_rdp URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/fw_disable_rdp?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/fw_disable_rdp (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/fw_disable_rdp Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # $1 = flag to remove persistence # # we rely on the explicit "deny" at the end of the filter table Modified: incubator/vcl/trunk/managementnode/tools/OSX/fw_enable URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/fw_enable?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/fw_enable (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/fw_enable Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # $1 = flag for persistence if [ -n "$1" ]; then Modified: incubator/vcl/trunk/managementnode/tools/OSX/fw_enable_rdp URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/fw_enable_rdp?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/fw_enable_rdp (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/fw_enable_rdp Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # $1 = source IP range # $2 = flag for persistence Modified: incubator/vcl/trunk/managementnode/tools/OSX/logoff_users URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/logoff_users?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/logoff_users (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/logoff_users Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + /usr/bin/killall loginwindow Modified: incubator/vcl/trunk/managementnode/tools/OSX/oamessage URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/oamessage?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/oamessage (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/oamessage Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # oamessage '$message'; # popup a message on the console Modified: incubator/vcl/trunk/managementnode/tools/OSX/password_reset URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/password_reset?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/password_reset (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/password_reset Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # i.e. 'password_reset 899112222 password' USERNAME="$1" PASSWORD="$2" Modified: incubator/vcl/trunk/managementnode/tools/OSX/useradd URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/useradd?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/useradd (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/useradd Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # /var/db/dslocal/nodes/Default/users/jdoe.plist # dscl . list /Users # dscl . -read /Users/jdoe Modified: incubator/vcl/trunk/managementnode/tools/OSX/userdel URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/tools/OSX/userdel?rev=1338301&r1=1338300&r2=1338301&view=diff ============================================================================== --- incubator/vcl/trunk/managementnode/tools/OSX/userdel (original) +++ incubator/vcl/trunk/managementnode/tools/OSX/userdel Mon May 14 17:29:57 2012 @@ -1,5 +1,21 @@ #!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + # USERNAME="jdoe" USERNAME="$1"