Skip to content

Commit

Permalink
Merge pull request #57 from depot/ceph-config
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Aug 29, 2023
2 parents 9e9961c + 4bafbb5 commit 55f1fc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/ceph.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import {execa} from 'execa'
import * as fsp from 'node:fs/promises'
import {CLOUD_AGENT_CEPH_CONFIG} from './env'

const POOL = 'rbd'

Expand Down Expand Up @@ -138,6 +139,9 @@ export async function enableCephMetrics() {
}

export async function cephConfig(): Promise<string> {
// Temporarily use the CLOUD_AGENT_CEPH_CONFIG environment variable if it is set
if (CLOUD_AGENT_CEPH_CONFIG) return CLOUD_AGENT_CEPH_CONFIG

const {exitCode, stdout, stderr} = await execa('ceph', ['config', 'generate-minimal-conf'], {reject: false})
if (exitCode === 0) {
return stdout
Expand Down

0 comments on commit 55f1fc2

Please sign in to comment.