files/aerobase-cookbooks/aerobase/libraries/unifiedpush.rb
def generate_secrets(node_name)
      secret_helper = SecretsHelper.new(node)
	  secret_helper.read_unifiedpush_secrets

      # Note: If you add another secret to generate here make sure it gets written to disk in SecretsHelper.write_to_unifiedpush_secrets
      Unifiedpush['aerobase_server']['secret_token'] ||= generate_hex(64)

      # Note: Besides the section below, unifiedpush-secrets.json will also change
      # in CiHelper in libraries/helper.rb
      secret_helper.write_to_unifiedpush_secrets
    end
# guards against creating secrets on non-bootstrap node
guards against creating secrets on non-bootstrap node
guards against creating secrets on non - bootstrap node
def generate_secrets(node_name)
      secret_helper = SecretsHelper.new(node)
	  secret_helper.read_unifiedpush_secrets
      Unifiedpush['aerobase_server']['secret_token'] ||= generate_hex(64)
      secret_helper.write_to_unifiedpush_secrets
    end
def generate_secrets ( node_name ) secret_helper = SecretsHelper . new ( node ) secret_helper . read_unifiedpush_secrets Unifiedpush [ 'aerobase_server' ] [ 'secret_token' ] ||= generate_hex ( 64 ) secret_helper . write_to_unifiedpush_secrets end
guards against creating secrets on non-bootstrap node
guards against creating secrets on non - bootstrap node
# Note: If you add another secret to generate here make sure it gets written to disk in SecretsHelper.write_to_unifiedpush_secrets # Note: Besides the section below, unifiedpush-secrets.json will also change # in CiHelper in libraries/helper.rb
node_name