Commit 63c5bf20 authored by mh's avatar mh
Browse files

also deploy the script

parent 5f2f5839
# the basics for the user_scripts
class webhosting::user_scripts {
require incron
require ::incron
# common stuff
file{
[ "/opt/webhosting_user_scripts",
"/opt/webhosting_user_scripts/common"
[ '/opt/webhosting_user_scripts',
'/opt/webhosting_user_scripts/common',
]:
ensure => directory,
owner => root, group => 0, mode => 0400;
"/opt/webhosting_user_scripts/common/webscripts.rb":
owner => root,
group => 0,
mode => '0400';
'/opt/webhosting_user_scripts/common/webscripts.rb':
source => 'puppet:///modules/webhosting/user_scripts/common/webscripts.rb',
owner => root, group => 0, mode => 0400;
"/opt/webhosting_user_scripts/common/run_incron.sh":
owner => root,
group => 0,
mode => '0400';
'/opt/webhosting_user_scripts/common/run_incron.sh':
source => 'puppet:///modules/webhosting/user_scripts/common/run_incron.sh',
owner => root, group => 0, mode => 0500;
owner => root,
group => 0,
mode => '0500';
}
# script to adjust permission in web directories
file{
"/opt/webhosting_user_scripts/adjust_permissions":
'/opt/webhosting_user_scripts/adjust_permissions':
ensure => directory,
owner => root, group => 0, mode => 0400;
"/opt/webhosting_user_scripts/adjust_permissions/adjust_permissions.rb":
owner => root,
group => 0,
mode => '0400';
'/opt/webhosting_user_scripts/adjust_permissions/adjust_permissions.rb':
source => 'puppet:///modules/webhosting/user_scripts/adjust_permissions/adjust_permissions.rb',
owner => root, group => 0, mode => 0500;
owner => root,
group => 0,
mode => '0500';
}
# update mode script
include acl::requirements
include ::acl::requirements
file{
"/opt/webhosting_user_scripts/update_mode":
'/opt/webhosting_user_scripts/update_mode':
ensure => directory,
owner => root, group => 0, mode => 0400;
"/opt/webhosting_user_scripts/update_mode/update_mode.rb":
owner => root,
group => 0,
mode => '0400';
'/opt/webhosting_user_scripts/update_mode/update_mode.rb':
source => 'puppet:///modules/webhosting/user_scripts/update_mode/update_mode.rb',
owner => root, group => 0, mode => 0500;
owner => root,
group => 0,
mode => '0500';
}
require ::wordpress::base
file{
'/opt/webhosting_user_scripts/update_wordpress':
ensure => directory,
owner => root,
group => 0,
mode => '0400';
'/opt/webhosting_user_scripts/update_wordpress/update_wordpress.rb':
source => 'puppet:///modules/webhosting/user_scripts/update_wordpress/update_wordpress.rb',
owner => root,
group => 0,
mode => '0500';
}
}
......@@ -86,7 +86,6 @@ define webhosting::user_scripts::manage(
}
}
if ('update_wordpress' in $scripts) or ($scripts == 'ALL') {
require wordpress::base
file{
"${scripts_path}/update_wordpress":
ensure => directory,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment