文件操作 - ipaddress6_interfaces.rb
返回文件管理
返回主菜单
删除本文件
文件: /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/facter/facts/solaris/ipaddress6_interfaces.rb
编辑文件内容
# frozen_string_literal: true module Facts module Solaris class Ipaddress6Interfaces FACT_NAME = 'ipaddress6_.*' TYPE = :legacy def call_the_resolver arr = [] interfaces = Facter::Resolvers::Solaris::Networking.resolve(:interfaces) interfaces&.each do |interface_name, info| arr << Facter::ResolvedFact.new("ipaddress6_#{interface_name}", info[:ip6], :legacy) if info[:ip6] end arr end end end end
修改文件时间
将文件时间修改为当前时间的前一年
删除文件