add script for creating VM image
This commit is contained in:
parent
9c3189544a
commit
75c3228c5e
8 changed files with 196 additions and 2 deletions
|
@ -119,6 +119,13 @@ module Execute
|
|||
end
|
||||
end
|
||||
|
||||
def domain(name)
|
||||
require 'certbot'
|
||||
wildcard = name.strip.start_with?("*.")
|
||||
domain = name.strip.delete_prefix("*.")
|
||||
Certbot.create_certificate(domain, wildcard)
|
||||
end
|
||||
|
||||
def user(*users)
|
||||
require 'user'
|
||||
users.each do |name|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue