Navigation

    Inedo Community Forums

    Forums

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. pcamelio_0469
    P
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    pcamelio_0469

    @pcamelio_0469

    0
    Reputation
    5
    Posts
    6
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    pcamelio_0469 Follow

    Best posts made by pcamelio_0469

    This user hasn't posted anything yet.

    Latest posts made by pcamelio_0469

    • RE: False and True as string

      Hello

      Look at :
      Add explicit cast syntax for marshalling values from OtterScript to PowerShell

      This should work for you :

      Enabled:[type:string]False

      Here is an exemple which works for me and which similar of your pb:

      Exemple

          Ensure-DscResource
          (
              Name: Carbon_FirewallRule,
              Module: Carbon,
              Properties: %(Name:FWRule-MetaAnnuaire-EXP-50100,Action:Allow,Direction:In,Protocol:tcp,LocalPort:[type::string]50100,Ensure:Present,Profile:Domain)
          );
      

      Hope this help

      For Inedo's people who read this thread, please update your doc with the github info, so it will be easier to use this nice feature.

      posted in Support
      P
      pcamelio_0469
    • Copy Database Connections over Database connections ?

      Hello
      I am looking a way to duplicate several database connections over multiple applications.
      Is there any way to do it ?

      Another question,

      • it is possible to define a database connection based on variable like this way :
      
      Connection Name : $ConnectionName
      Server : $DBServer
      Connection String : Server=$ApplicationName$PipelineStageName.SQL.$DomaineName\$ApplicationName$PipelineStageName;Integrated Security=true;
      

      Best Regards

      Product: BuildMaster
      Version: 6.1.5

      posted in Support
      P
      pcamelio_0469
    • RE: Configuring DSC turns into nightmare due to failed conversion STRING to SINT64

      Thank you Tod,

      Unfortunately, it is not working I still have the problem

      posted in Support
      P
      pcamelio_0469
    • Configuring DSC turns into nightmare due to failed conversion STRING to SINT64

      Hello

      I try to add the following DSC config to a server thru a configuration

      `# FSRM - Workfolder - Quotas

      {

         PSDsc FSRMDsc::FSRMQuota
         
        (
              OtterConfiguration_key : FSRMQuota-WorkFolders,
              Path                : ${WorkFolder-DossierBase},
              Description         : 'Quota 10GB Soft (monitoring)',
              Ensure              : 'Present',
              Size                : 1OGB,
              SoftLimit           : True
          );
      

      }

      Despite whatever I have been trying, I was not able to convert the value for Size - @(string[]) ,@('10GB'), ....
      I have an error about converting STRING to SINT64

      Does anyone can help me about the syntax ?

      Best Regards
      Philippe

      Product: Otter
      Version: 2.0.13

      posted in Support
      P
      pcamelio_0469
    • RE: Create new server in Otter using API

      Hello Paul

      Here is the powershell script we are using.
      It is running from the server as a part of our init server script.
      We deploy the Otter/BuildMaster Agent and we run the script .

      Hope this help

      Regards
      Philippe

      Param(
      
         [Parameter(Mandatory=$false)]
         [string]$API = "https://#OTTERHOST#/api", 
         
         [Parameter(Mandatory=$false)]
         [string]$SERVEUR = $env:computerName
      
      ) #end param
      
      # Extract AESKey
      [xml]$XmlDocument = Get-Content -Path "C:\Program Files\InedoAgent\InedoAgentService.exe.config"
      $AESKey=($XmlDocument.configuration.appsettings.add | where-object {$_.key -eq "EncryptionKey"}).value
      
      
      #
      # Grab list of registered server
      #
      $URI=$API+"/infrastructure/servers/list"
      $aListServer=Invoke-RestMethod -Method Post -Uri $URI -Headers @{'X-ApiKey' = '********************'}
      
      if ($aListServer.Name -contains $SERVEUR){
      #
      # Mise à jour
      #
          $URI=$API+"/infrastructure/servers/update/"+$SERVEUR
          $body = @{
              name="$SERVEUR";
              hostname="$SERVEUR";
              active=$true;
              serverType="windows";
              port="46336";
              encryptionType="AES";
              encryptionKey=$AESKey
          }
      
      }else{
      #
      # Creation
      #
          $URI=$API+"/infrastructure/servers/create/"+$SERVEUR
          $body = @{
              name="$SERVEUR";
              hostname="$SERVEUR";
              serverType="windows";
              active=$true;
              drift="automaticallyRemediate";
              port="46336";
              roles=@("Baseline");
              environments=@("Integration");
              encryptionType="AES";
              encryptionKey=$AESKey
          }
      }
      
      #
      # Appel de l'API
      #
      Invoke-RestMethod -Method Post -ContentType 'application/json;' -Uri $URI -Body (ConvertTo-Json $body) -Headers @{'X-ApiKey' = '********************'}
      #
      posted in Support
      P
      pcamelio_0469