Projects
home:rottame:vhosts-ng
rubygem-bender-vhng
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
bender-vhng-2.0.0.gem/checksums.yaml.gz
Changed
@@ -1,7 +1,7 @@ --- SHA256: - metadata.gz: e53c3421b03279d02b53c474ba440b0d20bb95bd4a3448b77fa882d5e1b634b8 - data.tar.gz: db11277daed43b3727d951fe5ece091c76bae748cb9479a415a458846725cfa3 + metadata.gz: a4b774140f59094de8654be0898d01c02b84a25b457e447b31026d7c7609bcd5 + data.tar.gz: 6bbc86125106b1108e77c0880caed70e71a3334e87dd36a13332b08fee517f02 SHA512: - metadata.gz: 776d4b76c5bf9d2ea32c2b177b3847ad6bd615c6c9fa9e9658fd34bdddee07bb12fb949d152fc3d7a911c47b2eab8d30269fb8b5ebd1c2d86670e8dd21145d0b - data.tar.gz: 5214e28cffffdc4e72c4131972955e2566de195d16856d2248de08ccdee82e0668493f2dddffcd0c5f18002a37260a002fdac958e3bbb2cd2e2da654c7e3aac2 + metadata.gz: e7077c8f876c95529a0f2fc21572f1f443f4455918cc730e8489505e03b0483ec1e2f9a6e4898c69119831868fecdb9306c9b44c7c4467ab9a8cda420a1e69e2 + data.tar.gz: c12b9e390f19308c61b75dc521b181152fa0063054340f681727a506304c4477f0ed8aeb041f35f697fd465e1e512b76d5bf453ca50ddec68057069399300491
View file
bender-vhng-2.0.0.gem/data/lib/bender/classes/Plugins/Webserver/01-Filesystems.rb
Changed
@@ -143,17 +143,47 @@ service.run "xfs_quota -x -c 'limit -p bhard=#{quota} #{host.service.login}' #{mountpoint}" end + + def enableNFSExport(host, service, env) path = service.host_storagePath(host) log.debug " + enable nfs export of #{path}" export = "%s %s(%s,fsid=%d)" % path, - service.mySvcConf('/NFS/ACL'), - service.mySvcConf('/NFS/Options'), + service.mySvcConf('/NFS/Data/ACL'), + service.mySvcConf('/NFS/Data/Options'), + host.service.id + + + addNFSExport(export) + + path = service.host_logPath(host) + log.debug " + enable nfs export of #{path}" + + export = "%s %s(%s,fsid=%d)" % + path, + service.mySvcConf('/NFS/Logs/ACL'), + service.mySvcConf('/NFS/Logs/Options'), host.service.id + + addNFSExport(export) + end + + def disableNFSExport(host, service, env) + path = service.host_storagePath(host) + log.debug ' + disable nfs export of #{path}' + + removeNFSExport(path) + + path = service.host_logPath(host) + log.debug ' + disable nfs export of #{path}' + removeNFSExport(path) + end + + def addNFSExport(export) _, exports = service.loadConfigFile('/etc/exports') unless exports.include?(export) exports.reject!{|e| e =~ /\A#{path}\ /} @@ -164,10 +194,7 @@ end end - def disableNFSExport(host, service, env) - path = service.host_storagePath(host) - log.debug ' + disable nfs export of #{path}' - + def removeNFSExport(path) _, exports = service.loadConfigFile('/etc/exports') exports.reject!{|e| e =~ /\A#{path}\ /} service.writeConfigFile('/etc/exports', exports)
View file
bender-vhng-2.0.0.gem/metadata.gz
Changed
@@ -8,7 +8,7 @@ autorequire: bindir: bin cert_chain: -date: 2023-02-23 00:00:00.000000000 Z +date: 2023-02-24 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: mail
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.